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.
cravikumar
Staff
Staff
Article Id 293178
Description

This article describes an expected behavior where the http-redirect option (configurable for Virtual Server objects) is not available when configured in NGFW policy-based mode.

Scope FortiGate.
Solution

As a primer, the http-redirect option can be configured for HTTP Virtual Server objects (aka Virtual IPs of type server-load-balance) and allows the FortiGate to redirect client requests from HTTP to encrypted HTTPS (see also: HTTP to HTTPS redirect for load balancing).

 

However, while this option can be utilized for FortiGates/VDOMs operating in NGFW profile-based mode, it is not available when using NGFW policy-based mode:

 

FortiGate # config firewall vip
FortiGate (vip) # show
config firewall vip

    edit 'Test-443'

        set type server-load-balance
        set extip 10.1.1.1
        set extintf 'Internal'
        set server-type https
        set monitor 'Test-HTTPS'
        set ldb-method round-robin
        set extport 443
            config realservers

                edit 1

                    set ip 10.2.2.2
                    set port 443

                next
                edit 2

                    set ip 10.3.3.3
                    set port 443

                next

            end

    next

 

FortiGate (vip) # edit Test-443
FortiGate (Test-443) # set http-redirect enable
command parse error before 'http-redirect'
Command fail. Return code -61

 

The reason this occurs is because the http-redirect option is a proxy-based feature (i.e., traffic is redirected the the WAD-based proxy). Since NGFW is a purely flow-based mode of operation (e.g., using the IPS Engine), it is not possible to utilize the http-redirect function, and so it is unavailable to be configured.

 

Several other proxy-based config options are also unavailable when using Virtual Servers in NGFW policy-mode, including http-ip-headerh3-supporth2-supportpersistence, and http-multiplex. Consider using NGFW profile-based mode instead if proxy-based Virtual Server functions are required.