linuxproxysquid

How to show error page(deny_info) squid proxy


For example I have the following ACLs

acl mortales src "/etc/squid/listas/mortales"
acl bloquear url_regex "/etc/listas/bloqueo"

http_access allow mortales !bloqueo
error_directory /usr/share/squid/errors/en/
deny_info ERR_ACCESS_DENIED mortales

The problem is with the browser, cause squid does block the sites of the block list but it does not show me the custom squid error pages, it only shows me the generic error pages of the web browser. I found the next information on this web site "http://wiki.squid-cache.org/Features/CustomErrors". I read thats new versions of browsers for example firefox dont showing error pages custom, but display their own generic error pages.

I want to show the error pages of squid proxy


Solution

  • Your configuration will work for http connections but it will not work for https connections.

    I have researched this question myself, and have failed to find a solution that allows the configurations to work over https connections in squid.

    I have attached the following links which provide some answers as to why it is not possible or not advisable if using Ssl Bump.

    Browser behaviour handling

    Man in the middle - Ssl Bump