Rinnaldy wrote:

> Dea All,
> 
> How to block Yahoo messenger with squid ?? I already use iptables to
> block YM port but it is not working . with this line  :
> -A INPUT -s 192.168.0.0/255.255.255.255 -d 0.0.0.0/0.0.0.0 -p tcp -m
> tcp --dport 5050 -j DROP
 
 That net mask should be 255.255.255.0 not 255.255.255.255
 Yahoo Messenger uses differnet ports to connect - 5050,25,37
 
 Also the ipblock that it currently (here in Aust anyways) connects to
is  66.163.169.0/255.255.255.0
you could use that in your iptables rules.
 
> in squid.conf I add this line :
> acl YM_port    port 5050
> http_access deny YM_port
 squid by default should be blocking 25 and 37
 
 also in squid block http requests to
 *.msg.yahoo.com
 to stop them from using http proxies :)
> 
> but users still can access YM ,pls advice what should I do with my
> squid and iptables ..
 
 Ive used it with success :)
 
 HTH
cya
Andrew

Reply via email to