OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: tajs on May 04, 2020, 10:38:37 PM

Title: Wireguard with OSPF
Post by: tajs on May 04, 2020, 10:38:37 PM
Hi Opnsense wizzards

First post here!

Does any one do OSPF over Wireguard and have it working ?

I have done some testing with 2 nodes, and can't see to get it behave probberly.
Tunnel is up and allowed ip is 0.0.0.0/0, Disable routes is checked. OSPF is configured and the 2 nodes can exchange the routes, but can't install the routes in the kernel.
i am getting the following error in the frr log:
kernel_rtm_ipv4: 192.168.3.0/24: rtm_write() unexpectedly returned -2 for command RTM_ADD

If i change the wg tunnel to allowed ip: 192.168.0.0/16, 224.0.0.0/8 and uncheck Disable routes, then the OSPF routes are able to be installed in the kernel, but this also installs 192.168.0.0/16 and 224.0.0.0/8 and then the idea of OSPF is gone .
Title: Re: Wireguard with OSPF
Post by: mimugmail on May 05, 2020, 07:56:32 AM
Hm, never saw this one, bu I also dont run OSPF. Maybe it's more related to WireGuard or FRR?
Title: Re: Wireguard with OSPF
Post by: tajs on May 05, 2020, 10:16:45 AM
I think i maybe is related to FRR and FreeBSD, but it is a wild guess.
its like there is a permission issue for FRR to install the routes.

Just wanted to check if anybody had the same issues.