On Sat, 14 Jan 2006 15:17:33 +0200, Myanmar Linux Boy wrote: > Dear All, > I am new to linux. > I want to disable chat with iptables so that nobody can use chat with > mIRC with LAN. Because every students are chatting all the time. > I am using Red Hat 9 and Squid. > They use port 443 and 6667 to chat with mIRC > How can I write firewall rules. iptables -A FORWARD -p tcp --dport 6660:6669 -j DROP would do, but, considering IRC servers also run on other ports, you should do: iptables -A FORWARD -p tcp -m multiport --destination-port <insert random ports separated by comma here> 443 is used by https, so I don't think you should block it. An IRC daemon would not normally run on that port. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com