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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-10-2009, 03:58 AM
|
#1
|
Member
Registered: Dec 2007
Posts: 89
Rep:
|
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
|
|
|
12-10-2009, 04:46 AM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
12-10-2009, 06:05 AM
|
#3
|
Member
Registered: Dec 2007
Posts: 89
Original Poster
Rep:
|
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
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.
|
|
|
|
12-10-2009, 06:38 AM
|
#4
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
12-10-2009, 07:54 AM
|
#5
|
Member
Registered: Dec 2007
Posts: 89
Original Poster
Rep:
|
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
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.
|
|
|
12-11-2009, 02:33 AM
|
#6
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
12-12-2009, 03:45 AM
|
#7
|
Member
Registered: Dec 2007
Posts: 89
Original Poster
Rep:
|
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
|
|
|
12-14-2009, 12:02 AM
|
#8
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
12-14-2009, 12:09 AM
|
#9
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|