Proxy filter blocking message


(warren_midgley) #1

Hi,
I have configured nethserver as a http/https proxy (amazingly easy using nothing but the GUI).

My question is, how do you customize the blocking message the user receives and where is it located?

Thanks
Warren


(Giacomo Sanchietti) #2

The block page its one CGI used both from SquidGuard and SquidClamav.

You can change it on SquidGuard using this commands (see http://docs.nethserver.org/projects/nethserver-devel/en/latest/content_filter.html):

config setprop squidguard RedirectUrl <url>
signal-event nethserver-squidguard-save

But for SquidClamav you need to create a template-custom of this fragment /etc/e-smith/templates/etc/squidclamav.conf/20redirect.

Finllay, the CGI code can be found here: /var/www/cgi-bin/nethserver-block.cgi


(Renan Azedo ) #3

Hi.

How can i restore the default page?

Thanks for all.


(Giacomo Sanchietti) #4

Just revert the modification you did:

  config setprop squidguard RedirectUrl ''
  signal-event nethserver-squidguard-save 

And remove the custom-template, then:

 signal-event nethserver-squidclamav-update

(Renan Azedo ) #5

Hi.

Can i just change the screen appearance without losing the information as the category.

Thanks