From mboxrd@z Thu Jan 1 00:00:00 1970 From: Georgi Alexandrov Subject: Re: How to disable mIRC Chat Date: Sat, 14 Jan 2006 20:59:56 +0200 Message-ID: <43C94A2C.4050901@gmail.com> References: <20060114182550.35278.qmail@web60913.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060114182550.35278.qmail@web60913.mail.yahoo.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Gabriel wrote: >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 > > >443 is used by https, so I don't think you should block it. >An IRC daemon would not normally run on that port. > > > > Maybe best match will be achieved with l7-filter.sf.net