FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
jangelis
Staff
Staff
Article Id 225289
Description

This article describes the recommended configuration on the FortiGate for an HTTPS Virtual Server with deep inspection.

 

Note: Some Low-end models do not support load balancing of secure protocols (HTTP, HTTPS, IMAPS, POP3S, SMTPS, and SSL). Check the documentation for the version & model in use: v6.2, v6.4, v7.0, v7.2, v7.4 , v7.6.

Scope FortiGate.
Solution
  1. Import the server certificate. Go to System -> Certificates and select Create/Import -> Certificate.

 

Import certificateImport certificate

 

  1. Configure the Virtual Server. Go to Policy & Objects -> Virtual Servers and select 'Create New'.

     

 

Virtual Server configurationVirtual Server configuration

 

Note: In SSL-offloading, choose the imported certificate. Also, the default value for SSL Offloading is Client <-> FortiGate. Ensure that 'Full' is selected for access to virtual servers to work for HTTPS. If the internal server listens on HTTP (i.e. server type is HTTP), keep the default value Client <-> FortiGate. 

 

To better understand how these two methods work, see Technical Tip: Difference Between SSL Half and Full Offloading.

 

Use the following command:

 

FGT # config firewall vip

FGT # edit "Virtual-Server1"

FGT (Virtual-Server1)# set ssl-mode ?
     half Client to FortiGate SSL.                          [Client <--> FortiGate]
     full Client to FortiGate and FortiGate to Server SSL.  [Full]

 

  1. Configure the SSH/SSL profile.

 

Go to Security Profiles -> SSL/SSH Inspection and select 'Create New'.

 

Note: 'Inspect All Ports' should not be set as the port for this setup is already known and it may lead to a performance degradation.

 

SSL/SSH profile configurationSSL/SSH profile configuration

 

  1. Configure policy.

 

Go to Policy & Objects -> Firewall Policy and select 'Create New'.

 

Policy configurationPolicy configuration

 

Note: Inspection mode must be set to proxy, otherwise the Virtual server will be filtered out in the 'Destination' field.

 

Related article:

Technical Tip: Configure virtual server