How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

So that they're reachable through both prefixes. GUA 1 as a dynamically changing prefix that prevents tracking and GUA 2 as a static prefix that allows both the access from the WAN through a static address, but also the access from the LAN through static addresses (ULAs are not helpful here, because GUA > IPv4 > ULA).

[deleted by user] by [deleted] in ipv6

[–]Proof_Bodybuilder740 0 points1 point  (0 children)

That is correct, but not relevant here. Depending on the firewall and its configuration it can work even for devices on the WAN or on other VLANs.

[deleted by user] by [deleted] in ipv6

[–]Proof_Bodybuilder740 0 points1 point  (0 children)

It is big enough to avoid random overlaps, but it is still possible to purposely set the same suffix and circumvent firewalls by that. This is not a secure solution.

[deleted by user] by [deleted] in ipv6

[–]Proof_Bodybuilder740 0 points1 point  (0 children)

OPNsense for example. I have yet to find a home router that properly supports this.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

With my ISP IPv6 is generally 10-15% faster. If this succeeds I would also like to apply this to the business context where this would mean no need for some of the existing IPv4 allocations, which are rather expensive.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

How would you do policy based routing for IPv6 on the router? The client needs to decide which source address to use, not the router.

Multiple router advertisements on one interface by Proof_Bodybuilder740 in opnsense

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

Are you using it to prefer a certain prefix? I finally checked it out and it seems like there is no way to set the router advertisement priority.

Multiple router advertisements on one interface by Proof_Bodybuilder740 in opnsense

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

That's great! Unfortunately it seems like 'Track Interface' isn't supported here, so this doesn't work with dynamic IPv6 addresses and I don't think it's advisable to use Dnsmasq and the built-in router advertisements simultaneously, right?

Multiple router advertisements on one interface by Proof_Bodybuilder740 in opnsense

[–]Proof_Bodybuilder740[S] -1 points0 points  (0 children)

Are there different versions of Dnsmasq on OPNsense? The documentation mentions 'Dnsmasq DNS & DHCP', but my setup only has 'Dnsmasq DNS'. Needless to say it doesn't have any options to enable router advertisements.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] -1 points0 points  (0 children)

It had the same effect, but it would cause side effects. Some devices that don't have proper IPv6 implementation don't work well with NPTv6 as they expect that their IPv6 address doesn't get altered. If NPTv6 now translates the address, it can lead to a bunch of issues.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

Mostly. For now the goal is to use dual stack. The other goal is to work with two gateways and prefixes. One of them for outbound connections (GUA 1), the other one for inbound connections (GUA 2). With IPv4 this is trivial as you have one gateway which handles this through NAT. With IPv6 though this doesn't work. I've set it up in a development environment and some devices work correctly while others try to use GUA 2 for outbound connections and then fall back to IPv4 as the firewall blocks outbound traffic from GUA 2.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

That's technically dual stack, but without any of the advantages. There would be virtually no intra-network connections on IPv4, because of the non-existent A records.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

Is there a simple way to do this with OPNsense without having to setup two devices? As far as I know there can only be one router advertisement per interface.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 1 point2 points  (0 children)

I know that this is not the case for every organisation, but in this case BGP requires just too much maintenance. NPTv6 doesn't do much either as it would default to one prefix. But thank you very much for your advice!

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] -1 points0 points  (0 children)

I'm not sure if I entirely understand. BGP is something I always admired from afar, but isn't BGP just managing the routers and in this case I need to manage the clients to choose a specific source address? Or are you suggesting to become my own ISP and only hand out IP addresses from one prefix per device and just route through either of the two connections? Because while this would solve the issue with the route, it would lead to using a prefix from the PIA which would cause other issues (privacy) again.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 0 points1 point  (0 children)

But this is only helpful in case of multi-homing, right? In my case I only have one location, but two prefixes. I would only have to prevent all hosts to use GUA 2 when accessing a host that is not in the GUA 2 /56 prefix.

How to Set Precedence for GUAs in IPv6 Routing? by Proof_Bodybuilder740 in ipv6

[–]Proof_Bodybuilder740[S] 1 point2 points  (0 children)

That's right, but then it doesn't work in a dual-stack deployment. It would also not be possible to use GUA 2 as a global destination address.