Re: iptables related

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 08 December 2003 7:19 pm, 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 ...

You must specify whether you're talking about a TCP source port, or a UDP one.

iptables -A INPUT -p tcp --sport 80 -j ACCEPT
or
iptables -A INPUT -p udp --sport 80 -j ACCEPT

will work.

Antony.

-- 
"The joy of X!!??  I've always hated compiling graphical shite.  You have a 10 
line program, and it ends up depending on the entire known universe."

 - Philip Hands

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux