Re: iptables related

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

 



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 <jeffrin@xxxxxxxxxxx> 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


[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