Gateway Monitoring

Started by supercm, February 08, 2022, 01:24:02 AM

Previous topic - Next topic
I will try changing the time to 5 seconds to see if it makes a difference.

February 16, 2022, 07:12:28 PM #16 Last Edit: February 16, 2022, 07:14:00 PM by supercm
I just got another failure from the second node. It shows in the UI that the interface is offline.

Ping from the interface is successful and no changes to the routes.

I disabled monitoring and re-enabled it and it shows as online.

Firewall : Settings : Advanced : Disable State Kill on Gateway failure .. please tick this

That is not a valid option under Advanced.


These are my options


IPv6 Options   full help
Allow IPv6    Allow IPv6
Network Address Translation   
Reflection for port forwards   
Reflection for 1:1   
Automatic outbound NAT for Reflection   
Bogon Networks   
Update Frequency   
Monthly
Gateway Monitoring   
Skip rules    Skip rules when gateway is down
Multi-WAN   
Sticky connections    Use sticky connections
Source tracking timeout
Shared forwarding    Use shared forwarding between packet filter, traffic shaper and captive portal
Disable force gateway    Disable automatic rules which force local services to use the assigned interface gateway.
Schedules   
Schedule States   
Miscellaneous   
Firewall Optimization   
normal
Firewall Rules Optimization   
basic
Bind states to interface   
Disable Firewall    Disable all packet filtering.
Firewall Adaptive Timeouts   
start   end
Firewall Maximum States   
Firewall Maximum Fragments   
Firewall Maximum Table Entries   
Static route filtering    Bypass firewall rules for traffic on the same interface
Disable reply-to    Disable reply-to on WAN rules
Disable anti-lockout    Disable administration anti-lockout rule
Aliases Resolve Interval   
Check certificate of aliases URLs    Verify HTTPS certificates when downloading alias URLs
Dynamic state reset    Reset all states when a dynamic IP address changes.

Ah, was removed with 22.1 so it seems OK then

Same issue here, ended up disabling monitoring till I can roll back to 21.7...

Any other recommendations on how to solve this issue? It seems to be constant with most of my interfaces.



I seem to have similar issue https://forum.opnsense.org/index.php?topic=27433.0
I have two WANs, both doing gateway monitoring. One is having the problem. The other seems fine. When it happens, the interface that is affected shows double ICMP replies of the dpinger pings.
tcpdump -n -i cxl1 icmp
...
23:51:43.962528 IP 98.51.182.15 > 4.2.2.3: ICMP echo request, id 33608, seq 0, length 8
23:51:43.981125 IP 4.2.2.3 > 98.51.182.15: ICMP echo reply, id 33608, seq 0, length 8
23:51:43.981169 IP 4.2.2.3 > 98.51.182.15: ICMP echo reply, id 33608, seq 0, length 8


Quote from: darp12345 on March 11, 2022, 12:57:54 AM
I seem to have similar issue https://forum.opnsense.org/index.php?topic=27433.0
I have two WANs, both doing gateway monitoring. One is having the problem. The other seems fine. When it happens, the interface that is affected shows double ICMP replies of the dpinger pings.
tcpdump -n -i cxl1 icmp
...
23:51:43.962528 IP 98.51.182.15 > 4.2.2.3: ICMP echo request, id 33608, seq 0, length 8
23:51:43.981125 IP 4.2.2.3 > 98.51.182.15: ICMP echo reply, id 33608, seq 0, length 8
23:51:43.981169 IP 4.2.2.3 > 98.51.182.15: ICMP echo reply, id 33608, seq 0, length 8


Is this a virtual machine? Usually its fine to only monitor the primary line as there is no action when both are down