Re: Multiple -d flags

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

 



hellow Mattia,

correct sintaxe is --dport, not -dport :)

test :

iptables -A FORWARD -s 0/0 -d 213.21.136.8 --dport 80 -j ACCEPT 


bye

surf3r 


On Sat, 2003-01-11 at 18:45, Mattia Martinello wrote:
> Hi
> 
> I wish to create a rule that allow a packet to a specified IP on a 
> specified port.
> 
> The rule:
> 
> iptables -A FORWARD -s 0.0.0.0/0 -d 213.21.136.8/255.255.255.255 -dport 
> 80 -j ACCEPT
> 
> shows me the following error:
> 
> iptables v1.2.5: multiple -d flags not allowed
> Try `iptables -h' or 'iptables --help' for more information.
> 
> How I can solve my problem?
> 
> Thank you very much
> Bye
> Mattia
> 
> 
> 




[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