Blocking Gtalk

Posted on 2007-08-07
Last Modified: 2012-05-05
Dear Experts
I would like to know is there any way to block gtalk through squid proxy? bcos gtalk can be access through gmail, I dont like to block gmail but i would like to block gtalk part.
Question by:ranadastidar
    LVL 1

    Expert Comment

    There should be a way to do this. Although you'd have to find out the specific URL's that are involved. I'd suggest maybe using the http live headers plugin for firefox and see what requests are made when using the Chat component of Google's web chat and then disabling these URLs via an ACL.
    LVL 5

    Author Comment

    U r wrong cozminsky, if i block that url then no one can access gmail
    LVL 19

    Accepted Solution

    you can block

    iptables -A PREROUTING -t nat -d -j DROP
    iptables -A PREROUTING -t nat -p tcp --dport 5222 -j DROP

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

    and the best tool to block is layer7 filtering protocol:
    LVL 1

    Expert Comment

    Okay, I sat down and looked at it for 15 minutes. I found the URL. You'll need to put the following lines in squid. If you're using a different proxy then you'll need to change this.

    acl gtalk url_regex -i ^*$

    http_access deny gtalk

    Once those two lines are added to the relevant sections the gtalk section will come up as:

    We're experiencing technical difficulties that may prevent your chats from being sent, along with the login screen cycling continuously.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now