08-Configuration Examples

HomeSupportConfigure & DeployH3C Firewall Products Comware 7 Web Configuration Guide-6W40208-Configuration Examples
Table of Contents
Related Documents
21-File Filtering Configuration Examples
Title Size Download
21-File Filtering Configuration Examples 131.47 KB

File filtering configuration examples

Introduction

 

The following information provides file filtering configuration examples.

The file filtering feature filters files based on file extensions. You can configure file filtering to perform actions on files based on the file extensions.

 

This document is not restricted to specific software or hardware versions. Procedures and information in the examples might be slightly different depending on the software or hardware version of the device.

The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

The following information is provided based on the assumption that you have basic knowledge of the file filtering feature.

Restrictions and guidelines

 

File filtering supports filtering packets of the following protocols:

·     HTTP.

·     FTP.

·     SMTP.

·     IMAP.

·     NFS.

·     POP3.

·     RTMP.

·     SMB.

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

Example: Configuring file filtering

Network configuration

As shown in Figure 1, a security gateway device is deployed at the border of the enterprise network. Configure file filtering on the device to control the file transfer behaviors of internal users as follows:

·     Block uploading of common files and compressed files to the Internet to reduce the risk of internal information leakage.

·     Block downloading of Windows executable files from Web servers to reduce the risk of virus entering the enterprise network.

Figure 1 Network diagram

 

Software versions used

This configuration example was created and verified on F9345 of the F1060 device.

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:

a.     Select the Trust security zone.

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

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

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

¡     Enter mask length 0.

¡     Enter next hop address 20.1.1.2.

# Click OK.

3.     Configure file type groups.

# Create file type group filetype1 as follows:

a.     On the top navigation bar, click Objects.

b.     From the navigation pane, select APPSecurity > File Filtering > File Type Groups.

c.     Click Create.

d.     In the dialog box that opens, configure the file type group:

-     Enter filetype1 in the Name field.

-     From the Predefined file extensions list, select Compressed_File and Docmument_File.

-     Click OK.

Figure 2 Creating file type group filetype1

 

# Create file type group filetype2 with the Windows_Executable_File predefined file extension selected.

Figure 3 Creating file type group filetype2

 

4.     Configure a file filtering profile.

# On the top navigation bar, click Objects.

# From the navigation pane, select APPSecurity > File Filtering > Profiles.

# Click Create.

# In the dialog box that opens, configure a file filtering profile:

a.     Enter the name filefilter.

b.     In the File filtering rules area, click Create.

c.     In the dialog box that opens, configure file filtering rule rule1 as shown in Figure 4, and then click OK.

Figure 4 Creating file filtering rule rule1

 

d.     Create file filtering rule rule2 (as shown in Figure 5) in the same way you configure file filtering rule rule1.

Figure 5 Creating file filtering rule rule2

 

The file filtering rules are displayed in the Create File Filtering Profile dialog box, as shown in Figure 6.

e.     Click OK.

Figure 6 Creating a file 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 filefilter.

¡     Select source zone Trust.

¡     Select destination zone Untrust.

¡     Select type IPv4.

¡     Select action Permit.

¡     Select source IP address 10.1.1.0/24.

¡     Select file filtering profile filefilter in the Content security area.

# Cilck OK.

6.     On the File Filtering Profiles page, click Submit to make the file filtering profile take effect.

Verifying the configuration

Verify that internal users cannot upload document files or compressed files to the Internet, or download Windows executable files from Web servers.

To view the file filtering logs, click Monitor on the top navigation bar, and then select Security Logs > File Filtering Logs from the navigation pane.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网