<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 - With iPv6 masquerade, ICMPv6 time-exceeded pkts are forwarded with bad checksum"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1343">1343</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>With iPv6 masquerade, ICMPv6 time-exceeded pkts are forwarded with bad checksum
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Debian GNU/Linux
          </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>NAT
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>doron.shikmoni+netfilterorg@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have a system that does IPv6 MASQUERADE, a POSTROUTING rule in the NAT table.
For the most part it works fine, however ICMPv6 type 3 (TIME-EXCEED) seems to
have their ICMPv6 checksum botched, and hence are dropped at the next hop. 
I see the packets entering the via the upstream interface just fine with good
cksum, but then on the forwarded-to interface (i.e. after translation) I get
bad checksum. The next hop does not see the packet at all.

I looked at nf_nat_proto_icmpv6.c for a bit but so far haven't found much.

Kernel 4.9.168.

e.g. on ingress:
IP6 (hlim 61, next-header ICMPv6 (58) payload length: 80) 2a01:4f9:0:c001::a015
<span class="quote">> 2a01:???:????:????::1: [icmp6 sum ok] ICMP6, time exceeded in-transit for</span >
fra16s12-in-x04.1e100.net

on egress:
IP6 (hlim 60, next-header ICMPv6 (58) payload length: 80) 2a01:4f9:0:c001::a015
<span class="quote">> fd01:???:????:????::2:1: [bad icmp6 cksum 0x735b -> 0x705b!] ICMP6, time</span >
exceeded in-transit for fra16s12-in-x04.1e100.net</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>