Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6812

Summary: iptables 1.2.7 - unknown arg error
Product: Gentoo Linux Reporter: Kaleb Pederson <kaleb.pederson>
Component: Current packagesAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED FIXED    
Severity: normal CC: heim, kevin, lindnerb
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kaleb Pederson 2002-08-21 00:54:42 UTC
When trying to run iptables-restore on my iptables policies, 1.2.7 dies on the  
following line complaining about "unknown arg 113".  
 -A INPUT -p tcp -m tcp --dport 113 -j REJECT --reject-with tcp-reset  
  
If I comment out the line.. then it dies on:  
-A INPUT -p icmp -m icmp --icmp-type 3 -j ACCEPT  
(which is the following line) with a message about "unknown arg 3".
Comment 1 Todd Heim (RETIRED) gentoo-dev 2002-08-21 00:57:55 UTC
iptables 1.2.7 is acting similar here also. 
 
the file ipt.tmp was generated by iptables-save > ipt.tmp 
 
tnt root # /sbin/iptables-restore < ipt.tmp 
iptables-restore v1.2.7: Unknown arg `80' 
Try `iptables-restore -h' or 'iptables-restore --help' for more information. 
 
line with "80" in it is this: 
-A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT 
 
similarily, the following fails with the same message  
tnt root # iptables-save|iptables-restore 
 
downgrading back to 1.2.6a-r1 solved this problem. 
Comment 2 Bert Lindner 2002-08-22 19:40:47 UTC
*** Bug 6907 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2002-08-25 12:56:50 UTC
I have masked iptables-1.2.7 as it contains bugs confirmed by the authors of
iptables. A new version, 1.2.7a, is to be released ASAP. I will repoen these
bugs and make sure the errors reported doesn't exist in the new version before
unmasking 1.2.7a.
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2002-08-27 01:49:44 UTC
I've just commited iptables 1.2.7a. Please test this version and see if upstream
has fixed your problems. It's currently masked, I need to know if this version
works as expected before I can unmask.
Comment 5 Bert Lindner 2002-08-27 13:43:39 UTC
I've just merged and tested (saved/restored/listed ruleset) iptables-1.2.7a and
it seems to work just fine again.