Configure PBR with a custom application detector

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:

  1. In the Cloud-Delivered Firewall Management Center, choose Policies > + Show more > Advanced > Applications, and click Create Custom Detector.

  2. In the Create A Custom Application Detector field, enter a name (in this example, PBRePurchase) and a description.

  3. To create a custom application, click (add icon). 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:

    Application Editor
  4. Click Ok.

  5. From the Application drop-down list, choose PBRePurchase.

    Custom Detector
  6. 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.

  7. 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.

    Add Pattern

  8. Repeat the procedure and create two more patterns for the custom domains flipkart.com and hamleysonline.com.

  9. 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 (slider disabled) adjacent to the corresponding application detector.

Activate Detector

Step 4

In the dialog box that is displayed, click Yes.

When the application detector is activated, a success message appears:

The success message confirms that the application detector has been successfully activated.

Step 5

To create an ACL using the custom application detector for synchronizing with the PBR policy:

  1. In the Cloud-Delivered Firewall Management Center, choose Objects > Access List > Extended.

  2. Click Add Extended Access List.

  3. Enter a name (for example, PBR_shopping) to the list and click Add to create an ACE for the list.

  4. In the Add Extended Access List Entry dialog box, click the Application tab, select the application name PBRePurchase, and then click Add to Rule.

    ACE

  5. Click Add.

  6. Click Save.

    The custom application detector configuration interface displays options for defining application detection rules and settings.

Step 6

Choose Routing > Policy Based Routing. 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.

Ingress Interface

Step 7

To specify the forward action and a match criteria, click Add. In the Add Forwarding Actions dialog, do the following:

  1. 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.

    Match ACL

  2. Specify the egress interfaces:

    1. From the Send To drop-down list, choose Egress Interfaces.

    2. From the Interface Ordering drop-down list, choose the appropriate order.

    3. Under Available Interfaces, click (add icon) adjacent to the corresponding interface, namely, eBuy.

      Forwarding Action

    4. Click Save.

      PBR Policy

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.