LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 03:46 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 05: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, 05:38 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 06: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 12:15 AM.
 
Old 12-11-2009, 01:33 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 02: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-13-2009, 11:02 PM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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-13-2009, 11:09 PM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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



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 03:11 AM
how to block yahoo chat & gmail chat with squid sunlinux Linux - Networking 1 08-10-2007 09:33 AM
Blocking messenger/chat etc with IPTABLES antonysemion Linux - Networking 1 05-28-2006 02:03 PM
LXer: Google: Gmail Chat Users Should Disable Firefox AdBlock LXer Syndicated Linux News 0 02-08-2006 11:16 AM
Blocking Chat programs smurf Linux - Networking 2 08-04-2001 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 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
Open Source Consulting | Domain Registration