On Mon, 10 Dec 2001 14:27, Mark Weaver wrote:
> Hi List
>
> It was my understanding that with the latest version of Iptables "--dport"
> which is an alias for "--destination-port" is a legal argument. However,
> when i attempt to add the below into the ruleset of iptables,
>
>       iptables -A INPUT -s 199.224.86.15 --dport 53 -j ACCEPT
>
> ...this is what is returned.
>
> iptables v1.2.4: Unknown arg `--dport'
> Try `iptables -h' or 'iptables --help' for more information.

Try:

iptables -A INPUT -p tcp -s 199.224.86.15 --dport 53 -j ACCEPT

or

iptables -A INPUT -s 199.224.86.15 -d any --dport 53 -j ACCEPT

or

iptables -A INPUT -p tcp -s 199.224.86.15 -d any --dport 53 -j ACCEPT

One of those should work.  I think the first one will ; you need to specify 
the protocol (tcp/udp) when defining ports.

t


-- 
PGP key : http://n12turbo.com/tarragon/public.key

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to