Examples of SNAT, DNAT with IPTABLES
- Lucas
- March 21, 2024
There are several NAT variations that can be configured with IPTABLES. This article aims to show some examples of SNAT, DNAT with iptables. Mask all outgoing packets as IP WLAN0 iptables -t nat -A PREROUTING -s 192.168.1.2 -i eth0 -j MASQUERADE All packets leaving eth0 will have the IP address src eth0 iptables -t nat