OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: zyon on January 21, 2022, 01:50:24 pm

Title: Router Advertisement
Post by: zyon on January 21, 2022, 01:50:24 pm
Hi all,

After upgrading to 22.1 R2 i have an issue with RA

PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/services_router_advertisements.php on line 343

radvd is up but not ip v6 :s

Any idea ?

Thanks
Title: Re: Router Advertisement
Post by: tiermutter on January 21, 2022, 02:25:42 pm
Same here, but radvd isnt up, the service wont start.
Saving RA config results in the warning mentioned above.
Title: Re: Router Advertisement
Post by: marjohn56 on January 21, 2022, 03:26:21 pm
Line 325 has   $ailiaslistif = []; rather than  $aliaslistif = [];

Bit of a typo!  :)


I don't know whether we are supposed to raise this on Github or just post it here.. ???
 

Title: Re: Router Advertisement
Post by: franco on January 21, 2022, 03:35:14 pm
Should be https://github.com/opnsense/core/commit/123808d9c

# opnsense-patch 123808d9c

However, this does not impact operation of router advertisements at all.


Cheers,
Franco
Title: Re: Router Advertisement
Post by: tiermutter on January 21, 2022, 03:45:32 pm
The patch caused that the mentioned error will not occur anymore when saving radvd config. But I still cant start radvd:
Code: [Select]
/status_services.php: The command '/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog' returned exit code '1', the output was '/var/etc/radvd.conf:16 error: syntax error'   
Title: Re: Router Advertisement
Post by: franco on January 21, 2022, 03:54:17 pm
What I said...

What's in line 16 of /var/etc/radvd.conf then? I can't access this by remote ;)


Cheers,
Franco
Title: Re: Router Advertisement
Post by: tiermutter on January 21, 2022, 04:11:15 pm
Not?  :P
Line 16 is
Code: [Select]
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 ::1 {
Dont know why there is ::1, doesnt make sense, probably I added this inadvertently when I played around a bit trying to advertise the Sense as DNS Server. ::)
Removed ::1 and everything works fine again, easier than expected :)
Title: Re: Router Advertisement
Post by: zyon on January 21, 2022, 04:57:18 pm
Should be https://github.com/opnsense/core/commit/123808d9c

# opnsense-patch 123808d9c

However, this does not impact operation of router advertisements at all.


Cheers,
Franco


Thanks, that worked :)

And yes, it doesn't affect the IPV6

Very strange, no problem at all before upgrade and now i have the error on system log :
/interfaces.php: The command '/sbin/route add -'inet6' default 'fe80::8c97:eaff:fe32:fae0%igb1'' returned exit code '1', the output was 'route: writing to routing socket: Network is unreachable add net default: gateway fe80::8c97:eaff:fe32:fae0%igb1 fib 0: Network is unreachable'

fe80::8c97:eaff:fe32:fae0 is my gateway


EDIT :

No link local are available for wan...

I had to return to 21.7, my wife want to kill me without TV .... :)

Edit 2 : all is ok on 21.7, link local is here and my gateway can be routed

Edit 3 : On 22.1 R2, I have to keep DHCP on IPV6 to have the link local ... if IPV6 disabled the link local disappear.
Title: Re: Router Advertisement
Post by: zyon on January 23, 2022, 12:22:15 pm
Is there a way to keep local link even IPV6 disabled ? like 21.7
Title: Re: Router Advertisement
Post by: franco on January 25, 2022, 09:12:24 am
Are you using a static IPv6 configuration? I don't quite understand how to reproduce this condition.


Cheers,
Franco
Title: Re: Router Advertisement
Post by: zyon on January 25, 2022, 01:20:59 pm
I do not use IPV6 on "wan"

To my router (bridged mode) i set the "wan" link local (from OPNsense) to the first "nexthop"

On OPNsense i add an IPV6 gateway (linklocal from my routeur)
I set a static ipv6 to the lan interface with the prefix from the first next hop.
And Wan IPV6 is set to "none"

In this configuration i don't have an IPV6 to the wan interface

On 21.7 even IPV6 set to "none" the link local still present

But on 22.1 there no link local if IPV6 is set to "none"

I can add a static IPV6 to wan but is not needed.
Title: Re: Router Advertisement
Post by: franco on January 25, 2022, 01:30:14 pm
Thanks that makes some sense. The "ifdisabled" flag seems to b e a bit more sticky on FreeBSD 13 while I cannot reproduce where an IPv6 configuration exists properly.

I think your best bet for now is to add an IPv6 link-local to WAN interface and that could work.

If "ifdisabled" is still preventing this on FreeBSD 13 it needs to be disabled manually, but the question first is if the virtual link-local trick works.


Cheers,
Franco
Title: Re: Router Advertisement
Post by: zyon on January 25, 2022, 03:08:36 pm
Thanks to you Franco ;)
I try after work.

EDIT :

Ok, i've set the link local as static ipv6 on the WAN
==> not working (lost IPV6 connection)
On the Wan interface i've selected the gateway instead "auto-select"
==> Now all is working


Thanks for your help Franco :)
Title: Re: Router Advertisement
Post by: franco on January 26, 2022, 08:27:09 am
Is that with both link-local VIP and gateway or without link-local set?


Cheers,
Franco
Title: Re: Router Advertisement
Post by: zyon on January 26, 2022, 04:34:48 pm
I had to put them together