Bug 827919
| Summary: | iptables-restore corrupts --log-prefix settings | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | rambler8 |
| Component: | iptables | Assignee: | Thomas Woerner <twoerner> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | andy, bill, bugs.michael, jpopelka, lekensteyn, psabata, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-30 20:54:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
rambler8
2012-06-03 18:21:32 UTC
I've also just encountered this problem with iptables-1.4.12.2-5.fc17.x86_64 More information, after running: iptables-restore < /etc/sysconfig/iptables and running this: iptables -S | grep log-prefix I get this: -A CHAIN1 -j LOG --log-prefix --lo --log-level 6 -A CHAIN2 -j LOG --log-prefix --lo --log-level 6 ... -A CHAIN3 -j LOG --log-prefix --log-prefi --log-level 6 -A CHAIN4 -j LOG --log-prefix --log-pref --log-level 6 Corresponding lines in /etc/sysconfig/iptables: -A CHAIN1 -j LOG --log-prefix "VN: " --log-level 6 -A CHAIN2 -j LOG --log-prefix "ZA: " --log-level 6 ... -A CHAIN3 -j LOG --log-prefix "MAIL_BLOCK:" --log-level 6 -A CHAIN4 -j LOG --log-prefix "MAIL_DROP:" --log-level 6 This shouldn't be difficult to fix - the faulty prefix name has the correct length, but seems to fetching from the wrong buffer location. Annoying - I have too many rules to replace manually. Would it be possible to make --line-numbers work with -S and not just with the unprocessable -L directive? This way, one can search and replace rules more easily using grep and cut. What compiler versions are you using? Using Arch Linux and gcc 4.7.1 on iptables 1.4.14, I get the same error. If I build with -O0, the bug goes away. -O1 and -O2 are both affected. Patch available on http://bugzilla.netfilter.org/show_bug.cgi?id=774 *** This bug has been marked as a duplicate of bug 825796 *** |