How to re-route specific ip?
-
Hello, i have a local network device (192.168.10.20) which communicates with only 1 specific IP on the INTERNET (190.210.60.40). Although, i need to force the local device to communicate with a different IP on the INTERNET (190.210.60.45) So, how would i create a rule which re-routes all traffic from the 190.210.60.40 ip TO the 190.210.60.45 ip?
note: the two 190.210.60.40 and 190.210.60.45 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 190.210.60.40 -p tcp -j DNAT –to 190.210.60.45If i missed any details please let me know thanks!