Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
jft3166
New Contributor

How to block https sites whitout ssl inspection

Hi everybody,

I have a fortigate 800C in 5.4 version.

I want to block HTTPS sites with the webfilter, but in my business we can't use ssl inpesction, it's fordibiden in relation to the law in France...

Do you know how I can block https sites whitout ssl inspection ?

I know the solution with a DNS server to redirect domains to a specific page or the solution to block the IP but it's too boring and not completely efficient.

Thanks for your answers.

best regard.

jft

13 REPLIES 13
EMES
Contributor

First create address objects with the FQDN of the websites you want to block. Then create a security policy going from inside to outside, service https, and the new address objects. I think that should block the https version of the website. Depending on how many website you are blocking this may get a bit much because of the DNS lookup the firewall has to do when it processes the policy and the IP may not be the same every time, https://forum.fortinet.com/FindPost/118125 .

 

You can also create two different policies one for service HTTP and one for HTTPS, and attach different web filtering profiles to them. Blocking the sites you want on the HTTPS side. It will take more work to maintain both profiles but it should get you what you need.

hmtay_FTNT
Staff
Staff

Hello jft,

 

You do not need to enable deep-inspection to block most HTTPS sites. In your policies, if you enable "certificate-inspection" under SSL Inspection, the FortiGate will scan the Client Hello SNI or the Server Certificate commonName. It will not do a man-in-the-middle interception.

 

For e.g. if you add a Static URL filter for "*.facebook.com". It will work for HTTP and HTTPS sessions. 

 

HoMing

jft3166

Hello EMES and hmtay_FTNT,

 

Thank you very much for your answer !! I will try your solutions.

 

The solution of Emes is good but may be heavy to create all the objets whith fqdn.

 

The solution of hmtay_FTNT seems better but it's appairs the page  "the connexion is not secured, add an exception... (page for problem of certificates) and after it appairs the message of Fortinet which says : "Web Page Blocked".

The result is good because the pages are blocked! Pity there is this problem of page unsecured...

 

Thanks !

 

Jft

shennar
New Contributor

I have the same Problem.

when i block https website i got error certificate not the block page from Fortigaurd

Bromont_FTNT

 

shennar, you are getting the block page from the Fortigate but it's HTTPS and thus presenting the Fortigate certificate. Your broswer expects HTTPS AND the certificate to match the site you're attempting to visit so it presents the certificate error. 

shennar

thank you Bromont_FTNT

 

Is there any way i can disable ssl inspection

because with upgrade to version 5.6 if you want to enable web filter you must enable ssl inspection.

a_acampa

shennar wrote:

I have the same Problem.

when i block https website i got error certificate not the block page from Fortigaurd

This is not a problem of Fortinet, it is a feature limitation.

it is due to the redirection oh https traffic.

It is not possible perform redirection to a page on https traffic whthout https deep inspection, and it is true for all vendors.

 

If you want block page you need deep inspection.

AlexL
New Contributor

You can block access to a secure site without using deep inspection. To do this, in the web filter, in the Static URL Filter section, add the required site for the block/allow in format - sitename:443

In this way, you can block access to a specific site for HTTP (sitename:80) and allow access to a specific site for HTTPS (sitename:443). I hope this information will be useful.

This works in version 5.6.0, but it will probably work in version 5.4.

snobs
New Contributor II

Hi,

 

I have a similar problem. I do not want "deep inspection", but I want "https://domains.com" to be blocked

Has something changed with FortiOS 6.0?

e.g.

http://pipeslocks.com/ is blocked, but

[link]https://pipeslocks.com/[/link] isnt´t.

 

On vdom root => Security Profiles => Web Filter => Static URL Filter I tried several entries, e.g.: *.pipeslocks.com pipeslocks.com:443

 

Labels
Top Kudoed Authors