From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gale Subject: Re: iptables related Date: Mon, 8 Dec 2003 12:38:47 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20031208123847.6f8fe3c6.mgale@utilitran.com> References: <20031208191947.GA1603@msservices> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20031208191947.GA1603@msservices> 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: netfilter@lists.netfilter.org You need to specify a protocol if you want to specify ports. For example: iptables -A INPUT -p tcp --sport 80 -j ACCEPT Michael On Tue, 9 Dec 2003 00:49:47 +0530 Jeffrin wrote: > hello all, > > iptables -A INPUT -sport 80 -j ACCEPT > > shows error ... > > msservices:~# iptables -A INPUT --sport 80 -j ACCEPT > iptables v1.2.9: Unknown arg `--sport' > Try `iptables -h' or 'iptables --help' for more information. > > please help me ... > > -- Michael Gale Network Administrator Utilitran Corporation