From: Payal Rathod <payal-iptables@staticky.com>
To: netfilter@lists.netfilter.org
Subject: a doubt about INPUT rule
Date: Thu, 14 Aug 2003 12:16:10 +0530 [thread overview]
Message-ID: <20030814064610.GA1701@linux.local> (raw)
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.
next reply other threads:[~2003-08-14 6:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 6:46 Payal Rathod [this message]
2003-08-13 7:22 ` a doubt about INPUT rule 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030814064610.GA1701@linux.local \
--to=payal-iptables@staticky.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox