Link-local gateway addresses missing zone index, breaks gateway monitoring

Started by Maurice, July 18, 2019, 01:32:26 AM

Previous topic - Next topic
Hi,

After upgrading from 19.1 to 19.7, OPNsense has issues dealing with gateways which have an IPv6 link-local address:

I have two gateways with a statically configured link-local address (fe80::42%hn1, fe80::42%hn2). After the upgrade, the IP addresses were completely gone for both gateways. Re-entering the addresses was not possible: After clicking "save", the address is gone again. Only after entering the addresses without the zone index was I able to save them. But without the zone index gateway monitoring doesn't work.

Similar issue with the WAN_DHCP6 gateway (where the gateway IP address is assigned automatically via RAs from the ISP): The zone index is missing so gateway monitoring doesn't work.

This might be the same issue, although the description is a bit vague:
https://forum.opnsense.org/index.php?topic=13506.0

[Edit]
The following PHP error seems to be related to this:
PHP Warning:  vsprintf(): Too few arguments in /usr/local/etc/inc/util.inc on line 986
[/Edit]

Cheers

Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

Someone having the same issue pushed a button on the make-a-wish vending machine* created a bug report today, so it doesn't seem to be a PEBKAC.

And to say something positive: Apart from that, the upgrade was completely painless (Hyper-V Gen2 VM running on Windows Server 2012 R2). Thanks y'all!

Maurice

* Sorry, @franco. ;-)
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

Fixed and confirmed working in 19.7.1:
system: scoped IPv6 "%" could confuse mwexecf(), use plain mwexec() instead

(Unlike in earlier versions, you don't need to specify the zone index any more. Routing and gateway monitoring now work without it so I guess it is added automatically. This mechanism might haven been broken in 19.7[.0]. Just speculation, I didn't dive that deep.)

Cheers

Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

I missed this thread when I started my own. I was having exact same problem as OP originally described. The same php error and the gateway monitor not starting, with a gateway that only has a link-local address. There was also an instance of the gateway on the dashboard, but it was not online. I just updated. The php error is gone, but the gateway monitor is still not starting. Also, the gateway is gone.

If anyone would like info from my system, let me know what you need.

Looking at your original thread, your issue seems to be caused by the "directly send SOLICIT" option (which I don't use). I don't think it's related to this (fixed) zone index bug. Issue #3604 might indeed be the culprit so better to continue there.

Cheers

Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).