Bug 49154 - iptables-save saves rules without jump target incorrectly
Summary: iptables-save saves rules without jump target incorrectly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: iptables
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-16 08:00 UTC by Florian Wisser
Modified: 2007-04-18 16:34 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-07-16 12:09:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Florian Wisser 2001-07-16 08:00:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-7.0.1 i686)

Description of problem:
iptable-restore is not able to restore rulesets written with
iptables-save if there is a rule without a jump target. (rules
to count traffic for example)

How reproducible:
Always

Steps to Reproduce:
1. iptables -I FORWARD 1
2. iptables-save > iptables
3. iptables-restore < iptables
	

Actual Results:  iptables-restore v1.2.2: Unknown arg `-j'
Try `iptables-restore -h' or 'iptables-restore --help' for more
information.


Additional info:

the problem is, that iptables-save writes the following line:
-A FORWARD -j  
instead of this one:
-A FORWARD
which actually works with iptables-restore.

Comment 1 Bernhard Rosenkraenzer 2001-07-16 11:00:32 UTC
Verified; problem still exists in the current version

Comment 2 Florian Wisser 2001-07-16 12:09:28 UTC
i just checked out that this bug is resolved in the cvs version of netfilter

Comment 3 Bernhard Rosenkraenzer 2001-07-16 13:20:32 UTC
Fix from CVS backported in 1.2.2-3



Note You need to log in before you can comment on or make changes to this bug.