OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: dragon2611 on December 22, 2021, 11:39:00 AM

Title: NPTv6 PD?
Post by: dragon2611 on December 22, 2021, 11:39:00 AM
Is there any way to use NPTv6 alongside PD, I had hoped to be able to use it in order to be able to failover to a secondary ISP but it looks like it expects you to manually set the prefixes to be translated.

Sadly I have no way of knowing what my V6 prefix will be for that wan as it's assigned by DHCPv6-PD and it tends not to be sticky either.
Title: Re: NPTv6 PD?
Post by: lilsense on December 22, 2021, 04:50:14 PM
I don't believe ISP's consistently changing prefix. you can request the size and set that.
Title: Re: NPTv6 PD?
Post by: dragon2611 on December 24, 2021, 03:19:37 PM
Pretty sure it's not consistent on Starlink, I can ask for and receive a /56 but It seems to change I suppose I could try sending a prefix hint and seeing if I get the same one back.

If you ask them anything about IPv6 they'll just say they don't support it (It's enabled on the network and usually works but since their provided router doesn't use it yet they're not interested in supporting it)
Title: Re: NPTv6 PD?
Post by: dragon2611 on December 24, 2021, 03:20:22 PM
Quote from: dragon2611 on December 24, 2021, 03:19:37 PM
Pretty sure it's not consistent on Starlink, I can ask for and receive a /56 via a DHCPv6-PD request but It seems to change if I lose connection long enough, I suppose I could try sending a prefix hint and seeing if I get the same one back.

If you ask them anything about IPv6 they'll just say they don't support it (It's enabled on the network and usually works but since their provided router doesn't use it yet they're not interested in supporting it)
Title: Re: NPTv6 PD?
Post by: ivwang on December 29, 2021, 04:05:21 AM
Unfortunately nope, current NPT6 works for statically assigned prefixes.
If upstream ISP tends to change assignments ever so often it won't work without manual reconfiguration of the NPT6

Though there some attempts to bring this into OPNsense, see https://github.com/opnsense/core/issues/5284 (https://github.com/opnsense/core/issues/5284)

Welcome to voice your use case there

Ivan
Title: Re: NPTv6 PD?
Post by: marjohn56 on December 29, 2021, 09:01:34 AM
I'm pretty sure we will see dynamic NPTv6 in the 22.1.* series. We have completed the dynamic tracking alias for a single host, that's slated for 22.1.* .
It's not a massive step to use an alias for NPTv6. On the other side of it I've also PR'd some code to allow dhcpdv6/radvd to pick up the VIP assigned to interface for NPTv6. There is light at the end of the tunnel now, and it's getting brighter.