#1 2018-01-10 15:47:10

twodub
Trusted Member
Registered: 2018-01-10
Posts: 4

Assign/forward entire IPv6 subnet to VPS

Hi there,

Does anyone know how to forward the entire assigned IPv6 subnet to a LES/VPS? All I seem to be able to do is add one address at a time through SolusVM.

I tried adding the following to /etc/network/interfaces.tails, but it doesn't seem to work (my real subnet is X'ed out):

iface venet0 inet6 manual
        up ifconfig venet0 add XXXX:XXXX:XXXX:XXXX:XXXX::/80
        down ifconfig venet0 del XXXX:XXXX:XXXX:XXXX:XXXX::/80
        up route -A inet6 add default dev venet0
        down route -A inet6 del default dev venet0

I'm looking to use the entire subnet with OpenVPN for IPv6 support on my LES.

Thanks!

Offline

#2 2018-01-10 19:12:00

Backtogeek
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,821
Website

Re: Assign/forward entire IPv6 subnet to VPS

Not possible with OpenVZ+SolusVM sorry, I think a user managed to hack something together manually a while ago for achiving the same thing with OpenVPN but I forget the details, you might be better off buying a VPS through mikho instead he uses virtualizor which does support this.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#3 2018-01-10 19:35:52

WSS
Trusted Member
Registered: 2016-12-22
Posts: 394

Re: Assign/forward entire IPv6 subnet to VPS

Any specific reason you'd need to iterate through 281,474,976,710,656 addresses?


RbyeR4Nm.png

Offline

#4 2018-01-10 20:07:43

twodub
Trusted Member
Registered: 2018-01-10
Posts: 4

Re: Assign/forward entire IPv6 subnet to VPS

Backtogeek wrote:

Not possible with OpenVZ+SolusVM sorry, I think a user managed to hack something together manually a while ago for achiving the same thing with OpenVPN but I forget the details, you might be better off buying a VPS through mikho instead he uses virtualizor which does support this.

Thanks! I'll check that out - I have one of Mikho's but was configuring the VPN on another LES.

Offline

#5 2018-01-10 20:14:52

twodub
Trusted Member
Registered: 2018-01-10
Posts: 4

Re: Assign/forward entire IPv6 subnet to VPS

WSS wrote:

Any specific reason you'd need to iterate through 281,474,976,710,656 addresses?

No, it seems OpenVPN requires a large block of IPv6. I'd do it with a single IPv6 address if I could figure out how to use NAT properly with OpenVPN.

I was able to get this working by using HE's Tunnel Broker service. It's a shame really, the block assigned to my LES is now going unused.

Offline

#6 2018-01-10 21:58:10

twodub
Trusted Member
Registered: 2018-01-10
Posts: 4

Re: Assign/forward entire IPv6 subnet to VPS

Backtogeek wrote:

Not possible with OpenVZ+SolusVM sorry, I think a user managed to hack something together manually a while ago for achiving the same thing with OpenVPN but I forget the details, you might be better off buying a VPS through mikho instead he uses virtualizor which does support this.

I played around with Virtualizor and the IPv6 subnet and it appears to be the same in that IPs need to be individually added to get routed to the VPS.

Interestingly, if I remove all IPv6 addresses through the control panel, a :1/112 is added to the venet0 interface (as desired). Sadly, I found that only the :1/128 works/is routed.

Offline

#7 2018-01-10 23:13:46

WSS
Trusted Member
Registered: 2016-12-22
Posts: 394

Re: Assign/forward entire IPv6 subnet to VPS

twodub wrote:
WSS wrote:

Any specific reason you'd need to iterate through 281,474,976,710,656 addresses?

No, it seems OpenVPN requires a large block of IPv6. I'd do it with a single IPv6 address if I could figure out how to use NAT properly with OpenVPN.

I was able to get this working by using HE's Tunnel Broker service. It's a shame really, the block assigned to my LES is now going unused.

You should be able to subnet it to yourself, but it'd probably be easier to feed it the /80.

You can always just use expr and iterate through, say, 48 of them in your rc.local with venet0:`expr $n + 1` [ipv6+1]` et al, but throwing them each as a /128 is pretty messy, too.  It /should/ work if ipv6_forwarding is on and you have at least one of those IPs forwarded via Solus- but I haven't actually tried to do it this way.


RbyeR4Nm.png

Offline

Board footer

Powered by FluxBB