This document presumes that you have SQUID PROXY server installed, configured and running.
Google Talk or Gtalk can work in 2 ways on a system (thats i know, till now).
First, web-based i.e whenever we open GMAIL in browser.
Secondly, by Installing GTALK (or any third party application) on a system.
Both works in different ways.
Case 1:
In my first scenario, i want to block GTALK through browser while still be able to access GMAIL, from my browser.
This scenario can be accomplished using squid, just define a new ACL for squid.
- Open up your squid configuration file.
# vi /etc/squid/squid.conf - Make/define a new acl for gtalk ( squid recommends a particular area in conf file for defining custom acl’s, please adhere)
acl gtalk url_regex -i ^http:////mail.google.com/mail/channel/bind - Block this acl using
“http_access”.http_access deny gtalk - save and exit the conf file.
- Signal Squid to “reload” the configuration file.
# /etc/init.d/squid reload
Case 2:
Blocking Gtalk application (i.e when Gtalk is installed on a system)
In this case, your squid logs shows a entry like this:
“CONNECT talk.google.com:443″ [User-Agent: Google Talk\r\nHost: talk.google.com\r\nContent-Length: 0\r\nProxy-Connection: Keep-Alive\r\n] [-]
Lets assume all of your system’s traffic is passing through SQUID.
- Open up squid configuration file.
# vi /etc/squid/squid.conf - Make/define a new acl for gtalk ( squid recommends a particular area in conf file for defining custom acl’s, please adhere)
acl gtalk req_header User-Agent -i “google talk”
or
acl gtalk req_header Host talk.google.com - Block this ACL
http_access deny gtalk - save and quit the squid configuration file.
:wq (press enter) - Signal Squid to “reload” configuration file.
# /etc/init.d/squid reload - Verification
Try to login into gtalk. You will not be able to login now.
If you enjoyed this post, make sure you subscribe to my RSS feed!!!!Related Posts
No related posts.
Howdy, good day! Your article is very inspiring. I never thought that it was feasible to accomplish something like that until after I read your content. You certainly offered an excellent perception on how this whole process performs. I will make sure to return for more advice. Keep it up!
Thanks for this post, answers a bunch of questions I was having.
Very Good!!!
Thank U!
underfull job
Hello,
Its very easy to block gmail chat through the proxy server.
Just do the following steps:
# vim /etc/squid/squid.conf
acl gchat url_regex -i chatenabled.mail.google.com
http_access deny gchat
save and quit..
Reload the conf file…
Its working…
Its not working !!!!
Not working…any other help..
Any idea if I can block gmail but not my email on Google Apps ? Is it possible ? PLease guide as my company hosts email on Google Apps and I dont want people to waste time accessing personal gmail.