Bug 101841 - Extra 'iptables' string in /etc/sysconfig/iptables output
Extra 'iptables' string in /etc/sysconfig/iptables output
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-securitylevel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Brent Fox
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-08-07 11:04 EDT by Steve Bonneville
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-08-07 14:29:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Example /etc/sysconfig/iptables file. (668 bytes, text/plain)
2003-08-07 11:06 EDT, Steve Bonneville
no flags Details

  None (edit)
Description Steve Bonneville 2003-08-07 11:04:54 EDT
Description of problem:

The new ruleset is written to /etc/sysconfig/iptables with several rules
prepended with the string 'iptables', which breaks the configuration (see
second example line):

   -A FORWARD -j RH-Firewall-1-INPUT
   iptables -A RH-Firewall-1-INPUT -i lo -j ACCEPT

The error on 'service iptables restart':

[root@as /]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules: Bad argument `iptables'
Error occured at line: 10
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
                                                           [FAILED]
[root@as /]#

Version-Release number of selected component (if applicable): 
1.2.0-1

How reproducible:  
Every time.  Run redhat-config-securitylevel and click 'Ok' to get the default
configuration.
Comment 1 Steve Bonneville 2003-08-07 11:06:08 EDT
Created attachment 93485 [details]
Example /etc/sysconfig/iptables file.
Comment 2 Bill Nottingham 2003-08-07 14:29:58 EDT
Fixed in 1.2.1-1.

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