Bug 42990

Summary: iptables-save: -c option causing problems as of 1.2.2-1.i386
Product: [Retired] Red Hat Raw Hide Reporter: John MacLean <johndwayne.maclean>
Component: iptablesAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-07 14:14:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John MacLean 2001-05-31 04:33:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686; Nav)

Description of problem:
iptables-restore unable to restore any config saved with iptables-save -c.
Able to restore if -c isn't used on the save.	

How reproducible:
Always

Steps to Reproduce:
[root@thunder john]# rpm -q iptables
iptables-1.2.2-1
[root@thunder john]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state
RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@thunder john]# iptables-save -c > test2
[root@thunder john]# iptables-restore -c < test2
iptables-restore v1.2.2: no command specified
Try `iptables-restore -h' or 'iptables-restore --help' for more
information.
[root@thunder john]# 
	

Expected Results:  No error message.

Additional info:

Problem did not exist in iptables-1.2.1a
Prevents 'service iptables start' from working after a 'service iptables
save' is issued.

Comment 1 Bernhard Rosenkraenzer 2001-10-30 11:45:01 UTC
Fixed in 1.2.4-1