Author Topic: Anonymous proxy in Zentyal  (Read 3286 times)

YOBA

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +4/-0
  • ALLU YOBA ETO TI?
    • View Profile
    • XXX MYTISCHI HARDCORE OCHOBA XXX
Anonymous proxy in Zentyal
« on: April 05, 2012, 12:20:45 pm »
Been searching all over the Internets for "how to make Zentyal proxy anonymous", found lots of outdated info, including explanation of config profiles/hooks based on outdated "ebox" file structure.

Here's what I've done to make squid anonymous in Zentyal.

0) Check whether your proxy is anonymous or not here: http://tools-on.net/privacy.shtml
1) Create a file with additional squid settings:
Code: [Select]
#nano /etc/squid/squid_anonymous.conf

squid_anonymous.conf file contents:
Code: [Select]
via off
header_access Cache-Control deny all
header_access Proxy-Connection deny all
header_access X-Cache deny all
header_access X-Cache-Lookup deny all
header_access Via deny all
header_access Forwarded-For deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
header_access Keep-Alive deny all

2) Create HTTP proxy hook to apply additional config every time Zentyal (it's HTTP Proxy) is started:
Code: [Select]
#nano /etc/zentyal/hooks/squid.postservice

Contents of squid.postservice file is as follows:
Code: [Select]
echo "include /etc/squid/squid_anonymous.conf" >> /etc/squid/squid.conf
service squid restart

3) squid.postservice is actually a script, so, we need to make it executable:
Code: [Select]
#chmod +x /etc/zentyal/hooks/squid.postservice

4) That's all.
Restart Zentyal, check proxy anonymity, ..., PROFIT!

It would be nice if Zentyal developers included tick/dropdown boxes for advanced configuration changes.