How to re-route specific ip?
steviep last edited by
Hello, i have a local network device (192.168.10.20) which communicates with only 1 specific IP on the INTERNET (22.214.171.124). Although, i need to force the local device to communicate with a different IP on the INTERNET (126.96.36.199) So, how would i create a rule which re-routes all traffic from the 188.8.131.52 ip TO the 184.108.40.206 ip?
note: the two 220.127.116.11 and 18.104.22.168 ips are public ips somwhere on the internet, just to be clear.
I know that it would look like this in IPTables:
iptables -t nat -A PREROUTING -d 22.214.171.124 -p tcp -j DNAT –to 126.96.36.199
If i missed any details please let me know thanks!