Lab 12.2: Restrict access to http://www.foxnews.com/ using Squid
I am attempting the aforementioned lab in CentOS Linux 7. I have added the two lines to
/etc/squid/squid.conf above the lines I added in Lab 12.1 as instructed in the lab instructions as follows:
acl blockedsite url_regex ^https?://.*.foxnews.com/.*$ http_access deny blockedsite
(Note I tuned the regex to cover HTTPS, since I noticed Fox News automatically redirected to HTTPS and initially thought that that was the problem)
I then executed
# squid -k reconfigure
which produced no output and exited with code
0 and visited
http://www.foxnews.com/ again using Firefox on a MacBook Air running macOS on my local network, but the website loaded as normal (same if I reload the Squid daemon by
systemctl restart squid). Note that I did Lab 12.1 successfully and confirmed the Squid error page with an invalid URL so the correct proxy is definitely being used. Has anyone else encountered a similar issue?
Also note in Firefox on my macOS client that I ticked the box to use the proxy for FTP and HTTPS as well.