OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: mmaridev on April 12, 2023, 11:55:48 am

Title: IPv6 /56 wan without upstream static routing
Post by: mmaridev on April 12, 2023, 11:55:48 am
Hi,

my (cloud) provider delivers me a /56 subnet. Their gateway is the first IP of the subnet. The /56 is not statically routed through the MAC of my NIC, I need NDP. Also, DHCPv6 is not provided on their end.Setting up a WANv6 IP for OPNsense works fine. I'm able to allocate a ::2/56 IP, set ::1 as gw and the firewall can ping / reach the internet on v6. What I can't get to work is traffic from the LAN / other interfaces.

I have tried many different configurations but none of these announced via NDP the IPs I had on other interfaces and on the clients. Also Router Advertisements wasn't helpful, even when manually putting a /64 under Advertise Routes. This way I see from tcpdump the packages leaving on the WAN, then the solicitations arriving from the upstream router but no answer from OPNsense.

What's the right way to do this?
Title: Re: IPv6 /56 wan without upstream static routing
Post by: zan on April 12, 2023, 03:15:58 pm
Let say xxxx:xxxx:xxxx:xx00::/56 is your given prefix.
You slice that prefix into multiple /64 prefixes, from xxxx:xxxx:xxxx:xx00::/64 to xxxx:xxxx:xxxx:xxFF::/64.
You can then assign each /64 prefix to each interface.

It's up to you how you gonna do it. I suggest something like this:
All your clients will get their addressess from SLAAC and you should have a working IPv6 at this point.
Title: Re: IPv6 /56 wan without upstream static routing
Post by: mmaridev on April 13, 2023, 10:17:33 am
Hi Zan,

thank you so much for your reply.
I modified my setup as per your suggestion. IP assignation via SLAAC works fine.
Unfortunately, the behaviour doesn't change. From a client in LAN i can ping both the OPNsense LAN IP and WAN IP but not the upstream gateway nor anything else in the WAN.

Thank you,
Marco
Title: Re: IPv6 /56 wan without upstream static routing
Post by: heaven73 on June 02, 2023, 02:00:38 pm
Hello everyone i configured also the /64 slices and the the /56 static and i have the same behaviour from the wan i can ping from the lan not. also RADV didnt help. anyone has a clue?
Title: Re: IPv6 /56 wan without upstream static routing
Post by: franco on June 02, 2023, 02:27:00 pm
You don't configure a /56 static on WAN. Either you chose a separate /64 or use a /128 single address.


Cheers,
Franco
Title: Re: IPv6 /56 wan without upstream static routing
Post by: axguru on August 08, 2023, 01:41:41 pm
Hi there,

I have a setup similar to OP's. My provider gave me a /56 subnet where xxxx:xxxx:xxxx:xx00::1 is the ISPs router.

I tried to recreate Zan's solution but can't configure xxxx:xxxx:xxxx:xx00::2 as the upstream gateway for LAN, it says the address is outside the LAN subnet. xxxx:xxxx:xxxx:xx01::1/64 is the LAN Interface address.

Hope someone can help me.
Kind regards
Title: Re: IPv6 /56 wan without upstream static routing
Post by: bartjsmit on August 08, 2023, 02:04:42 pm
Don't specify a static gateway unless your provider tells you to.

Make sure ICMPv6 is allowed so the WAN interface can use NDP https://en.wikipedia.org/wiki/Neighbor_Discovery_Protocol
Title: Re: IPv6 /56 wan without upstream static routing
Post by: Maurice on August 08, 2023, 03:58:55 pm
@axguru You don't configure an upstream gateway for the LAN interface, only for the WAN interface.

If you do indeed have the same issue as the OP (the provider not routing the /56 to your WAN address, but instead performing ND for every single address), there is no workaround I'm aware off. OPNsense doesn't have an ND proxy.

Why do providers do that? That's not how routing works.

Cheers
Maurice