OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: unlikely on April 20, 2025, 12:08:57 AM

Title: Issue with OSPF over Zerotier
Post by: unlikely on April 20, 2025, 12:08:57 AM
Hello everyone,

I've been experimenting for the past few days, for the first time, with OPNsense 25.1.5_5 (amd64). I'm attempting to set up OSPF between an OPNsense machine and two Mikrotik routers.

I have established VPN connections using both WireGuard and ZeroTier:


Everything works as expected until I reboot OPNsense. After the reboot, only the WireGuard adjacencies are fully re-established. The Mikrotik routers show the OPNsense neighbor stuck in the Init state.

Here's what happens:


The only workaround I've found is to make a minor and seemingly irrelevant change to the OPNsense firewall rules and apply it (e.g., enabling or disabling an unrelated rule). This action re-establishes adjacency over ZeroTier.

Running pfctl -d; pfctl -e also temporarily solves the problem, but only for half a minute.

Does anyone have ideas or suggestions to address this issue?
Title: Re: Issue with OSPF over Zerotier
Post by: unlikely on April 20, 2025, 01:01:51 PM
Apparently the firewall rules defined as floating and in interface groups including the zerotier interface are not effective for the zerotier interface after reboot.

So for example after reboot incoming multicast traffic for OSPF is dropped despite a rule in an interface group.

And web gui access from zerotier is not allowed despite a floating rule.

On the other hand, a rule for ospf multicast added on the zerotier interface is applied since reboot.

Is this some kind of limit/bug or should I change some setting?
Any workaround? Replicating and maintaining all rules from group also in ZT interface is not easy...
Title: Re: Issue with OSPF over Zerotier
Post by: unlikely on April 23, 2025, 10:23:34 AM
Opened github issue.

https://github.com/opnsense/core/issues/8574