Automatically choose a random IPv6 address from your subnet.
Project description
subroll
Automatically choose a random IPv6 address from your subnet.
Currently it only supports Linux and requests.
AnyIP
AnyIP is a new feature of the Linux kernel, you need to enable AnyIP in order to use this library.
sudo ip -6 route add local 0123:4567:89ab::/48 dev lo
This will enable AnyIP, replace 0123:4567:89ab::/48
with your subnet and run this command on a shell.
(this will not persist after reboot)
Example
from src.subroll import SubRoll
roll = SubRoll("0123:4567:89ab::/48")
for _ in range(100):
session = roll.get_session()
print(session.get("https://ipv6.wtfismyip.com/text").text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subroll-0.0.2.tar.gz
(14.6 kB
view hashes)
Built Distribution
subroll-0.0.2-py3-none-any.whl
(14.8 kB
view hashes)