yahoo messenger uses 5000,5010 and 5050
To block AOL IM and ICQ:
# iptables -A FORWARD –dport 5190 -j DROP
# iptables -A FORWARD -d login.oscar.aol.com -j DROP
To block MSN messenger:
# iptables -A FORWARD -p TCP –dport 1863 -j DROP
# iptables -A FORWARD -d 64.4.13.0/24 -j DROP
To block Yahoo messenger:
# iptables -A FORWARD -p TCP –dport 5000:5010 -j REJECT
# iptables -A FORWARD -d cs.yahoo.com -j REJECT
# iptables -A FORWARD -b scsa.yahoo.com -j REJECT
Note that this will only block clients on the computer itself. If you are using the computer as a router with NAT, you will want to use “-t nat -A PREROUTING” instead.
3 comments:
To block Ocial Networks & IM's, see:
http://www.taringa.net/posts/ebooks-tutoriales/3716751/bloquear-messengers-IMs-y-Redes-Ociales.html
I want to block gtalk and https for gmail to disable chat . am using squid in transparent mode
Take a look here - it works great and you cand block anything you want, not just yahoo messenger: http://www.usermadetutorials.com/2010/06/deny-yahoo-messenger-traffic-using-linux-iptables-firewall/
Post a Comment