Smart IPv6 Rotator is a command-line tool designed to rotate IPv6 addresses for specific subnets, enabling users to bypass restrictions on IPv6-enabled websites.
If you are already running this script, please run sudo python smart-ipv6-rotator.py clean
before upgrading it to avoid any issues.
Full detailed documentation: https://docs.invidious.io/ipv6-rotator/
sudo python smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
crontab -e -u root
):
@reboot sleep 30s && python smart-ipv6-rotator.py run --cron --ipv6range=YOURIPV6SUBNET/64
0 */12 * * * python smart-ipv6-rotator.py run --cron --ipv6range=YOURIPV6SUBNET/64
The sleep
command is used in case your network takes too much time time to be ready.
https://quay.io/repository/invidious/smart-ipv6-rotator
sudo python smart-ipv6-rotator.py clean
Only works if the script did not crash. But in case of a crash, in most case the system should auto rollback the changes.
smart-ipv6-rotator.py [-h] {run,clean-one,clean} ...
-h, --help
: Display the help message and exit.run
: Run the IPv6 rotator process.clean-one
: Clean your system for a given service / IPv6 ranges.clean
: Clean all configurations made by this script.run
Subcommandsmart-ipv6-rotator.py run [-h] [--services {google}] [--external-ipv6-ranges EXTERNAL_IPV6_RANGES] [--skip-root] [--no-services] --ipv6range IPV6RANGE
-h, --help
: Display the help message and exit.--services {google}
: Define IPV6 ranges of popular services (e.g., --services google, twitter).--external-ipv6-ranges EXTERNAL_IPV6_RANGES
: Manually define external IPV6 ranges to rotate for.--skip-root
: Skip root check.--no-services
: Completely disable the --services flag.--ipv6range IPV6RANGE
: Your IPV6 range (e.g., 2407:7000:9827:4100::/64).--cron
: Do not check if the IPv6 address configured will work properly. Useful for CRON and when you know that the IPv6 range is correct.--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
: Sets log levelclean
Subcommandsmart-ipv6-rotator.py clean [-h] [--skip-root]
-h, --help
: Display the help message and exit.--skip-root
: Skip root check.--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
: Sets log levelclean-one
Subcommandsmart-ipv6-rotator.py clean-one [-h] [--services {google}] [--external-ipv6-ranges EXTERNAL_IPV6_RANGES] [--skip-root] [--no-services]
-h, --help
: Display the help message and exit.--services {google}
: Define IPV6 ranges of popular services (e.g., --services google, twitter).--external-ipv6-ranges EXTERNAL_IPV6_RANGES
: Manually define external IPV6 ranges to rotate for.--skip-root
: Skip root check.--no-services
: Completely disable the --services flag.--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
: Sets log levelYou can only modify the network configuration of your server using root privileges.
The attack surface of this script is very limited as it is not running in the background, it's a one shot script.