[KLUG Members] Iptables

Komal agencies_ad1 at sancharnet.in
Sun Aug 21 13:22:58 EDT 2005


Hello

While I was searing for solution to restrict users from accessing msn and
yahoo messenger I found following mail describing it using iptables. I want
to know why all rules are implemented in forward chain

To block Msn messenger with iptables.

# iptables -A FORWARD -p tcp --dport 1863 -j DROP

To block Yahoo messenger --> this might work but not sure..in my case it
worked before 9 months. Yahoo messenger works on different ports.
you can offcourse restrict the whole domain but that would not be fair.

# iptables -A FORWARD -p TCP --dport 5000:5010 -j REJECT
# iptables -A FORWARD -d cs.yahoo.com -j REJECT
# iptables -A FORWARD -d scsa.yahoo.com -j REJECT
Regards,

Komal



More information about the Members mailing list