FortiOS unencrypted/encrypted HTTP/2 support in proxy
Description
A feature to support HTTP/2 in FortiOS proxy mode.
Related document: HTTP/2 support in proxy mode SSL inspection.
Scope
FortiOS.
Solution
Starting from FortiOS 7.0, HTTP/2 is supported in proxy mode with condition the traffic is secured by TLS 1.2 or 1.3.
This is being achieved by using the Application-Layer Protocol Negotiation (ALPN) extension.
The configuration can be done in command line interface:
To set the ALPN support:Â
config firewall ssl-ssh-profile
edit <profile>
set supported-alpn {all | http1-1 | http2 | none}
next
endall: The FortiGate forwards all ALPN extensions, except SPDY. This is the default value.
http1-1: The FortiGate only forwards ALPN extensions that use HTTP/1.1. If the ALPN extension uses HTTP/2 or SPDY, then the FortiGate strips the ALPN header from the Client Hello.
http2: The FortiGate only forwards ALPN extensions that use HTTP/2. If the ALPN extension uses HTTP/1.1 or SPDY, then the FortiGate strips the ALPN header from the Client Hello.
none: The FortiGate always strips the ALPN header from the Client Hello when forwarding.
However, note that HTTP/2 with plain text is not supported yet in FortiOS proxy mode. As a result, it might not work correctly if HTTP/2 unencrypted traffic is sent to be processed by FortiOS in proxy mode.
