Bug 55897 - iptables-restore doesn't understand spaces in --log-prefix statements
iptables-restore doesn't understand spaces in --log-prefix statements
Product: Red Hat Linux
Classification: Retired
Component: iptables (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2001-11-08 09:40 EST by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-11-08 09:40:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-11-08 09:40:35 EST
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):

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:

Actual Results:

Expected Results:

Additional Information:
Comment 1 Bernhard Rosenkraenzer 2001-11-08 09:45:42 EST
Use 1.2.4

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