

Actually it’s simple than “NAT”, technically. Normally when we said “NAT”, it’s not just NAT (Network Address Translate), but a NAT plus a stateful firewall (see documents below). The conntrack here is a stateful firewall as in “NAT”. And compare to create a map from (paddr, pport) to (iaddr, iport) and match the later, it’s more simple to just match suffix of address.
There are some code updates to refactor API call two months ago on Codeberg.