[Solved] IPv6 on Hetzner vSwitch / 64 er Subnet Seperation

Started by niclas, November 14, 2024, 12:32:37 AM

Previous topic - Next topic
Will it work the other way round? That would be our setup at Hetzner for hosting - not OPNsense but FreeBSD.

WAN: dead:beef:dead:beef::1/128
WAN GW: fe80::1%igc0 (for example)
LAN: dead:beef:dead:beef::2/64 (bridge for our hosting jails and their default GW)

Kind regards,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I really do not know, the ways it works are all in the man pages. I did a lot of testing and I have read people who use it here:

https://gist.github.com/MCterra10/7e3930e54db0be10f42dd999e3263560?permalink_comment_id=5178523#gistcomment-5178523

I could not recreate the above mentioned setup yet.

https://man.freebsd.org/cgi/man.cgi?query=ndproxy&apropos=0&sektion=4&manpath=FreeBSD+11-current&format=html

I guess you have to test the potential of it yourself in your environment, but the module seems to be around for a long while and there are no reports of people who have issues with it. Any (good or bad) reports are scarse...
Hardware:
DEC740

November 14, 2024, 08:44:45 PM #17 Last Edit: November 14, 2024, 08:48:47 PM by niclas
Quote from: Patrick M. Hausen on November 14, 2024, 04:41:18 PM
Will it work the other way round? That would be our setup at Hetzner for hosting - not OPNsense but FreeBSD.

WAN: dead:beef:dead:beef::1/128
WAN GW: fe80::1%igc0 (for example)
LAN: dead:beef:dead:beef::2/64 (bridge for our hosting jails and their default GW)

Kind regards,
Patrick

Yes i had it like this before, but that only works if Hetzner gives you a MAC that you have to use. As mentioned earlier, because of that they know where to route your subnet.
vSwitches are different. You claim a IP without giving your IP to Hetzner so the GW dosen't know where to route the rest of the /64 subnet if your WAN only claims 128. (If I understood it right)

Correct. But do you really need a vSwitch?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Yes, we use a Proxmox Cluster and if you wanna migrate your vm's / your OPNSense you need to change the ip's if you don't get the IP via vSwitch.

Hetzner only offer Public IP`s bound to a Dedicated Server or a vSwitch.

Quote from: Monviech (Cedrik) on November 14, 2024, 04:45:55 PM
I really do not know, the ways it works are all in the man pages. I did a lot of testing and I have read people who use it here:

https://gist.github.com/MCterra10/7e3930e54db0be10f42dd999e3263560?permalink_comment_id=5178523#gistcomment-5178523

I could not recreate the above mentioned setup yet.

https://man.freebsd.org/cgi/man.cgi?query=ndproxy&apropos=0&sektion=4&manpath=FreeBSD+11-current&format=html

I guess you have to test the potential of it yourself in your environment, but the module seems to be around for a long while and there are no reports of people who have issues with it. Any (good or bad) reports are scarse...


I will give it a try, if i see it correct its experimental at the moment. Will it be implemented as plugin later? I can try it in a test enviroment, but not at production at the moment.

Check the previous page, it will come as normal plugin in the next version. Any tests are highly valuable for documentation purposes. Thanks in advance.
Hardware:
DEC740

Quote from: Patrick M. Hausen on November 14, 2024, 04:08:22 PM
As an alias address on WAN.

If you want an address on LAN or OPT1, then routing must take place and you must use an entire /64.

I don't know if Hetzner support routing additional /64 with a vSwitch. They sure do if you do not use a vSwitch, though.

Where do i set the aliases? I tried the Virtual IP as i use it on IPv4, but that dosen't work.
The plan is to set multiple WAN IPv6 Addresses and then do a Port-forwarding and Outbound NAT for the Servers.

November 14, 2024, 09:01:07 PM #23 Last Edit: November 14, 2024, 09:02:43 PM by niclas
Quote from: Monviech (Cedrik) on November 14, 2024, 08:58:29 PM
Check the previous page, it will come as normal plugin in the next version. Any tests are highly valuable for documentation purposes. Thanks in advance.

That sounds great! Sounds like it solves my Problem without NAT. I will test the Plugin if its out.
When it will come? In v25 or v24.8?

Are there any settings to do or dose it work out of the box?

November 14, 2024, 09:02:27 PM #24 Last Edit: November 14, 2024, 09:05:21 PM by Monviech (Cedrik)
Probably in the next minor version.  :)

So 24.7.9

Theres 4 settings, check out the man page. Its only 4 settings but it feels rather complicated (at least to me) even though it should be simple. Guess it depends highly on the exact usecase.
Hardware:
DEC740

November 14, 2024, 09:08:36 PM #25 Last Edit: November 14, 2024, 09:19:00 PM by niclas
Quote from: Monviech (Cedrik) on November 14, 2024, 09:02:27 PM
Probably in the next minor version.  :)

So 24.7.9

Theres 4 settings, check out the man page. Its only 4 settings but it feels rather complicated (at least to me) even though it should be simple. Guess it depends highly on the exact usecase.

Ah, found it. Can I do multiple LAN Networks? Because i have to put the MAC and IP in the config.

Quote from: niclas on November 14, 2024, 08:58:38 PM
Where do i set the aliases? I tried the Virtual IP as i use it on IPv4, but that dosen't work.

Surprises me although I admit I never tried it. Yes, I implied Virtual IP. Should work with IPv4 and IPv6 just the same.

I never used it because that's not how IPv6 is supposed to work. NAT deserves to die.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: Patrick M. Hausen on November 14, 2024, 09:09:39 PM
Quote from: niclas on November 14, 2024, 08:58:38 PM
Where do i set the aliases? I tried the Virtual IP as i use it on IPv4, but that dosen't work.

Surprises me although I admit I never tried it. Yes, I implied Virtual IP. Should work with IPv4 and IPv6 just the same.

I never used it because that's not how IPv6 is supposed to work. NAT deserves to die.

😂 Thats what a wanted, but then the GW Thing stopped me.  :(

I will try it. The VIP shoud be pingable if the FW Rule for it is set right? (Ipv4 is it)

The default GW in a vSwitch at Hetzner is not "pingable".

For IPv4 they told me to use 78.46.170.2 for gateway monitoring in Falkenstein. Best open a support ticket and ask which IPv6 address to use.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

The Gateway for IPv6 on a vSwitch is pingable.  :)

The Virtual IP form type "Alias IP" also works now (no idea why not last time), but it takes some time to become active...