SNAT Iptables

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Masquerading

  • iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o $WAN -j MASQUERADE

Natives SNAT

  • iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o $WAN -j SNAT --to 62.54.32.67

SNAT ganzes Netz

  • iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o $WAN -j NETMAP --to 62.54.32.0/24