OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: marcel on February 10, 2018, 12:09:08 am

Title: [Solved] IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 12:09:08 am
Hi

I have an IPv6 connection with DHCPv6-PD from my ISP. IPv6 on WAN is configured with DHCPv6, Prefix delegation size and prefix hint enabled.
LAN is configured with Track Interface WAN and a prefix id.

With that configured, my LAN clients don't receive any prefix information in the router advertisements. After I run
Code: [Select]
/var/etc/rtsold_intX_vlanY_script.shmanually, the clients receive prefix information and IPv6 works.

As a workaround I added the line into a shellscript in
Code: [Select]
/usr/local/etc/rc.syshook.d
I run 18.1.2_2-amd64 on a APU. The issue already was in 15.7: https://forum.opnsense.org/index.php?topic=1950.msg6072#msg6072.

Is there something I can change so I don't need the workaround?
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 12:23:19 pm
What version of opnsense are you running?
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 09:38:58 pm
I run opnsense 18.1.2_2-amd64 with serial console.
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 09:41:32 pm
Are you seeing a prefix on the Lan interface before you run the rtsold script?
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 09:46:55 pm
No, I only see the IPv4 address.
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 09:48:52 pm
Do you have directly send solicit on or off in your wan dhcp6c settings?
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 09:51:30 pm
Directly send SOLICIT is turned off.
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 09:52:46 pm
Have you tried with it turned on?
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 10:15:19 pm
Thanks for the hint. With that flag enabled it grabs the IPv6 after boot without the workaround. However with this setting enabled unbound doesn't start anymore. Is this a bug?

Code: [Select]
opnsense: /status_services.php: The command '/usr/local/sbin/unbound -c '/var/unbound/unbound.conf'' returned exit code '1', the output was '[1518296527] unbound[21470:0] error: can't bind socket: Can't assign requested address for 2001:db8::xxxx [1518296527] unbound[21470:0] fatal error: could not open ports'
I configured unbound to only listen on specific interfaces (it doesn't need to listen for dns requests on the wan interface). If I set Network Interfaces in unbound to all the service starts again.

Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 10:20:21 pm
Leave unbound to listen on all, there's often issues if you don't. pf***** also suffers from the same issues. It's not going to cause problems if it's listening on all interfaces
Title: Re: IPv6 Track Interface doesn't advertise subnet
Post by: marcel on February 10, 2018, 10:21:24 pm
Good to know. Thanks for your help.
Title: Re: [Solved]IPv6 Track Interface doesn't advertise subnet
Post by: marjohn56 on February 10, 2018, 10:27:56 pm
You're welcome,  :)

Mark it solved.