Web example: Configuring data filtering

Network configuration

As shown in Figure 1, a security gateway device is deployed at the border of the enterprise network. Configure data filtering on the device to block and log the following Internet access behaviors of internal users:

Software versions used

This configuration example was created and verified on R9900P25 of the M9000-X06 device.

Restrictions and guidelines

Data filtering supports filtering packets of the following protocols:

For data filtering to inspect HTTPS protocol packets, you must also configure the application proxy feature. To configure the application proxy feature, access the Policies > Application Proxy page.

Procedure

  1. Assign IP addresses to interfaces and add the interfaces to security zones:

    # On the top navigation bar, click Network.

    # From the navigation pane, select Interface Configuration > Interfaces.

    # Click the Edit icon for GE 1/0/1.

    # In the dialog box that opens, configure the interface:

    1. Select the Trust security zone.

    2. Click the IPv4 Address tab, and then enter the IP address and mask length of the interface. In this example, enter 10.1.1.1/24.

    3. Click OK.

    # Add GE 1/0/2 to the Untrust security zone and set its IP address to 20.1.1.1./24 in the same way you configure GE 1/0/1.

  2. Configure a route:

    This example configures a static route. If dynamic routes are required, configure a dynamic routing protocol.

    Configure the next hop IP address to reach the external Web server according to the actual network conditions. In this example, the next hop IP address is 20.1.1.2.

    To configure a static route:

    # On the top navigation bar, click Network.

    # From the navigation pane, select Routing > Static Routing.

    # On the IPv4 Static Routing tab, click Create.

    # In the dialog box that opens, create an IPv4 static route:

    • Enter destination address 5.5.5.0.

    • Enter mask length 24.

    • Enter next hop address 20.1.1.2.

      # Click Apply.

  3. Configure keyword groups.

    # Create keyword group keywordgroup1.

    1. On the top navigation bar, click Objects.

    2. From the navigation pane, select APP Security > Data Filtering > Keyword Groups.

    3. Click Create.

    4. In the dialog box that opens, configure the keyword group:

      • Enter keywordgroup1 in the Name field.

      • In the User defined keyword list area, click Create.

      • In the Create Keyword dialog box, enter keyword1 in the Name field, select the Text type, and enter for internal use only in the Match pattern field.

      • Click OK.

      Figure-2 Creating a keyword

      The newly created keyword keyword1 is displayed in the Create Keyword Group dialog box.

      Figure-3 Creating keyword group keywordgroup1

    5. Click OK.

    # Create keyword group keywordgroup2.

    1. On the Keyword Group page, click Create.

    2. In the dialog box that opens, configure the keyword group:

      • Enter keywordgroup2 in the Name field.

      • In the User defined keyword list area, click Create.

      • In the Create Keyword dialog box, enter keyword2 in the Name field, select the Text type, and enter illegal in the Match pattern field.

      • Click OK.

      Figure-4 Creating a keyword

      The newly created keyword keyword2 is displayed in the Create Keyword Group dialog box.

      Figure-5 Creating keyword group keywordgroup2

    3. Click OK.

  4. Configure a data filtering profile.

    # On the top navigation bar, click Objects.

    # From the navigation pane, select APP Security > Data Filtering > Profiles.

    # Click Create.

    # In the dialog box that opens, configure a data filtering profile.

    1. Enter the name datafilter.

    2. In the Data filtering rules area, click Create.

    3. In the dialog box that opens, create data filtering rule rule1 as shown in Figure-6, and then click OK.

      Figure-6 Creating data filtering rule rule1

    4. Create data filtering rule rule2 (as shown in Figure-7) in the same way you configure data filtering rule rule1.

      Figure-7 Creating data filtering rule rule2

      The data filtering rules are displayed in the Create Data Filtering Profile dialog box, as shown in Figure-8.

    5. Click OK.

      Figure-8 Creating a data filtering profile

  5. Create a security policy:

    # On the top navigation bar, click Policies.

    # From the navigation pane, select Security Policies > Security Policies.

    # Click Create.

    # In the dialog box that opens, configure a security policy:

    • Enter policy name datafilter.

    • Select type IPv4.

    • Select source zone Trust.

    • Select destination zone Untrust.

    • Select source IP address 10.1.1.0/24.

    • Select action Permit.

    • Select data filtering profile datafilter in the Content security area.

    • # Click OK.

  6. Enable logging:

    # On the top navigation bar, click System.

    # From the navigation pane, select Log Settings > Storage Space Settings.

    # Select DPI | Data Filter log.

Verifying the configuration

Verify that data filtering can log and block the following Internet access behaviors of internal users:

To view the logs generated for these behaviors, perform either of the following tasks: