AWS Security ChangesHomeSearch

AWS network-firewall: Note PostgreSQL drops in monitor mode and add pgsql allow rule

Service: network-firewall · 2026-11-18 · Documentation low

File: network-firewall/latest/developerguide/firewall-policy-v2-troubleshooting.md

Summary

Adds a caveat that PostgreSQL (pgsql) connections can be dropped even in monitor mode due to limited pgsql support, and adds a new troubleshooting section with an example Suricata-style rule that accepts pgsql traffic at the first hook.

Security assessment

The change documents an engine limitation that can cause unexpected traffic drops and provides an example allow rule. It is an availability/troubleshooting clarification, not a fix for a vulnerability or a new security control.

Evidence

+Because the firewall engine has limited support for PostgreSQL (`pgsql`), a PostgreSQL connection can be dropped when the firewall default action is an accept-type action or the policy is in monitor mode and no firewall rule accepts `pgsql`. To allow PostgreSQL traffic, add a firewall rule that accepts `pgsql` at its first hook, adjusting the source, destination, and `sid` for your environment:

Diff

diff --git a/network-firewall/latest/developerguide/firewall-policy-v2-troubleshooting.md b/network-firewall/latest/developerguide/firewall-policy-v2-troubleshooting.md
index 26c7c21..0ae51d3 100644
--- a//network-firewall/latest/developerguide/firewall-policy-v2-troubleshooting.md
+++ b//network-firewall/latest/developerguide/firewall-policy-v2-troubleshooting.md
@@ -21 +21 @@ Network Firewall publishes the `FirewallDefaultActionApplied` metric to Amazon C
-If you aren't sure whether a policy will block traffic that you need, deploy or switch the policy to monitor mode. In monitor mode, the policy passes all traffic through without dropping or rejecting anything, but still evaluates your rules and the default action and records the actions it would have applied in enforce mode. The stream exception policy isn't applied in monitor mode either—Network Firewall uses **Continue** , and your configured **Drop** or **Reject** stream exception policy applies again when you switch to enforce mode. The exceptions that still block in monitor mode are TLS-layer resets (a missing or invalid SNI, an SNI that doesn't match the server certificate, or a failed handshake), TLS inspection certificate revocation checks whose action is **Drop** or **Reject** , and Route 53 Resolved IP validation, which applies its configured action and DNS expiry exception policy in monitor mode. Review the resulting alert logs and the `FirewallDefaultActionApplied` metric to see which connections the default action would catch, fix your rules, and then switch back to enforce mode. For more information, see [Policy mode: enforce and monitor](./firewall-policy-v2-policy-mode.html).
+If you aren't sure whether a policy will block traffic that you need, deploy or switch the policy to monitor mode. In monitor mode, the policy passes all traffic through without dropping or rejecting anything, but still evaluates your rules and the default action and records the actions it would have applied in enforce mode. The stream exception policy isn't applied in monitor mode either—Network Firewall uses **Continue** , and your configured **Drop** or **Reject** stream exception policy applies again when you switch to enforce mode. The exceptions that still block in monitor mode are TLS-layer resets (a missing or invalid SNI, an SNI that doesn't match the server certificate, or a failed handshake), TLS inspection certificate revocation checks whose action is **Drop** or **Reject** , and Route 53 Resolved IP validation, which applies its configured action and DNS expiry exception policy in monitor mode. PostgreSQL (`pgsql`) connections can also be dropped in monitor mode because `pgsql` support is limited. Review the resulting alert logs and the `FirewallDefaultActionApplied` metric to see which connections the default action would catch, fix your rules, and then switch back to enforce mode. For more information, see [Policy mode: enforce and monitor](./firewall-policy-v2-policy-mode.html).
@@ -37,0 +38,7 @@ When an allowed connection is dropped, check for the following, which are the mo
+###### Allow PostgreSQL (pgsql) traffic
+
+Because the firewall engine has limited support for PostgreSQL (`pgsql`), a PostgreSQL connection can be dropped when the firewall default action is an accept-type action or the policy is in monitor mode and no firewall rule accepts `pgsql`. To allow PostgreSQL traffic, add a firewall rule that accepts `pgsql` at its first hook, adjusting the source, destination, and `sid` for your environment:
+    
+    
+    accept:flow pgsql:request_started $HOME_NET any -> $EXTERNAL_NET any (sid:1;)
+