Web example: Configuring SSL decryption

Network configuration

As shown in Figure 1, the device acts as the security gateway of an enterprise. The device cannot inspect SSL-encrypted packets (such as HTTPS packets), masking the security threats inside of the packets. To improve the internal network security, configure SSL decryption on the device to decrypt HTTPS packets for IPS inspection.

Figure 1 Network diagram

 

Software versions used

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

Restrictions and guidelines

When configuring SSL decryption, make sure the security policies allow the source and destination security zones to intercommunicate with the Local security zone.

After SSL decryption is configured, the IPS capture action becomes invalid.

SSL decryption supports decrypting HTTPS, SMTPS, IMAPS, and POP3S protocol packets.

Procedure

  1. Assign IP addresses to interfaces:

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

  1. On the IPv4 Address tab, enter the IP address and mask of the interface. In this example, enter 10.1.1.2/24.

  1. Use the default settings for other parameters.

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

  1. Configure settings for routing:

This example configures a static route to reach the Web server, and the next hop in the route is 20.1.1.2.

# 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, configure a static IPv4 route to reach the Web server:

  1. Enter destination IP address 5.5.5.0.

  1. Enter mask length 24.

  1. Enter next hop address 20.1.1.2.

  1. Use the default settings for other parameters.

  1. Click OK.

  1. Import the trusted SSL decryption certificate:

# On the top navigation bar, click Policies.

# From the navigation pane, select Application Proxy > SSL Decryption Certificates.

# Click Import.

# In the dialog box that opens, configure the following settings, as shown in Figure 2:

  1. Select file trust.pem.

  1. Enter the password of the file.

  1. Set the certificate type to Trusted.

# Click OK.

Figure 2 Importing the trusted SSL decryption certificate

 

# Import the untrusted SSL decryption certificate in the same way you import the trusted SSL decryption certificate, as shown in Figure 3.

Figure 3 Importing the untrusted SSL decryption certificate

 

  1. Install and trust the trusted SSL decryption certificate on the browser from the internal network. (Details not shown.)

  1. Configure a proxy policy:

# On the top navigation bar, click Policies.

# From the navigation pane, select Application Proxy > Proxy Policy.

# Click Create.

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

# Click OK. The device performs decryption on HTTPS packets that match the proxy policy.

Figure 4 Creating a proxy policy

 

  1. Configure IPS. For more information, see "IPS configuration examples."

  1. Configure security policies:

# On the top navigation bar, click Policies.

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

# Click Create, and then click Create a policy.

# Configure security policy trust-untrust for IPS inspection on the traffic from the internal network to the external network:

# Configure security policy untrust-trust for IPS inspection on the traffic from the external network to the internal network:

# Create security policy trust-local to ensure that the device can act as a proxy server to proxy the traffic from the client to the server:

# Create security policy untrust-local to ensure that the device can act as a proxy client to proxy the traffic from the server to the client:

  1. Activate the configuration.

After you complete the security policy configuration, click Activate to activate security policy acceleration.

Verifying the configuration

Verify that the device can perform SSL decryption on HTTPS packets, and then perform IPS inspection on the encrypted packets.