[Bug 578] New: Inserting Rule requires rulename as first argument (instead of the rulenumber)

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Wed Feb 18 16:42:04 CET 2009


http://bugzilla.netfilter.org/show_bug.cgi?id=578

           Summary: Inserting Rule requires rulename as first argument
                    (instead of the rulenumber)
           Product: iptables
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: iptables
        AssignedTo: laforge at netfilter.org
        ReportedBy: felix.schuster at gmx.at


looking into the man page:
iptables [-t table] -I [rulenum] rule-specification [options...]
you have to tell the rulenumber as first option to "-I"

give it a try:
 iptables -I 3 INPUT -d 192.168.0.2 -i eth0 -p tcp --dport 993 -m state --state
NEW -j ACCEPT
iptables v1.4.2: Invalid rule number `INPUT'
Try `iptables -h' or 'iptables --help' for more information.

trying it the other way:
iptables -I INPUT 3 -d 192.168.0.2 -i eth0 -p tcp --dport 993 -m state --state
NEW -j ACCEPT

that's working. so simple change the man page ;)


-- 
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the netfilter-buglog mailing list