<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 - SNAT/DNAT/Masquerading not working for UDPLite protocol"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1448">1448</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SNAT/DNAT/Masquerading not working for UDPLite protocol
          </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>other
          </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>me@nicho1as.wang
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It was first observed on Arch Linux with a 5.7.10 kernel, serving as a router
with the following rules,

iptables -A POSTROUTING -t nat -o br-wan -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i br-lan -o br-wan -j ACCEPT

, and it seems the packet are NAT'd as a general IP packet (the server receives
a lan ip address).

Then I tried to add the following NAT rules but it cannot match to any packet.
iptables -I POSTROUTING 1 -tnat -j SNAT -p udplite -o br-wan --to [wan_ip]
iptables -I PREROUTING 1 -tnat -j DNAT -p udplite -i br-lan --to [lan_ip]

The tool I wrote for testing this behavior is hosted at
<a href="https://github.com/nicholascw/SLOWProxy/tree/develop/gadgets/udpliteping">https://github.com/nicholascw/SLOWProxy/tree/develop/gadgets/udpliteping</a>, which
is a simple ping-n-pong sketch.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>