core
core copied to clipboard
No static route entry for gateway with far gateway checked
Important notices
- [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
I'm running Opnsense 22.7.1-amd64 with three WAN and policy routing. Two of them are in their own network and all works but the third are not in the same network address so i have checked the checkbox Far Gateway but she appears as down and i have the following error in console.
arpresolve: can't allocate llinfo for 51.158.82.41 on vtnet0_vlan19
It's appear no route was added for this gateway in routing table.
To Reproduce
Steps to reproduce the behavior:
- Go to 'System' → 'Gateways
→Single` - Create a new gateway with
Far Gatewaychecked - Check routes
- No route was added for this far gateway
Expected behavior
- Add a static route when the checkbox
Far Gatewayis checked
Describe alternatives you considered
- I create a static route via
System→Routes→ConfigurationwhereNetwork Addressis my gateway address andGatewayis the Gateway define withFar Gatewaycreated previously.
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant log files
If applicable, information from log files supporting your claim.
Additional context
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 22.7.1-amd64 FreeBSD 13.1-RELEASE OpenSSL 1.1.1q 5 Jul 2022
There should be an error in "opnsense-log" after applying the routes?
When I add the Gateway
- I have this log from
System→Gateways→Log Files
2022-08-16T14:43:36 Notice dpinger GATEWAY ALARM: GW_WAN_VPN (Addr: 62.210.0.1 Alarm: 1 RTT: 0us RTTd: 0us Loss: 100%)
2022-08-16T14:43:36 Warning dpinger GW_WAN_VPN 62.210.0.1: Alarm latency 0us stddev 0us loss 100%
2022-08-16T14:43:34 Warning dpinger send_interval 1000ms loss_interval 2000ms time_period 60000ms report_interval 0ms data_len 0 alert_interval 1000ms latency_alarm 500ms loss_alarm 20% dest_addr 172.16.0.254 bind_addr 172.16.0.1 identifier "GW_WAN_RPO "
2022-08-16T14:43:34 Warning dpinger send_interval 1000ms loss_interval 2000ms time_period 60000ms report_interval 0ms data_len 0 alert_interval 1000ms latency_alarm 500ms loss_alarm 20% dest_addr 62.210.0.1 bind_addr 51.158.82.41 identifier "GW_WAN_VPN "
2022-08-16T14:43:34 Warning dpinger send_interval 1000ms loss_interval 2000ms time_period 60000ms report_interval 0ms data_len 0 alert_interval 1000ms latency_alarm 500ms loss_alarm 20% dest_addr 217.112.51.99 bind_addr 217.112.51.102 identifier "GW_WAN1 "
2022-08-16T14:43:34 Warning dpinger exiting on signal 15
2022-08-16T14:43:34 Warning dpinger exiting on signal 15
- I have this log on
System→Log Files→General
2022-08-16T14:50:57 Error opnsense /interfaces.php: Chose to bind GW_WAN_VPN on 51.158.82.41 since we could not find a proper match.
2022-08-16T14:50:57 Error opnsense /interfaces.php: ROUTING: keeping current default gateway '217.112.51.99'
2022-08-16T14:50:57 Error opnsense /interfaces.php: ROUTING: setting IPv4 default route to 217.112.51.99
2022-08-16T14:50:57 Error opnsense /interfaces.php: ROUTING: IPv4 default gateway set to wan
2022-08-16T14:50:57 Error opnsense /interfaces.php: ROUTING: entering configure using defaults
2022-08-16T14:50:56 Error opnsense /interfaces.php: ROUTING: skipping IPv4 default route
2022-08-16T14:50:56 Error opnsense /interfaces.php: ROUTING: IPv4 default gateway set to wan
2022-08-16T14:50:56 Error opnsense /interfaces.php: ROUTING: entering configure using 'opt11'
2022-08-16T14:50:20 Error opnsense /system_gateways.php: Chose to bind GW_WAN_VPN on 51.158.82.41 since we could not find a proper match.
2022-08-16T14:50:20 Error opnsense /system_gateways.php: ROUTING: keeping current default gateway '217.112.51.99'
2022-08-16T14:50:20 Error opnsense /system_gateways.php: ROUTING: setting IPv4 default route to 217.112.51.99
2022-08-16T14:50:20 Error opnsense /system_gateways.php: ROUTING: IPv4 default gateway set to wan
2022-08-16T14:50:20 Error opnsense /system_gateways.php: ROUTING: entering configure using defaults
2022-08-16T14:50:00 Error opnsense /system_gateways.php: ROUTING: keeping current default gateway '217.112.51.99'
2022-08-16T14:50:00 Error opnsense /system_gateways.php: ROUTING: setting IPv4 default route to 217.112.51.99
2022-08-16T14:50:00 Error opnsense /system_gateways.php: ROUTING: IPv4 default gateway set to wan
2022-08-16T14:50:00 Error opnsense /system_gateways.php: ROUTING: entering configure using defaults
When i add the static route
- The gateway get up but
- I haven't logs on
System→Routes→Log Fileswhen i add the static route. - I haven't supplementary logs on
System→Gateways→Log Files. - I haven't supplementary logs on
System→Log Files→General.
- I haven't logs on
I'm affected by this issue too and in 21.x version (Old version of my opnsense instalation) I had no need to change this option. Maybe we are searching a regression here?
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.