1
23.7 Legacy Series / Wireguard [23.7.8_1] '/sbin/route -q -n add -'inet' '10.1.1.0/24' error
« on: November 21, 2023, 09:34:30 am »
Hi,
I am currently facing an issue with Wireguard and a site2site connection to a FritzBox.
The wireguard connection is established, but I cannot reach the other network from any device BUT the opnsense.
Firewall rules and interface are all properly setup. It seems like a routing issue
Currently version 23.7.8_1 of OPNsense throws following error:
I have tried removing and setting up the wireguard tunnel on the OPNsense.
The error is not thrown when I remove the 10.1.1.0/24 from the allowed addresses. When I remove the tunnel address, the error is also not thrown.
What I noticed is that when I remove the 10.1.1.0/24 from the allowed addresses, under System > Routes > Status there is still a route to 10.1.1.0/24
I am currently facing an issue with Wireguard and a site2site connection to a FritzBox.
The wireguard connection is established, but I cannot reach the other network from any device BUT the opnsense.
Firewall rules and interface are all properly setup. It seems like a routing issue
Currently version 23.7.8_1 of OPNsense throws following error:
Code: [Select]
2023-11-21T09:07:38 Warning wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: Skipping gateway WG_VPN_GW due to empty 'gateway' property.
2023-11-21T09:07:38 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: plugins_configure monitor (execute task : dpinger_configure_do(,WG_VPN_GW))
2023-11-21T09:07:38 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: plugins_configure monitor (,WG_VPN_GW)
2023-11-21T09:07:38 Error wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: not a valid interface gateway address: ''
2023-11-21T09:07:38 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: entering configure using 'opt5'
2023-11-21T09:07:38 Notice wireguard wireguard instance wgopn-site-a (wg2) started
2023-11-21T09:07:38 Error wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: The command '/sbin/route -q -n add -'inet' '10.1.1.0/24' -interface 'wg2'' returned exit code '1', the output was ''
2023-11-21T09:07:38 Notice wireguard wireguard instance wgopn-site-a (wg2) stopped
I have tried removing and setting up the wireguard tunnel on the OPNsense.
The error is not thrown when I remove the 10.1.1.0/24 from the allowed addresses. When I remove the tunnel address, the error is also not thrown.
What I noticed is that when I remove the 10.1.1.0/24 from the allowed addresses, under System > Routes > Status there is still a route to 10.1.1.0/24