1iptables-translate -t nat -A POSTROUTING -j MASQUERADE 2nft add rule ip nat POSTROUTING counter masquerade 3 4iptables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10 5nft add rule ip nat POSTROUTING ip protocol tcp counter masquerade to :10 6 7iptables-translate -t nat -A POSTROUTING -p tcp -j MASQUERADE --to-ports 10-20 --random 8nft add rule ip nat POSTROUTING ip protocol tcp counter masquerade to :10-20 random 9