Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

pfSense gateway Alarm from dpinger: packet loss or latency marks a working WAN as down

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When pfSense shows a gateway as Offline or Warning because of packet loss or latency, and the Status > System Logs, System / Gateways log holds a dpinger line such as WAN_GW 198.51.100.1: Alarm latency 4807us stddev 1790us loss 21%, the gateway monitoring daemon has measured loss or delay to the monitor address past the gateway's thresholds. That measures the path to one host, not the whole circuit. Test the monitor address and a second host before you change any threshold.

What the symptom means

Netgate's Gateway Settings page says the gateway monitoring daemon "will ping each gateway periodically to monitor latency and packet loss for traffic to the monitored IP address". By default the target is the gateway's own address. The Monitor IP setting changes it, and the daemon sends ICMP echo requests (pings) to that address.

Each gateway has two latency thresholds and two loss thresholds, set under Advanced Gateway Settings. Netgate gives these defaults:

Setting From (warning) To (down)
Latency Thresholds 200 ms 500 ms
Packet Loss Thresholds 10 % 20 %

The From value is the lower boundary at which the gateway is in a warning state but not down. Past the To value it is considered down and removed from service. The same page gives these timing defaults: Probe Interval 500 ms (two pings a second), Loss Interval 2000 ms, Time Period 60000 ms (results are averaged over 60 seconds) and Alert Interval 1000 ms. At the defaults the daemon sends 60000 / 500 = 120 probes in one averaging period.

Status > Gateways shows the result. Its Status column reads Online, Offline or Warning, and for the last two it carries a text description such as offline due to packet loss. The Gateway Logs page says the dpinger log records events "such as when a gateway is down, or in an alarm state, or has returned to an online state". Its examples show an Alarm line when a gateway enters the alarm state and a Clear line when it recovers.

Loss on the monitor probes does not always mean a bad circuit. Netgate's Gateway Status page says: "experiencing packet loss from monitoring probes does not always indicate a problem with the circuit." A router between the firewall and the monitor host can drop or throttle the probes, and then Netgate's advice is to "choose a different monitor IP address".

A gateway group adds a second rule. In a group, the Trigger Level option decides what takes a member out of use. For Packet Loss, Netgate says it "Marks the gateway as down when packet loss crosses the lower alert threshold", which is the From value: Gateway Settings defines From as "the lower boundary at which the gateway would be considered in a warning state, but not down", while Member Down acts only "past one or both of the higher thresholds". Our reading is that a member can leave the group while Status > Gateways shows only Warning.

Likely causes

Cause What you see How to confirm
Real loss or delay on the path to the monitor host Alarm lines that repeat; users report slow or dropped traffic at the same times Diagnostics > Ping to the monitor IP and to a second host shows loss on both
The monitor host or a router on the path throttles ICMP Loss on the monitor probes; a ping to a different upstream host is clean; user traffic works Ping both hosts from the WAN address and compare
Thresholds too tight for the circuit Warning or Offline on a link that carries traffic; RTT and RTTsd often high Compare RTT and RTTsd in Status > Gateways with the From and To values
Monitor IP is the modem or CPE The opposite fault: no alarm when the provider is down Netgate's multi-WAN test: the "monitor ping still succeeds since it is pinging the modem"
Two gateways share one Monitor IP, or the host is reached via the wrong WAN Readings that do not match either circuit Status > Gateways, Monitor column; Netgate says "Each gateway must have a unique Monitor IP address."
Group Trigger Level is Packet Loss or High Latency A group member drops out at the From value System > Routing, Gateway Groups tab

Prove the cause before changing anything

All of these checks only read.

  1. Read the log. Go to Status > System Logs and the System/Gateways sub-tab. Note the time of each Alarm and Clear line and the loss and latency figures in them.
  2. Read the gateway table. Go to Status > Gateways. Note Monitor (which address is probed), RTT, RTTsd, Loss and Status. Netgate says a high RTTsd means "the latency on the path to the monitor IP address varies significantly".
  3. Test the monitor host and a second host. Go to Diagnostics > Ping. Set Hostname to the monitor IP, set Source Address to the firewall's address on that WAN, and set Maximum Number of Pings to 10 (default 3; Seconds Between Pings defaults to 1). In the pfSense source the page accepts 1 to 10 pings, so run the test three times for each host and add up the results. Click Ping and stay on the page, because Netgate says "Do not navigate away from the page while the test is running." Repeat with a different host on the same upstream path.
  4. Compare with real traffic. Check whether users see a fault when the alarm is on. A gateway that is Offline while traffic flows normally points to the monitor host or the thresholds.
  5. Check groups. Open System > Routing, Gateway Groups tab, and read each group's Trigger Level.

A good result is 0 % loss to both hosts with steady times. If the second host is clean and the monitor host shows loss, the monitor host is the cause. If both show loss, the circuit or the path is the cause, and your measurements go to the provider: Proving Packet Loss and Latency to a Provider: Reading mtr and pathping Correctly covers collecting the measurements to send to a provider.

Example (illustrative): fw01 has two WANs. WAN_GW uses the default Monitor IP, the gateway address 198.51.100.1, which is the provider's CPE. The gateway log shows Alarm ... loss 24% for a few minutes each hour, and the group fails over to WAN2_GW, while staff report no slow traffic. In Diagnostics > Ping with Source Address 198.51.100.10, three runs of 10 pings, 1 second apart, to 198.51.100.1 lose 2 packets in each run: 6 / 30 = 20 %. The same three runs to 203.0.113.53, a host further upstream, lose 0 of 30. The CPE is throttling ICMP, so the monitor host is the cause. The engineer sets the Monitor IP of WAN_GW to 203.0.113.53, which no other gateway uses. Status > Gateways then shows Monitor 203.0.113.53, Loss 0.0 % and Online.

Fix

The monitor host throttles ICMP: change the Monitor IP

First save the current values. Go to System > Routing, Gateways tab, and edit the gateway. Write the Monitor IP and the four threshold values into a text file named gateway-before-2026-12-01.txt. Also go to Diagnostics > Backup & Restore and click Download Configuration as XML, as Netgate's backup page describes.

Risk: the next change points the gateway's health check at a different host. If that host is unstable or filters pings, the gateway will be marked down and traffic may fail over. Pick a stable host beyond the provider's equipment, not the CPE or modem.

Edit the gateway and enter the new address in Monitor IP. It must differ from the Monitor IP of every other gateway. If the address is not directly connected, Netgate says "a static route is added to ensure that traffic to the Monitor IP address leaves via the expected gateway". Save the gateway, and click Apply Changes if the page offers it.

To undo it: edit the gateway again, enter the Monitor IP from gateway-before-2026-12-01.txt (or use the gateway address, which is the default target), save, and apply.

Thresholds too tight for the circuit: raise them

First save the current values in gateway-before-2026-12-01.txt, as above.

Risk: the next change makes the gateway tolerate more loss and delay before it is called down, so a failing link takes longer to be taken out of service, and users on it see the fault for longer before failover.

Edit the gateway, click Display Advanced, and enter higher From and To values for Latency Thresholds or Packet Loss Thresholds. Netgate's instruction is: "If loss alarms occur on a normally functioning WAN gateway, enter higher values in the From and To fields until a good balance for the circuit is achieved." Base each value on the RTT, RTTsd and Loss you measured. Keep the timing rule: the Time Period "must be greater than twice the sum of the Probe Interval and Loss Interval". At the defaults, 2 x (500 + 2000) = 5000 ms, well under 60000 ms. Loss Interval "Must be greater than or equal to the High Latency Threshold", so a Latency To above 2000 ms needs a higher Loss Interval. Save and apply.

To undo it: edit the gateway, enter the values from gateway-before-2026-12-01.txt in the advanced fields, save, and apply.

A group drops a member too early: change the Trigger Level

First save the group's current settings: on System > Routing, Gateway Groups tab, write the Trigger Level and each member's Tier into group-before-2026-12-01.txt.

Risk: the next change makes the group keep a gateway in use until it is completely down. A link that is slow or lossy but not dead then keeps carrying traffic, instead of traffic moving to the next tier.

Edit the group and set Trigger Level to Member Down, or to the level you want. Save and apply.

To undo it: edit the group, set Trigger Level back to the value in group-before-2026-12-01.txt, save, and apply.

A single WAN: stop the actions, keep the monitoring

First save the current setting in gateway-before-2026-12-01.txt: whether Disable Gateway Monitoring Action is ticked.

Risk: the next change stops the firewall taking any action when this gateway's status changes, such as when a gateway becomes unresponsive. Netgate's tip says that on a firewall with a single WAN, gateway monitoring actions "can typically be disabled since no actions are necessary if a gateway fails". Do not use it on a firewall with more than one path.

Edit the gateway, tick Disable Gateway Monitoring Action, save and apply. Monitoring continues and Status > Gateways still shows the figures.

To undo it: edit the gateway, clear the tick, save, and apply.

Confirm the fix

  1. Status > Gateways shows the gateway Online, the Monitor column shows the address you intended, and Loss and RTT sit below the From values.
  2. The System/Gateways log shows a Clear line and no new Alarm lines over a full day, including the hours when the earlier alarms occurred.
  3. Diagnostics > Ping to the monitor IP and the second host agree with what Status > Gateways reports.
  4. On a multi-WAN firewall, a Monitor IP that cannot see a real provider failure shows up only when a failure is simulated. Netgate's Verifying Functionality page simulates one by unplugging cables or powering off equipment, which interrupts traffic, so plan it as a separate task.

What to watch afterwards

  • Gateway alarms at the same time each day: check the log times against scheduled jobs on the link.
  • RTTsd drifting upward in Status > Gateways, which Netgate links to load or instability.
  • Flapping gateways with state killing switched on in System > Advanced, Miscellaneous. Netgate says clearing states can disrupt ongoing connections if a gateway is unstable. The default is "Do not kill states on gateway failure".

Risks and limits

  • These commands have not been run or lab-tested. No web interface step has been tried on a firewall either.
  • The Gateway Logs page was last updated on 30 June 2022, and the log line format in a current release may differ.
  • The ping limit of 10 is a reading of the pfSense source file diag_ping.php at a fixed commit, not a Netgate documentation statement, and it may differ in a release. Netgate's pages give no recommended loss thresholds for particular circuit types.
  • A clean ping describes one path and one host and does not prove other traffic is unaffected.
  • A restore of a full configuration backup reboots the firewall, and a restore from Config History does not reboot it automatically, though Netgate says reverting some major changes will need one, so back out with the saved values as above.

Sources

  • Gateway Settings — Netgate pfSense documentation, last updated 2025-08-29, accessed 1 December 2026
  • Gateway Status — Netgate pfSense documentation, last updated 2025-08-27, accessed 1 December 2026
  • Gateway Groups — Netgate pfSense documentation, last updated 2025-12-19, accessed 1 December 2026
  • Gateway Logs — Netgate pfSense documentation, last updated 2022-06-30, accessed 1 December 2026
  • Verifying Functionality — Netgate pfSense documentation, last updated 2025-08-27, accessed 1 December 2026
  • Ping Host — Netgate pfSense documentation, last updated 2025-08-25, accessed 1 December 2026
  • Miscellaneous advanced options — Netgate pfSense documentation, last updated 2026-03-06, accessed 1 December 2026
  • diag_ping.php — pfSense source repository, commit 480a1c0626c474eaa9ced5d668701a0d1d4408ac (last commit to the file on master, 2026-02-05), accessed 1 December 2026
  • Configuration Backup — Netgate pfSense documentation, last updated 2025-08-22, accessed 1 December 2026
  • Restoring and Configuration History — Netgate pfSense documentation, last updated 2025-12-15, accessed 1 December 2026