Solved

How to Block GTalk Messenger?

Posted on 2008-11-01
4
1,325 Views
Last Modified: 2013-12-06
We have a Squid Server Version 2.6 running on a Fedora Core 7 Box. I need to block the Gtalk Messenger on the network.

Please Help...... Thanks
0
Comment
Question by:efg-uae
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 22860403
It will be hard to block the web gtalk unless you also block gmail from the banned sites. For gtalk client just block the port gtalk runs under (5223).
Add the following in Squid...
http_access deny blocked ports
acl blocked_ports port 5223 5222

0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 22860410
you can block talk.google.com using iptables.

iptables -A PREROUTING -t nat -d talk.google.com -j DROP
iptables -A PREROUTING -t nat -p tcp --dport 5222 -j DROP

more than this level would require squid to allow https to gmail.google.com, but block it for all other .google.com sites.

and the best tool to block is layer7 filtering protocol:
http://l7-filter.sourceforge.net/
Gud luck
0
 
LVL 7

Author Comment

by:efg-uae
ID: 22860424
I dont want to use the ipTables. as i need to manage its access for some users. not for all.
I need solution in Squid only.
0
 
LVL 7

Accepted Solution

by:
efg-uae earned 0 total points
ID: 22860616
I am done.
I used Wireshark to track the all IPs. and then blocked all IP's by IPTables.
Following is the list of IPs. and I have Make a Exclusion for some of my MAC Addresses. so that some users who are allowed for Gtalk can use it.
 

iptables -A PREROUTING -t nat -m mac --mac-source xx:xx:xx:xx:xx:xx -j ACCEPT

iptables -A PREROUTING -t nat -d talk.google.com -j DROP
iptables -A PREROUTING -t nat -p tcp --dport 5222 -j DROP
iptables -A PREROUTING -t nat -d 209.85.163.125 -j DROP
iptables -A PREROUTING -t nat -d 72.14.205.189 -j DROP
iptables -A PREROUTING -t nat -d 216.239.51.125 -j DROP
iptables -A PREROUTING -t nat -d 209.85.201.125 -j DROP
iptables -A PREROUTING -t nat -d 74.125.77.103 -j DROP
iptables -A PREROUTING -t nat -d 72.14.235.125 -j DROP
iptables -A PREROUTING -t nat -d 72.14.253.125 -j DROP
 For me it works very fine. and Gtalk was unable to connect.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question