few days ago I came across the following problem setting up a Squid proxy (not transparent) in which would only allow access to emails from Gmail, not the other applications such as chat, I did it the following way and it worked if someone has a way better than what I posted;)
First of all add the following lines in squid.conf acl
cl_congmail src "/ etc/squid3/acl/cl_congmail.txt" acl gmail
url_regex "/ etc/squid3 / acl / gmail.txt "acl urlmalos
url_regex" / etc/squid3/acl/urlmalos.txt "
http_access allow http_access deny urlmalos
gmail cl_congmail
- file cl_congmail.txt ips are all we want have gmail for example:
192.168.1.1 192.168.1.2
- In the file put the following
gmail.txt
.
gmail.com. mail.google.com
. google.com: 443
- In the file if you want to block Gtalk urlmalos put the following url
^ http://chatenabled.mail.google.com
0 comments:
Post a Comment