From mboxrd@z Thu Jan 1 00:00:00 1970 From: Qui Le Subject: Re: rule check Date: Thu, 16 Jan 2003 10:50:49 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200301161050.49338.qle@telogy.com> References: <000d01c2bd74$2db248f0$1e01a8c0@win2k.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <000d01c2bd74$2db248f0$1e01a8c0@win2k.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Mike , netfilter@lists.netfilter.org No. The first rule has a broader scope than the second rule. The second rule limits the destination port to 2000 - 2050, whereas, the first rule will accept any destination port. Qui On Thursday 16 January 2003 10:30 am, Mike wrote: > Are these two rules essentially the same ? > > Thanks, > Mike > > iptables -A FORWARD -i eth2 -o eth0 -m state --state > NEW,ESTABLISHED,RELATED -j ACCEPT > > iptables -A FORWARD -i eth2 -o eth0 -p tcp --dport 2000:2050 -m > state --state NEW,ESTABLISHED,RELATED -j ACCEPT