[Bug 860] New: Bizarre "cannot use" error inconsistent with command line
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Sat Oct 19 01:31:11 CEST 2013
https://bugzilla.netfilter.org/show_bug.cgi?id=860
Summary: Bizarre "cannot use" error inconsistent with command
line
Product: iptables
Version: 1.4.x
Platform: arm
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: iptables
AssignedTo: netfilter-buglog at lists.netfilter.org
ReportedBy: eric.bock.1980 at gmail.com
Estimated Hours: 1.0
iptables 1.4.11.1 (sometimes installed by Android) and iptables 1.4.10
(sometimes installed by third parties) produce nonsensical usage errors for
some dubious command lines:
iptables --list -L
iptables v1.4.11.1: Cannot use -L with -L
iptables --list-rules -S
iptables v1.4.11.1: Cannot use -E with -E
iptables --flush -F
iptables v1.4.11.1: Cannot use -F with -F
iptables --zero -Z
iptables v1.4.11.1: Cannot use -Z with -Z
iptables --new -N
iptables v1.4.11.1: chain name not allowed to start with `-'
iptables --policy -P
iptables v1.4.11.1: -X requires a chain and a policy
Note the difference between the arguments and the error for --list-rules and
--policy. Also, reactions to -E vary in spacing and relevance:
[ 2 ] app_42 at android:/$ iptables -E a
iptables v1.4.11.1: -P requires old-chain-name and new-chain-name
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/$ iptables -E a b -E
iptables v1.4.11.1: option "-E" requires an argument
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/$ iptables -E a b -E b
iptables v1.4.11.1: Cannot use -P with -P
Try `iptables -h' or 'iptables --help' for more information.
[ 2 ] app_42 at android:/$ iptables -E a b -E b c
iptables v1.4.11.1: Cannot use -P with -P
Try `iptables -h' or 'iptables --help' for more information.
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the netfilter-buglog
mailing list