* Multiple -d flags
@ 2003-01-11 20:58 Mattia Martinello
2003-01-11 21:14 ` RE : " Franck ZOCCOLO
2003-01-11 21:37 ` Thorsten Scherf
0 siblings, 2 replies; 6+ messages in thread
From: Mattia Martinello @ 2003-01-11 20:58 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE : Multiple -d flags
2003-01-11 20:58 Multiple -d flags Mattia Martinello
@ 2003-01-11 21:14 ` Franck ZOCCOLO
2003-01-11 21:37 ` Thorsten Scherf
1 sibling, 0 replies; 6+ messages in thread
From: Franck ZOCCOLO @ 2003-01-11 21:14 UTC (permalink / raw)
To: 'Mattia Martinello', netfilter
> 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
You should use '--dport' instead of '-dport'.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Multiple -d flags
2003-01-11 20:58 Multiple -d flags Mattia Martinello
2003-01-11 21:14 ` RE : " Franck ZOCCOLO
@ 2003-01-11 21:37 ` Thorsten Scherf
1 sibling, 0 replies; 6+ messages in thread
From: Thorsten Scherf @ 2003-01-11 21:37 UTC (permalink / raw)
To: Mattia Martinello, netfilter
> 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.
You have to specify a protocol with the -p option, then you can use --dport!
Try this one:
iptables -A FORWARD -s 0.0.0.0/0 -d 213.21.136.8/255.255.255.255 -p tcp
--dport 80 -j ACCPET
^ permalink raw reply [flat|nested] 6+ messages in thread
* Multiple -d flags
@ 2003-01-11 20:45 Mattia Martinello
2003-01-13 11:04 ` Dharmendra.T
2003-01-13 11:32 ` Rodrigo Otavio
0 siblings, 2 replies; 6+ messages in thread
From: Mattia Martinello @ 2003-01-11 20:45 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Multiple -d flags
2003-01-11 20:45 Mattia Martinello
@ 2003-01-13 11:04 ` Dharmendra.T
2003-01-13 11:32 ` Rodrigo Otavio
1 sibling, 0 replies; 6+ messages in thread
From: Dharmendra.T @ 2003-01-13 11:04 UTC (permalink / raw)
To: Mattia Martinello; +Cc: netfilter
On Sun, 2003-01-12 at 02:15, 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
>
>
You should specify --dport not "-dport"
REgards
--
Dharmendra.T
Linux Enthu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Multiple -d flags
2003-01-11 20:45 Mattia Martinello
2003-01-13 11:04 ` Dharmendra.T
@ 2003-01-13 11:32 ` Rodrigo Otavio
1 sibling, 0 replies; 6+ messages in thread
From: Rodrigo Otavio @ 2003-01-13 11:32 UTC (permalink / raw)
To: netfilter
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
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-01-13 11:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-11 20:58 Multiple -d flags Mattia Martinello
2003-01-11 21:14 ` RE : " Franck ZOCCOLO
2003-01-11 21:37 ` Thorsten Scherf
-- strict thread matches above, loose matches on Subject: below --
2003-01-11 20:45 Mattia Martinello
2003-01-13 11:04 ` Dharmendra.T
2003-01-13 11:32 ` Rodrigo Otavio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.