Skip to main content

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


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)

Uploaded Source

Built Distribution

subroll-0.0.2-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page