) Prevent discarded UDP sessions from being kept alive by
continuous traffic.
By default, when the firewall places a UDP session in the DISCARD state, every
subsequent packet that matches the same session (6-tuple) resets the session's
idle timeout. Because UDP is connectionless and reuses the same source and
destination ports, a continuously talking source can keep a discarded session
alive indefinitely, so the session never ages out. This can block legitimate
traffic that later reuses the same 6-tuple, causing it to be silently dropped
until the discard session is cleared manually.
To stop discarded UDP sessions from being refreshed—so they expire naturally on
their discard timeout regardless of continued traffic—run:
set session no-refresh-on-discard yes
This is an operational setting (it is not part of the saved configuration) and
persists across reboots. You must set it on each firewall independently,
including both peers in an HA pair. This command is available in PAN-OS
12.2.2 and later.
The setting applies to UDP sessions that are discarded through the following
validated deny paths, which are the scenarios known to cause traffic
disruption:
The setting does not affect:
IPsec-tunneled UDP and other UDP flows are covered only when they are
discarded through one of the deny paths listed above. TCP-based protocols such
as BGP are not affected by this setting.
To verify the setting is active, run show session info and
confirm the output displays:
Do not refresh discard sessions: True