1 How to send IPv6 requests with a new IPv6 address for each request on a server with a whole IPv6 range
Émilien (perso) edited this page 2025-10-20 09:14:44 +02:00

Technique found in https://github.com/Sadzurami/tunnelbroker-proxies/tree/main

Linux setup

  1. Add net.ipv6.ip_nonlocal_bind=1 to /etc/sysctl.conf
  2. Reload sysctl with sysctl -p
  3. Find your IPv6 public subnet using ip -6 a. Example: 2a03:b0c0:3:d0::1d4f:1/64
  4. Execute this command and change YOURIPV6SUBNET with the subnet found above:
    /sbin/ip -6 route add local YOUR_IPV6_SUBNET dev lo
    
  5. Test if the setup works by incrementing the IPv6 address by default, for example from 2a03:b0c0:3:d0::1d4f:2 to 2a03:b0c0:3:d0::1d4f:3.
    Then use that address in this command: curl --interface THEIPV6ADDRESS icanhazip.com
  6. If you get the IPv6 address and a successful response, then you are done with the setup!