Public bug reported:
With the following test firewall:
# Start test file
*nat
:PREROUTING ACCEPT [2:150]
:INPUT ACCEPT [2:150]
:OUTPUT ACCEPT [9:588]
:POSTROUTING ACCEPT [9:588]
COMMIT
*mangle
:PREROUTING ACCEPT [93:393669]
:INPUT ACCEPT [93:393669]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [66:6633]
:POSTROUTING ACCEPT [69:6793]
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[FOOBAR]"
COMMIT
# End test file
iptables-restore 1.4.12 compiled with gcc-4.7 does not add the INPUT rule. Eg:
$ cat /tmp/test.fw | sudo iptables-restore && sudo iptables-save | grep FOOBAR
|| echo "FAIL"
FAIL
However, iptables-restore 1.4.12 compiled with gcc-4.6 works fine. Eg:
$ cat /tmp/test.fw | sudo iptables-restore && sudo iptables-save | grep FOOBAR
|| echo "FAIL"
-A INPUT -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[FOOBAR]"
Attached is a small script for testing (must run with sudo).
** Affects: iptables (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1027252
Title:
iptables-restore does not work properly when compiled with gcc-4.7
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iptables/+bug/1027252/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs