New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Networking issue - using any IPv6 address from a /64 block
MooCowGalaxy
Member
in Help
Hey, I have a /64 block of IPv6 addresses and I would like to use any IPv6 address from the block for sending requests to an external server (eg. wget --bind-address (random ipv6 address here
))
Server information:
- running Ubuntu 22.04
- the IPv6 block is listed in
ip addr
, but trying to bind to an address within the block fails
I tried a lot of solutions I found online, eg. one of them was to set some sysctl values (but unfortunately it didn't change anything)
I know that adding individual IPv6 addresses to the interface works, but this solution is limited to however many I initially add and from what I can gather there is a limit to how many addresses can be added to an interface. Any help is greatly appreciated!
Comments
I know a guide should help.
Written in Chinese.https://zu1k.com/posts/tutorials/http-proxy-ipv6-pool/
You can easily add 10k address to interface, probably more. Add IP to interface, make request, remove IP from interface. Easy as 2+2. Some python/nodejs/whatever_language code would be needed for this.
I was considering this option, I'll give it a shot. Thanks for the help!
Thank you for this blog post, it works perfectly!
@MooCowGalaxy, I think AnyIP +
sysctl -w net.ipv6.ip_nonlocal_bind=1
will solve your issue in a much more simple way.I tried that. It worked, I could ping the ipv6 from the local machine, but not from another machine/computer.
You are doing something wrong - I have that setup on my Hetzner dedi and it is working properly - I use AnyIP to serve different TLS certificates over different IPv6 addresses.
reserved