• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4
2nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4
3
4iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4-1.2.3.6
5nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4-1.2.3.6
6
7iptables-translate -t nat -A postrouting -p tcp -o eth0 -j SNAT --to 1.2.3.4:1-1023
8nft add rule ip nat postrouting oifname "eth0" ip protocol tcp counter snat to 1.2.3.4:1-1023
9
10iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4 --random
11nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random
12
13iptables-translate -t nat -A postrouting -o eth0 -j SNAT --to 1.2.3.4 --random --persistent
14nft add rule ip nat postrouting oifname "eth0" counter snat to 1.2.3.4 random,persistent
15