LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2009, 03:58 AM   #1
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
Blocking Gmail Chat using Squid


Hi All,
I am using Centos 5.2 and squid 2.6 on My Proxy Machine.In my office every one uses gmail for testing and other purposes.Now the problem is i want to block chat Facility in Gmail with out blocking Gmail.Is there any way to do this?
Advance Thanks,
Ajayan
 
Old 12-10-2009, 04:46 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
block access to chatenabled.google.com or chatenabled.gmail.com. This should do it. But be aware that it will not block if clients are using secure channel i.e. https explicitly for browsing if your squid is transparent.
 
Old 12-10-2009, 06:05 AM   #3
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Original Poster
Rep: Reputation: 16
Hi ,
First of all Thanks for Your Reply.I am using squid as transparent one .Shall i Use iptables to drop packets to destination chatenabled.gmail.com on port 443.

Regards,
Ajayan

Quote:
Originally Posted by linuxlover.chaitanya View Post
block access to chatenabled.google.com or chatenabled.gmail.com. This should do it. But be aware that it will not block if clients are using secure channel i.e. https explicitly for browsing if your squid is transparent.
 
Old 12-10-2009, 06:38 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yeah you can do that but it can block gmail completely. Using iptables is not a very good solution and it can be very tiring to block ports for certain machines and allowing for some if you have got large number of clients.
I am using transparent squid and have been in this situation. Right now I have blocked all the https connections. And looking for using wpad and group policy for browser configuration and removing squid from transparent mode.
 
Old 12-10-2009, 07:54 AM   #5
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Original Poster
Rep: Reputation: 16
Hi chaitanya,
Once again thanks for your reply,Now i blocked Gmail browser chat using iptables with out blocking Gmail.I just droped all request to
chatenabled.google.com on port 80 and 443.Now its working Fine.

iptables -A OUTPUT -p tcp -d chatenabled.mail.google.com -m multiport --dports 80,443 -j DROP

Thanks for you comments
Regards & Thanks
Ajayan
Quote:
Originally Posted by linuxlover.chaitanya View Post
Yeah you can do that but it can block gmail completely. Using iptables is not a very good solution and it can be very tiring to block ports for certain machines and allowing for some if you have got large number of clients.
I am using transparent squid and have been in this situation. Right now I have blocked all the https connections. And looking for using wpad and group policy for browser configuration and removing squid from transparent mode.

Last edited by ajayan; 12-12-2009 at 01:15 AM.
 
Old 12-11-2009, 02:33 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Great that it works for you. I would suggest you edit your post and remove your email id from here. It could be a great source of emails for spam bots. Not a very good sight in your inbox and spambox.
 
Old 12-12-2009, 03:45 AM   #7
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Original Poster
Rep: Reputation: 16
Hi chaitanya

Did you have any idea with yahoo domains,like chatenabled.mail.google.com .Now i want to block yahoo browser chat tooooo.

Thanks & Regards,
Ajayan
 
Old 12-14-2009, 12:02 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I have done that in past. I am out of office for couple of days for a holiday....Will check it out if I can and post it out here.
 
Old 12-14-2009, 12:09 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Okay. Have got some time in hand. You could try blocking access to webmessenger.yahoo.com to block the webmail messengers. These webmail messengers and im messengers from yahoo, google and skype to name a few are getting too out of hand for admins to restrict and control.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable chat in gmail using iptables Amal Dutta Mandriva 3 09-05-2008 04:11 AM
how to block yahoo chat & gmail chat with squid sunlinux Linux - Networking 1 08-10-2007 10:33 AM
Blocking messenger/chat etc with IPTABLES antonysemion Linux - Networking 1 05-28-2006 03:03 PM
LXer: Google: Gmail Chat Users Should Disable Firefox AdBlock LXer Syndicated Linux News 0 02-08-2006 12:16 PM
Blocking Chat programs smurf Linux - Networking 2 08-04-2001 08:11 AM


All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration