<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - NETMAP feature, using a displaced mask fail."
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1337">1337</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>NETMAP feature, using a displaced mask fail.
</td>
</tr>
<tr>
<th>Product</th>
<td>iptables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>iptables
</td>
</tr>
<tr>
<th>Assignee</th>
<td>netfilter-buglog@lists.netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gperezbrun@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Members:
I am trying to map displaced masks. In particular, this example.
Original destination Subnets.
FROM 10.10.0.232/29 00001010.00001010.00000000.11101 000
TO 10.10.255.232/29 00001010.00001010.11111111.11101 000
MASK 255.255.0.248 11111111.11111111.00000000.11111 000
Translated destination Subnets.
FROM 172.28.0.0/29 10101100.00011100.00000000.00000 000
TO 172.28.7.248/29 10101100.00011100.00000111.11111 000
MASK 255.255.248.0 11111111.11111111.11111000.00000 000
So, to achive that I run:
# iptables -t nat -A PREROUTING -d 172.28.0.0/29 -j NETMAP --to
10.10.0.232/255.255.0.248
But IPTABLES shows another destination MASK:
# iptables -t nat -L -nv
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 NETMAP all -- * * 0.0.0.0/0
172.28.0.0/29 10.10.0.232/32
This was run on many linux distros with same result. Can somebody help me
with this? It's the correct behavior?
Thanks a lot for your time and sorry about my english.
Regards.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>