April 19, 2010

How to block Google talk using Squid ?

Google talk is using these address and ports metioned below to connect and authenticate chat sessions.
Google talk ports: 5222,5223,5060,8000
Site Address: google.com and chatenabled.mail.google.com

Our aim is to block Google talk session, at the same time he should be able to use gmail. How to do that ?

ACL (Access Control List) to block Google talk.
I have created an acl named "chat_block", and saved all urls (google talk URLs and ports) in this file "googletalk.txt" .

Copy and paste this rule below this line.
acl CONNECT method CONNECT


Chat block rule.
acl chat_block url_regex -i 'googletalk.txt'
http_access deny chat_block


Copy paste these line to googletalk.txt
.google.com:5222
.google.com:8000
.google.com:5060
.google.com:5223
.talk.google.com
.googletalk.
chatenabled.mail.google.com

Save and restart squid service

No comments: