nat - Prerouting with iptables, destination port to DHCP
linux - iptables: change local source address if $ iptables -t nat -A POSTROUTING --destination 10.0.0.1/32 -j SNAT --to-source 10.0.0.160 2. Using a static route. Alternatively, instead of an iptables rule, add a static route for the destination host to the routing table, using the following syntax: $ ip route add
Network Address Translation (NAT) and servers, protected by a nice iptables NAT firewall. Your entire network will appear to the outside world as a single computer. (Canny network gurus can penetrate NAT firewalls, but it isn't easy.) Source NAT (SNAT) rewrites the source addresses of all outgoing packets to the firewall address.
Step-By-Step Configuration of NAT with iptables Step-By-Step Configuration of NAT with iptables. This tutorial shows how to set up network-address-translation (NAT) on a Linux system with iptables rules so that the system can act as a gateway and provide internet access to multiple hosts on a local network using a single public IP address. Iptables and NAT, SNAT, and DNAT - Networking Tutorial Network Address Translation (NAT) and servers, protected by a nice iptables NAT firewall. Your entire network will appear to the outside world as a single computer. (Canny network gurus can penetrate NAT firewalls, but it isn't easy.) Source NAT (SNAT) rewrites the source addresses of all outgoing packets to the firewall address.
NAT - SNAT, DNAT, PAT & Port Forwarding - YouTube
iptables - source ? destination ? From where Apr 29, 2003