This is an old revision of the document!
After gaining some experience with Cisco FTD, our company decided to a firewall product from a different vendor: Fortinet, called FortiGate. It will be used firstly to create simple configs (like the ones did on lab3): create the qemu image path, create the node and deploy the machine, configure the interfaces and policy rules between interfaces.
The FortiOS version of our FortiGate machine (FGT) is 6.4.2. You can find qcow2 image located in your curl -I www.facebook.com
HTTP/1.1 403 Forbidden
</code>
The client will send get req:
GET / HTTP/1.1
Host: www.facebook.com […]
which will match the one configured on web filter.
Let's try now to send a req to facebook.com:
eve@ubuntu:~/$ curl -I facebook.com HTTP/1.1 301 Moved Permanently [...]
See that now we are receiving a 301 code with the https link (http-https redirection) - which means web filtering is no longer done.
This is the main reason why you should configure url for web filter with subdomain.subdomain.domain.tld, without www.
2. See that for http traffic we are receiving a 'Replacement Message' with a html page from the firewall.
But, when the traffic is via https explicitly sent by client, this page cannot be seen anymore:
eve@ubuntu:~/$ curl -I https://facebook.com curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to facebook.com:443
The reason for this is that traffic is dropped on tls handshake, on Client Hello message (based on extension server_name):