This task configures PBR policy with custom application detectors to enable routing decisions based on specific application traffic patterns using custom detectors for defined domains.
This example demonstrates configuring a Policy Based Routing (PBR) policy with custom application detectors for specific domains such as:
-
amazon123.com
-
flipkart.com
-
hamleysonline.com
Before you begin
-
This example assumes that you are aware of the basic steps to configure PBR policy and custom application detectors.
-
You should have configured the ingress and egress interfaces with logical names. In this example, the ingress interface is named Inside1, and the egress interface is named eBuy.
Follow these steps to configure PBR with custom application detector:
Procedure
Step 1 | Create a custom detector, PBRePurchase:
-
In the Cloud-Delivered Firewall
Management Center, choose , and click Create Custom Detector.
-
In the Create A Custom Application Detector field, enter a name (in this example, PBRePurchase) and a description.
-
To create a custom application, click ( ). In the Application Editor dialog box, enter the relevant values in the fields. See Create a user-defined application for a detailed description of each field.
Note | For the custom application to be detectable for PBR, choose NSG from the Tag drop-down list:  |
-
Click Ok.
-
From the Application drop-down list, choose PBRePurchase.
-
Click the Basic radio button, and then click Ok. In the Application Detector page, click the Add button in the Detection Patterns area to add patterns.
Note |
The Advanced detector type is not supported in the PBR policy.
|
-
From the Application drop-down list, choose SSL as the protocol, and select the appropriate pattern type. Enter a pattern string that matches the selected type (in this example, enter amazon123.com), and then click Ok.
-
Repeat the procedure and create two more patterns for the custom domains flipkart.com and hamleysonline.com.
-
Click Save.
|
Step 2 | In the application detector dashboard, use filters to search for the custom application detector that you have just created. |
Step 3 | To enable the custom detector, click the State toggle button ( ) adjacent to the corresponding application detector. |
Step 4 | In the dialog box that is displayed, click Yes.
When the application detector is activated, a success message appears:
|
Step 5 | To create an ACL using the custom application detector for synchronizing with the PBR policy:
-
In the Cloud-Delivered Firewall
Management Center, choose .
-
Click Add Extended Access List.
-
Enter a name (for example, PBR_shopping) to the list and click Add to create an ACE for the list.
-
In the Add Extended Access List Entry dialog box, click the Application tab, select the application name PBRePurchase, and then click Add to Rule.
-
Click Add.
-
Click Save.
|
Step 6 | Choose . On the Policy Based Routing page that is displayed, click Add, and then in the Add Policy Based Route dialog box, choose Inside 1 from the Ingress Interface drop-down list. |
Step 7 | To specify the forward action and a match criteria, click Add. In the Add Forwarding Actions dialog, do the following:
-
From the Match ACL drop-down list, choose the ACL that you have created, which, in this example is PBR_shopping.
Note |
In a Firewall Threat Defense, the application group in an ACL is configured as a network service group. That is why we tag the custom application with NSG.
|
-
Specify the egress interfaces:
-
From the Send To drop-down list, choose Egress Interfaces.
-
From the Interface Ordering drop-down list, choose the appropriate order.
-
Under Available Interfaces, click ( ) adjacent to the corresponding interface, namely, eBuy.

-
Click Save.

|
Step 8 | Save and Deploy. |
The PBR policy is configured and deployed with the custom application detector. Traffic matching the specified domains will be routed through the defined egress interface.