ip tables Destination-NAT 1

ip tables Destination-NAT

iptables -t nat -A PREROUTING -d 10.10.20.99 -j DNAT --to-destination 10.10.14.2

Here is what the above code is Doing:
1. We’re creating a new chain called “DNAT”
2. We’re adding a rule to the DNAT chain that says if the destination IP address is 10.10.20.99, then change the destination IP address to 10.10.14.2
3. We’re adding a rule to the PREROUTING chain that says if the destination IP address is 10.10.20.99, then jump to the DNAT chain

Similar Posts