Updated Date: 07/07/2026
Applying AFM Network Firewall Policies
You can assign a firewall policy globally, this affects all traffic processed by the AFM system.
-
On the Main tab, click Security > Network Firewall > Active Rules.
The Active Rules screen opens.
-
Under Filter Active Rules List, click the Global link.
The Global Firewall Rules screen opens.
-
To enforce rules from a firewall policy in the selected context, in the Network Firewall area: from the Enforcement list, select Enabled and then select the firewall policy to enforce from the Policy list.
-
To stage rules from a firewall policy in the selected context, in the Network Firewall area: from the Staging list, select Enabled and then select the firewall policy to stage from the Policy list.
The policy rules you selected are enforced at the global level. If you chose to stage policy rules, the results of those rules are logged, but not enforced.
Ensure that you have created a virtual server.
You can assign a firewall policy to a specific virtual server, also known as a protected object, enforcing the policy only on traffic processed by that protected object.
-
On the Main tab, click Local Traffic > Virtual Servers
-
Click the name of the virtual server to assign the firewall policy.
-
On the menu bar at the top of the page, click Security > Policies
-
To enforce rules from a firewall policy on the virtual server, in the Network Firewall area, from the Enforcement list, select Enabled, then select the firewall policy to enforce from the Policy list.
-
To stage rules from a firewall policy on the virtual server, in the Network Firewall area, from the Staging list, select Enabled, then select the firewall policy to stage from the Policy list.
-
Click Update to save the changes.
The policy rules you selected are enforced on the virtual server. If you chose to stage policy rules, the results of those rules are logged, but not enforced.
Ensure that you have created a self IP address.
You can assign a firewall policy to a self IP, enforcing the policy on traffic passing through that self IP. traffic.
-
On the Main tab, click Network > Self IPs.
-
Click on the self IP address to which you want to add a network firewall policy.
-
Click the Security tab.
-
To enforce rules from a firewall policy on the self IP: In the Network Firewall area, from the Enforcement list, select Enabled, and then from the Policy list, select the firewall policy to enforce.
-
To stage rules from a firewall policy on the self IP: In the Network Firewall area, from the Staging list, select Enabled, and then from the Policy list, select the firewall policy to stage.
-
Click Update to save the changes to the self IP.
The policy rules you selected are enforced at the self IP level. If you chose to stage policy rules, the results of those rules are logged, but not enforced.
Ensure that you have created a route domain.
You can assign a firewall policy to a route domain, enforcing the policy only on traffic in that route domain.
-
On the Main tab, click Network > Route Domains.
The Route Domain List screen opens.
-
Click the name of the route domain to show the route domain configuration.
-
Click the Security tab.
-
To enforce rules from a firewall policy on the route domain: in the Network Firewall area: from the Enforcement list, select Enabled and then select the firewall policy to enforce from the Policy list.
-
To stage rules from a firewall policy on the route domain: in the Network Firewall area, from the Staging list, select Enabled and then select the firewall policy to stage from the Policy list.
-
Click Update to save the changes to the route domain.
The policy rules you selected are enforced at the route domain level. If you chose to stage policy rules, the results of those rules are logged, but not enforced.
Create a network firewall management port rule to manage access from an IP or web network address to the BIG-IP management port. You cannot add rules created with this task to a rule list at a later time. You must create rules for a rule list from within the rule list.
Important: You can only add management port rules as inline rules. For all other contexts, you must add rules to policies.
-
On the Main tab, click Security > Network Firewall > Active Rules.
The Active Rules screen opens.
-
From the Context list, select Management Port.
-
In the Rules area, click Add to add a firewall rule to the list.
-
In the Name and Description fields, type the name and an optional description.
-
From the Order list, select the order in which the rule is processed
-
From the State list, select the rule state.
- Select Enabled to apply the firewall rule to the given context and addresses.
- Select Disabled to set the firewall rule to not apply at all.
- Select Scheduled to apply the firewall rule according to the selected schedule.
-
From the Protocol list, select the protocol to which the firewall rule applies.
- Select Any to apply the firewall rule to any protocol.
- Select the protocol name to apply the rule to a single protocol.
Important: ICMP is handled by the BIG-IP system at the global or route domain level. Because of this, ICMP messages receive a response before they reach the virtual server context. You cannot create rule for ICMP or ICMPv6 on a self IP or virtual server context. You can apply a rule list to a self IP or virtual server that includes a rule for ICMP or ICMPv6; however, such a rule will be ignored. To apply firewall actions to the ICMP protocol, create a rule with the
globalorroute domaincontext. ICMP rules are evaluated only for ICMP forwarding requests, and not for the IP addresses of the BIG-IP system itself.
-
From the Source Address/Region list, select Specify.
-
Click Address List and select the appropriate address list object
-
Click Add.
-
From the Source Port list, select Specify.
-
Click Port List and select the appropriate port list object.
-
Click Add.
-
From the Destination Address/Region list, select specify.
-
Click Address List and select the appropriate address list object.
-
Click Add.
-
From the Destination Port list, select Specify.
-
Click Port List and select the appropriate port list object.
-
Click Add.
-
From the Action list, select the firewall action to perform on matching traffic.
-
From the Logging list, enable or disable logging for the firewall rule.
A logging profile must be enabled to capture logging info for the firewall rule.
-
Click Finished
The new firewall policy is being enforced on the BIG-IP AFM system management port.