Skip to main content
Rosalyn
Staff
Staff
April 12, 2020

Technical Tip: Enable proxy after TCP handshake

  • April 12, 2020
  • 0 replies
  • 4478 views

Description

 

This article describes the case when using a proxy-based policy, the TCP 3-way handshake can be established between the client and the FortiGate, even without the completion of a 3-way handshake between the FortiGate and the server.

With the command 'set proxy-after-tcp-handshake enable', the TCP 3-way handshake will use IPS to handle it initially.
Only upon the establishment of the handshake with the server, does it reconstruct the sockets and redirect the session back to the proxy.

This article describes how to enable a proxy after a TCP handshake.

 

This feature is supported on FortiOS v6.4 and later versions.


Solution

 

To enable the command in an SSL/SSH profile.

 

config firewall ssl-ssh-profile

        edit "test"
            config https
                set ports 443
                set status certificate-inspection
                set proxy-after-tcp-handshake enable  <--
    end

 

To enable command in protocol options.

 

config firewall profile-protocol-options

    edit "test"
        config http
            set ports 80
            set proxy-after-tcp-handshake enable 
 <--
            unset options
            unset post-lang
end

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!