<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 - Current conntrack state isn't considered when evaluating multiple SNAT rules"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1227">1227</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Current conntrack state isn't considered when evaluating multiple SNAT rules
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>netfilter/iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>NAT
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>richard@helix.net.nz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If multiple SNAT rules exist with specific sport ranges, only the first
matching entry is evaluated even when the sport range is exhausted.

Example:
root@LEDE:~# iptables -nvL POSTROUTING -t nat
Chain POSTROUTING (policy ACCEPT 127 packets, 8757 bytes)
 pkts bytes target     prot opt in     out     source               destination
 3618  215K postrouting_rule  all  --  *      *       0.0.0.0/0           
0.0.0.0/0            /* !fw3: user chain for postrouting */
    9   616 SNAT       icmp --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 0 */ to:2.127.254.0:1088-1151
 2661  139K SNAT       tcp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 1 */ to:2.127.254.0:1088-1151
  821 66973 SNAT       udp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 2 */ to:2.127.254.0:1088-1151
    0     0 SNAT       icmp --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 3 */ to:2.127.254.0:2112-2175
    0     0 SNAT       tcp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 4 */ to:2.127.254.0:2112-2175
    0     0 SNAT       udp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 5 */ to:2.127.254.0:2112-2175
    0     0 SNAT       icmp --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 6 */ to:2.127.254.0:3136-3199
    0     0 SNAT       tcp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 7 */ to:2.127.254.0:3136-3199
    0     0 SNAT       udp  --  *      map-mapt0  0.0.0.0/0           
0.0.0.0/0            /* !fw3: ubus:mapt0[map] nat 8 */ to:2.127.254.0:3136-3199


For some additional context, when implementing RFC7597 or RFC7599, the
netfilter device may only have permission to use a subset of an IPv4 address'
65535 ports.
The ports that this particular device is allowed to use, may also be carved up
in to multiple non-contiguous blocks, as per the above example.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>