Bug#678499: iptables: iptables-restore messes with --log-prefix

2012-07-22 Thread Pawel
Package: iptables
Version: 1.4.14-2
Followup-For: Bug #678499

Hi,

the problem has affected me too, but the patch attached in
http://bugzilla.netfilter.org/show_bug.cgi?id=774
seems to work great for me. A ready to install deb package for wheezy/i386 is
available here:
https://www.dropbox.com/s/7nbnrtxmrxsp8dj/iptables_1.4.14-2_i386.deb

Thanks for forwarding.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iptables depends on:
ii  libc6  2.13-33
ii  libnfnetlink0  1.0.0-1

iptables recommends no packages.

iptables suggests no packages.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678499: iptables: iptables-restore messes with --log-prefix

2012-07-10 Thread Bernhard Schmidt
forwarded 678499 http://bugzilla.netfilter.org/show_bug.cgi?id=774
tags 678499 patch upstream
thanks

There is a better upstream bugreport for this, apparently it is a GCC
4.7 issue. There is also a patch attached to the new bugreport.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678499: iptables: iptables-restore messes with --log-prefix

2012-06-24 Thread Michael Tsang
Package: iptables
Version: 1.4.14-2
Followup-For: Bug #678499

Original file:

# Generated by iptables-save v1.4.13 on Mon May 14 07:41:03 2012
*nat
:PREROUTING ACCEPT [3208:185292]
:INPUT ACCEPT [1074:71550]
:OUTPUT ACCEPT [2556:225791]
:POSTROUTING ACCEPT [603:71903]
-A POSTROUTING -o eth2 -j MASQUERADE
COMMIT
# Completed on Mon May 14 07:41:03 2012
# Generated by iptables-save v1.4.13 on Mon May 14 07:41:03 2012
*filter
:INPUT ACCEPT [2734:290466]
:FORWARD ACCEPT [1887:108165]
:OUTPUT ACCEPT [37174:41497974]
:log_denied - [0:0]
-A INPUT -s 10.0.0.0/8 -i eth2 -j log_denied
-A INPUT -s 172.16.0.0/12 -i eth2 -j log_denied
-A INPUT -s 192.168.0.0/16 -i eth2 -j log_denied
-A INPUT -s 169.254.0.0/32 -i eth2 -j log_denied
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -j LOG --log-prefix iptables:  --log-level 7
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p udp -m multiport --dports 33434:33533 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth2 -j log_denied
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -j LOG --log-prefix iptables:  --log-level 7
-A FORWARD -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A FORWARD -p udp -m multiport --dports 33434:33533 -j ACCEPT
-A FORWARD -i eth2 -j log_denied
-A OUTPUT -d 224.0.0.0/4 -o eth2 -j log_denied
-A OUTPUT -j LOG --log-prefix iptables:  --log-level 7
-A log_denied -j LOG --log-prefix iptables denied:  --log-level 5
-A log_denied -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Mon May 14 07:41:03 2012

Result:

# Generated by iptables-save v1.4.14 on Sun Jun 24 15:51:07 2012
*filter
:INPUT ACCEPT [108:13674]
:FORWARD ACCEPT [360:21885]
:OUTPUT ACCEPT [2058:355096]
:log_denied - [0:0]
-A INPUT -s 10.0.0.0/8 -i eth2 -j log_denied
-A INPUT -s 172.16.0.0/12 -i eth2 -j log_denied
-A INPUT -s 192.168.0.0/16 -i eth2 -j log_denied
-A INPUT -s 169.254.0.0/32 -i eth2 -j log_denied
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -j LOG --log-prefix --log-pref --log-level 7
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p udp -m multiport --dports 33434:33533 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth2 -j log_denied
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -j LOG --log-prefix --log-pref --log-level 7
-A FORWARD -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A FORWARD -p udp -m multiport --dports 33434:33533 -j ACCEPT
-A FORWARD -i eth2 -j log_denied
-A OUTPUT -d 224.0.0.0/4 -o eth2 -j log_denied
-A OUTPUT -j LOG --log-prefix --log-pref --log-level 7
-A log_denied -j LOG --log-prefix --log-prefix --log-level 5
-A log_denied -j REJECT --reject-with icmp-port-unreachable
COMMIT
# Completed on Sun Jun 24 15:51:07 2012
# Generated by iptables-save v1.4.14 on Sun Jun 24 15:51:07 2012
*nat
:PREROUTING ACCEPT [407:24387]
:INPUT ACCEPT [21:1658]
:OUTPUT ACCEPT [389:27774]
:POSTROUTING ACCEPT [32:3081]
-A POSTROUTING -o eth2 -j MASQUERADE
COMMIT
# Completed on Sun Jun 24 15:51:07 2012

Then the firewall messages flood my /var/log/syslog and /dev/tty12 because I
rely on the rules to filter the thing out! I log every connection in or out my
server!



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_HK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iptables depends on:
ii  libc6  2.13-33
ii  libnfnetlink0  1.0.0-1

iptables recommends no packages.

iptables suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678499: iptables: iptables-restore messes with --log-prefix

2012-06-22 Thread Sebastian Ramacher
Package: iptables
Version: 1.4.14-2
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

After the upgrade from 1.4.13-1.1 to 1.4.14-2 loading LOG rules with
iptables-restore is broken. Loading a rule like

 -A INPUT -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix foo

I end up with

 -A INPUT -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix --l

Changing the length of the log prefix gives me more or less --log-prefix as
log prefix. So I suspect that --log-prefix and the argument are mixed up at some
place.

Using iptables to add the rule works fine, though.

Kind regards

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (650, 'unstable'), (601, 'testing'), (600, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iptables depends on:
ii  libc6  2.13-33
ii  libnfnetlink0  1.0.0-1

iptables recommends no packages.

iptables suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJP5CzhAAoJEGny/FFupxmTFbsP/R8vIpXTDqySrTJnt1DS8Cm6
XwZ/gypCaUWTBt9TvbKpbNLDWX8IiqHrCUdhz8UVWRY1hfU2/Ng3lTt4U/oToMI3
EAXodVxUy2FgMy1xP2rqjuOUBOCXQz58WjnoJPv+4bLW3Wvgqsje2Y8zQrqTewI+
zPhKl5+IhUFCQKsdcoUW6cmlGCxN5UDytmE3WuXlSbH36tq+c1eONCcRXfj1HhE8
ZIOyxWJOb5jIJ9MZO0eqvoYz0yWsg+VnZHWhhqaKHTe/AiQk6Z3NONKAlofIANla
APCWyQ0A6B33fd4frxQ7Ec0QMYnMlRX7en/E4g/tnocXs+Sesk/F3OFJQTGmWYy2
9Ncp2dwIJVLwDuimsqvMUPeERWItEjoxkxlm2uppniKgm8opUejl61oiGxjNTawI
wbdNY2XzR4dNr+88+7ubkRk7XjJfEa/02TbMvLWQyZ/lxj2mS2Bt9TDjbF/NFvhV
ZjERissyRCQa3Uz5bUC/4GdAayjy3/uboRir4JTxMvCaWhejuPdgX10/RhfyEH1R
ueLU7/OrzydiIQWAiY1Q5BDauexx3W0XRJgI7uTqUqnz8fLEUTpWm8Ufp6VTmac6
kzzT6mQuuBUJQssQ9XpwSBDEmikYFsyhBYnVgeD8LqcuIwzI5c+aie04iR8m4GtG
8kO4FbbcCgW9xYOJOxAA
=cqIr
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678499: iptables: iptables-restore messes with --log-prefix

2012-06-22 Thread Sebastian Ramacher
forwarded 678499 http://bugzilla.netfilter.org/show_bug.cgi?id=782
thanks

Just found the upstream bug.
-- 
Sebastian Ramacher



signature.asc
Description: OpenPGP digital signature