AWS network-firewall: Editorial wording cleanup and Next Generation stream exception policy note
Summary
Rewrote "if" to "whether", "may" to "might", and "as well as" to "and" throughout the troubleshooting page; also added a note that the Continue stream exception policy is supported only for Classic Network Firewall policies, while Next Generation policies support only Drop and Reject.
Security assessment
The diff is overwhelmingly copy-editing ("if"→"whether", "may"→"might", "as well as"→"and"). The only substantive addition is a product-capability note that Continue is unavailable on Next Generation policies, which is a policy behavior/compatibility clarification rather than documentation of a security feature, vulnerability, or best practice. No CVE, credential, IAM, or exposure content is introduced.
Evidence
+The **Continue** stream exception policy option is supported only for Classic Network Firewall policies. A Next Generation policy's stream exception policy supports only **Drop** and **Reject**.
Diff
diff --git a/network-firewall/latest/developerguide/troubleshooting-general-issues.md b/network-firewall/latest/developerguide/troubleshooting-general-issues.md index 311087f..6eae3f3 100644 --- a//network-firewall/latest/developerguide/troubleshooting-general-issues.md +++ b//network-firewall/latest/developerguide/troubleshooting-general-issues.md @@ -7 +7 @@ -Firewall endpoint creation or deletion failsAvailability Zone is unsupportedHow do I check if I have asymmetric routing?I'm using Network Firewall with AWS Transit Gateway and Network Firewall is dropping trafficHigh latency and intermittent packet drops when traffic passes through Network FirewallHow Network Firewall scaling works +Firewall endpoint creation or deletion failsAvailability Zone is unsupportedHow do I check whether I have asymmetric routing?I'm using Network Firewall with AWS Transit Gateway and Network Firewall is dropping trafficHigh latency and intermittent packet drops when traffic passes through Network FirewallHow Network Firewall scaling works @@ -23 +23 @@ You might be trying to create the Network Firewall in a constrained Availability -## How do I check if I have asymmetric routing? +## How do I check whether I have asymmetric routing? @@ -169 +169 @@ Network latency and packet drops can occur for multiple reasons such as a sudden - 2. **Asymmetrically-forward connections** – Check if you have asymmetrically-forward connections on your network. For more information about how to check asymmetric routing, see How do I check if I have asymmetric routing?. When forwarding traffic from the stateless engine to stateful, you must forward the request and response traffic bi-directionally. Be aware that unidirectional pass rules can create asymmetric forwarding when the policy's stateless default action is **Forward to stateful rule groups**. + 2. **Asymmetrically forwarded connections** – Check whether you have asymmetrically forwarded connections on your network. For more information about how to check asymmetric routing, see How do I check whether I have asymmetric routing?. When forwarding traffic from the stateless engine to stateful, you must forward the request and response traffic bi-directionally. Be aware that unidirectional pass rules can create asymmetric forwarding when the policy's stateless default action is **Forward to stateful rule groups**. @@ -171 +171 @@ Network latency and packet drops can occur for multiple reasons such as a sudden -Make sure that your stateless rules forward traffic symmetrically to the stateful engine using the **forward to stateful rule groups** action. Often this means writing pairs of rules to match both forward and return direction traffic. Asymmetrically forwarded packets are subject to the [stream exception policy](./stream-exception-policy.html) action, which by default is configured to **drop**. You can check the `StreamExceptionPolicyPackets` metric in CloudWatch, which counts the number of times that stream exception policy is invoked. If you have asymmetrically-forwarded connections, this metric count will be high during the time you noticed high latency or packet drops. You can change the stream exception policy configuration in the firewall policy to determine how Network Firewall handles asymmetrically-forwarded connections. The following stream exception policy actions correlate to the specified CloudWatch metrics: +Make sure that your stateless rules forward traffic symmetrically to the stateful engine using the **forward to stateful rule groups** action. Often this means writing pairs of rules to match both forward and return direction traffic. Asymmetrically forwarded packets are subject to the [stream exception policy](./stream-exception-policy.html) action, which by default is configured to **drop**. You can check the `StreamExceptionPolicyPackets` metric in CloudWatch, which counts the number of times that stream exception policy is invoked. If you have asymmetrically forwarded connections, this metric count is high during the time you noticed high latency or packet drops. You can change the stream exception policy configuration in the firewall policy to determine how Network Firewall handles asymmetrically forwarded connections. The following stream exception policy actions correlate to the specified CloudWatch metrics: @@ -173 +173 @@ Make sure that your stateless rules forward traffic symmetrically to the statefu - * `DROP` – Matching packets are dropped and counted in both the `StreamExceptionPolicyPackets` metric as well as the `DroppedPackets` metric. + * `DROP` – Matching packets are dropped and counted in both the `StreamExceptionPolicyPackets` metric and the `DroppedPackets` metric. @@ -175 +175 @@ Make sure that your stateless rules forward traffic symmetrically to the statefu - * `REJECT` – Matching packets receive a TCP reset response and are counted in both the `StreamExceptionPolicyPackets` metric as well as the `RejectedPackets` metric. Any further packets from these rejected connections are dropped and reflected in the `DroppedPackets` metric. + * `REJECT` – Matching packets receive a TCP reset response and are counted in both the `StreamExceptionPolicyPackets` metric and the `RejectedPackets` metric. Any further packets from these rejected connections are dropped and reflected in the `DroppedPackets` metric. @@ -177 +177,3 @@ Make sure that your stateless rules forward traffic symmetrically to the statefu - * `CONTINUE` Matching packets are counted in the `StreamExceptionPolicyPackets` metric but continue to be processed by rules. Therefore if you use the `CONTINUE` value in the stream exception policy, elevated values of this metric aren't necessarily a cause for concern. Please note that Network Firewall will continue to inspect these connections using your firewall rules and a connection can be dropped if it matches with a drop action rule. + * `CONTINUE` – Matching packets are counted in the `StreamExceptionPolicyPackets` metric but continue to be processed by rules. Therefore if you use the `CONTINUE` value in the stream exception policy, elevated values of this metric aren't necessarily a cause for concern. Network Firewall continues to inspect these connections using your firewall rules and a connection can be dropped if it matches with a drop action rule. + +The **Continue** stream exception policy option is supported only for Classic Network Firewall policies. A Next Generation policy's stream exception policy supports only **Drop** and **Reject**. @@ -181 +183 @@ For information about using CloudWatch metrics for Network Firewall, see [Metric - 3. **Long TCP idle timeouts** – Check if you have applications with long TCP timeouts. Network Firewall uses a Gateway Load Balancer (GWLB) endpoint to distribute flows to backend firewall instances. By default, Gateway Load Balancer has a [fixed idle timeout](https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/gateway-load-balancers.html#idle-timeout) of 350 seconds for TCP flows. Once the idle timeout is reached or a TCP connection is closed for a flow, it is removed from the firewall's connection state table. This can result in the flow timing out on the client side. Subsequent non-SYN TCP packets for a removed flow may be dropped by Gateway Load Balancer. New TCP connection requests using the same 5-tuple (source/destination IP, source/destination port and protocol) might be routed to a different backend firewall instance than before. In this case, since the Gateway Load Balancer timeout is lower than the timeout value on your application, Gateway Load Balancer removes the flow without the application being aware it was dropped. + 3. **Long TCP idle timeouts** – Check whether you have applications with long TCP timeouts. Network Firewall uses a Gateway Load Balancer (GWLB) endpoint to distribute flows to backend firewall instances. By default, Gateway Load Balancer has a [fixed idle timeout](https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/gateway-load-balancers.html#idle-timeout) of 350 seconds for TCP flows. Once the idle timeout is reached or a TCP connection is closed for a flow, it is removed from the firewall's connection state table. This can result in the flow timing out on the client side. Subsequent non-SYN TCP packets for a removed flow may be dropped by Gateway Load Balancer. New TCP connection requests using the same 5-tuple (source/destination IP, source/destination port and protocol) might be routed to a different backend firewall instance than before. In this case, since the Gateway Load Balancer timeout is lower than the timeout value on your application, Gateway Load Balancer removes the flow without the application being aware it was dropped. @@ -185 +187 @@ To prevent this from happening, we recommend either configuring the **TCP keep-a - 4. **Amazon Virtual Private Cloud NAT gateway port allocation errors** – - Sometimes you'll see increased latency or packet drops on your traffic if your Amazon VPC NAT gateway is running out of ports to establish new connections which can result in packet drops and high latency. You can look at the NAT gateway `ErrorPortAllocation` errors to ensure NAT gateway is able to support new connections. If you notice NAT gateway `ErrorPortAllocation` errors, create a support case and the AWS Support team can help you resolve it. To troubleshoot your NAT gateway, you can look at `IdleTimeoutCount`, `PacketsDropCount` and other metrics as described in the [Monitor NAT gateways with CloudWatch](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway-cloudwatch.html) topic in the _Amazon VPC Developer Guide_. + 4. **Amazon Virtual Private Cloud NAT gateway port allocation errors** – Sometimes you might see increased latency or packet drops on your traffic if your Amazon VPC NAT gateway is running out of ports to establish new connections which can result in packet drops and high latency. You can look at the NAT gateway `ErrorPortAllocation` errors to ensure NAT gateway is able to support new connections. If you notice NAT gateway `ErrorPortAllocation` errors, create a support case and the AWS Support team can help you resolve it. To troubleshoot your NAT gateway, you can look at `IdleTimeoutCount`, `PacketsDropCount` and other metrics as described in the [Monitor NAT gateways with CloudWatch](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway-cloudwatch.html) topic in the _Amazon VPC Developer Guide_. @@ -198 +200 @@ AWS Network Firewall is a fully managed service that scales automatically to mee - 2. **Scale-up behavior** – When Network Firewall detects increased traffic, it provisions additional capacity automatically. Scaling typically completes within minutes, though very rapid or large traffic increases may take longer. + 2. **Scale-up behavior** – When Network Firewall detects increased traffic, it provisions additional capacity automatically. Scaling typically completes within minutes, though very rapid or large traffic increases might take longer. @@ -202 +204 @@ AWS Network Firewall is a fully managed service that scales automatically to mee - 4. **Fail-close behavior** – Sudden, large traffic spikes may briefly exceed available capacity, which can result in some packet drops. Network Firewall drops traffic rather than allowing it to pass uninspected (fail-close behavior). + 4. **Fail-close behavior** – Sudden, large traffic spikes might briefly exceed available capacity, which can result in some packet drops. Network Firewall drops traffic rather than allowing it to pass uninspected (fail-close behavior). @@ -209 +211 @@ AWS Network Firewall is a fully managed service that scales automatically to mee -If you are planning a traffic event that may cause a rapid increase in traffic, such as a product launch, marketing campaign, or workload migration, contact [AWS Support](https://aws.amazon.com/premiumsupport) ahead of time to discuss your scaling needs. +If you are planning a traffic event that might cause a rapid increase in traffic, such as a product launch, marketing campaign, or workload migration, contact [AWS Support](https://aws.amazon.com/premiumsupport) ahead of time to discuss your scaling needs.