Manual Chapter :
Setting Timers and Preventing Port Misuse with Service Policies
Applies To:
Show VersionsBIG-IP AFM
- 13.0.1, 13.0.0
Creating and Applying Service Policies
Introduction to service policies
A service policy collects flow timer and flow timeout features in a policy that can be applied to different contexts, and allows you to configure policies to drop traffic on a specified port when the service does not match.
A service policy can be applied on a route domain, virtual server, self IP, or in a firewall rule.
About service policy types
There are two types of service policies that you can create:
- A timer policy allows you to configure a custom idle timeout that differs from the system idle timeout. The timer policy can be applied to the global, virtual server, self IP and route domain contexts, and can also be referenced by firewall rules or rule lists.
- A port misuse policy allows you to configure a route domain, firewall rule, or firewall rule list to detect and drop connections that are not using a required application or service for a given port. With a port misuse policy, you can configure ports to allow services, and drop all traffic that does not match the specified service type. You can configure port and service associations without regard for customary port and service pairings.
Creating a timer policy
Create a timer policy to set custom timeouts for self IPs, route domains,
firewall rules, or firewall rule lists.
The timer policy is now configured to apply to traffic with this protocol type.
Select the timer policy in a service policy, and apply the service policy to a self IP, route domain, firewall rule, or firewall rule list.
Creating a port misuse policy
Create a port misuse policy to restrict traffic on a port to a specific
application. You configure a policy with specific port, protocol, and service rules to
specify when port misuse occurs, and what action the policy takes.
The port misuse policy is now configured to drop packets for specified ports, when
the service does not match.
Select the port misuse policy in a service policy, and apply the service policy to
a self IP, route domain, firewall rule, or firewall rule list.
Creating a service policy
Create a service policy to apply custom timer policies and port misuse settings to
self IPs, route domains, firewall rules, or firewall rule lists.
The selected self IP now enforces or stages rules according to your selections.
Applying a service policy to a firewall rule
Apply a service policy to a firewall rule to apply custom timers and port misuse
settings to traffic matched by the firewall rule.
- Click .
-
Select the service policy.
Option Description With the Inline Rules Editor If you are using the inline rules editor, click in a rule to edit it, and select a service policy in the Action column. With the standard rules editor If you are using the standard rule editor, click a rule name and select a service policy from the Service Policy list. - Update the rule, or commit your changes.
- Compile and deploy the changes, if you compile and deploy manually.
When the rule is compiled and deployed, the timeouts and port misuse settings
defined in the service policy are applied to the rule.
Applying a service policy to a virtual server
Apply a service policy to a virtual server to use custom timers and port misuse settings
on the virtual server.
The service policy is now associated with the virtual server, and the timers and port
misuse settings are applied to sessions on the virtual server.
Applying a service policy to a route domain
Apply a service policy to a route domain to apply custom timers and port misuse
settings to traffic that uses the route domain.
Traffic on the route domain that matches the rules defined in the service policy now
uses the timeouts and port misuse settings defined in the timer and port misuse
policies.
Applying a service policy to a self IP
Apply a service policy to a self IP to apply custom timers and port misuse settings
to traffic that uses the self IP address.
Traffic on the self IP that matches the rules defined in the service policy now uses
the timeouts and port misuse settings defined in the timer and port misuse
policies.