[Bug 887] iptables.xslt wrong "match" -m handling

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Jan 24 06:24:41 CET 2014


https://bugzilla.netfilter.org/show_bug.cgi?id=887

Phil Oester <netfilter at linuxace.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |netfilter at linuxace.com
         Resolution|                            |WORKSFORME

--- Comment #1 from Phil Oester <netfilter at linuxace.com> 2014-01-24 06:24:40 CET ---
> iptables-1.4.14

So you didn't bother trying a more recent version to see if this has been fixed
since then?

# /usr/local/iptables/sbin/iptables -V
iptables v1.4.20

# cat foo
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -s 1.1.1.1/32 -d 2.2.2.2/32 -i lo -p tcp -m tcp -j DNAT
--to-destination 3.3.3.3
-A POSTROUTING -d 4.4.4.4/32 -o li -p tcp -j MASQUERADE
COMMIT

# cat foo | /usr/local/iptables/bin/iptables-xml | xsltproc
/usr/src/iptables/iptables/iptables.xslt -
# Generated by iptables.xslt
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -s 1.1.1.1/32 -d 2.2.2.2/32 -i lo -p tcp -m tcp -j DNAT
--to-destination 3.3.3.3
-A POSTROUTING -d 4.4.4.4/32 -o li -p tcp -j MASQUERADE
COMMIT
# Completed

Closing - already fixed.

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list