Bug 55897 - iptables-restore doesn't understand spaces in --log-prefix statements
Summary: iptables-restore doesn't understand spaces in --log-prefix statements
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: iptables
Version: 7.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-08 14:40 UTC by Need Real Name
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-11-08 14:40:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-11-08 14:40:35 UTC
Description of Problem:
If an iptables rule contains the --log-prefix statement and an associated
string that contains spaces it produces the error "bad argument 'INPUT'"
when iptables-restore reads the file.

Version-Release number of selected component (if applicable):
iptables-1.2.1a-1

How Reproducible:
Create a rule with --log-prefix in, e.g.

iptables -A INPUT -m limit --limit 10/min --limit-burst 3 -j LOG
--log-prefix "Denied packet: "

and run "/etc/init.d/iptables save", the rule is correctly written to
/etc/sysconfig/iptables. Running "/etc/init.d/iptables start" now produces
the error:

bad argument 'INPUT'

manually editing the /etc/sysconfig/iptables file to replace the "Denied
packet: " with "Denied_packet:_" will cause "/etc/init.d/iptables start" to
work fine.

Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Bernhard Rosenkraenzer 2001-11-08 14:45:42 UTC
Use 1.2.4



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