Technical Tip: Use custom IPS signature to block HTTPS traffic on large traffic volume
Description | This article describes how to use a custom IPS signature to block HTTPS from a high traffic volume. |
Scope | FortiGate v7.0 and earlier. |
Solution | Some ISPs need to block HTTPS traffic from high volumes of end-user traffic. Â ![]() Â The ISPs need a solution where the traffic inspection is minimal but able effectively block specific internet domains, especially those domains which are hosted on Content Delivery Networks (CDN) (e.g. Akamai). Â The UTM webfilter is an option, but it can perform extra validations (certificate CN, SAN, etc) at application layer which is not the objective to high traffic volume. Â Using an IPS custom signature to search for a pattern in the TLS SNI (Server Name Indication) is an option, reducing the processing to only a pattern match in the clear text traveling in the packets. Â Firewall address type FQDN is advisable to reduce the amount of traffic sent to the IPS, in order that the firewall policy only matches that IP destination address obtained from the DNS resolution of the end-user. Â Requirements:
 See Using wildcard FQDN addresses in firewall policies to create the wildcard FQDN addresses to have FortiGate populate it with the IP address contained in the DNS answer.  These FQDN addresses will be declared as 'dstaddr' in the firewall policy.  Â
 With a packet capture of the HTTPS traffic, confirm the TLS Handshake contains the TLS SNI extension with the name of the site in clear text.  ![]()  Create the custom IPS Signatures to match the FQDN to sites hosted on the same CDN network.   Create the IPS sensor, which will allow the site1 and deny the site2 with TCP.RST action.   Create a new firewall policy on top of firewall policy matching all HTTPS traffic.  ![]()  The new policy 'dstaddr' must be the FQDN address objects. Set the IPS sensor with the custom IPS signatures.   Only the traffic to www.site1.com and www.site2.com will match the firewall policy ID 26, because the FQDN address object contained the IP address obtained on the DNS resolution from end clients.  The IPS will search from a pattern in clear text into the packet and will allow www.site1.com and TCP.RST to www.site2.com.  ![]() |




