Linux Netfilter discussions
 help / color / mirror / Atom feed
* a doubt about INPUT rule
@ 2003-08-14  6:46 Payal Rathod
  2003-08-13  7:22 ` Ralf Spenneberg
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Payal Rathod @ 2003-08-14  6:46 UTC (permalink / raw)
  To: netfilter

Hi,
Why does this give an error,

# iptables -A INPUT -p all -s 0/0 -d 192.168.0.10 --dport 21 -j ACCEPT
iptables v1.2.7a: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.

and this,

# iptables -A INPUT -s 0/0 -d 192.168.0.10 --dport 21 -j ACCEPT
iptables v1.2.7a: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.

But this works,

# iptables -A INPUT -p tcp -s 0/0 -d 192.168.0.10 --dport 21 -j ACCEPT

Why does it not work without -p and even with -p tcp?

With warm regards,
-Payal



-- 
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-15 16:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14  6:46 a doubt about INPUT rule Payal Rathod
2003-08-13  7:22 ` Ralf Spenneberg
2003-08-15 16:46   ` Payal Rathod
2003-08-14 21:28     ` Ralf Spenneberg
2003-08-13  8:13 ` anantharaman.iyer
2003-08-13  8:14 ` anantharaman.iyer
2003-08-13  8:29 ` anantharaman.iyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox