How to re-route specific ip?

  • Hello, i have a local network device ( which communicates with only 1 specific IP on the INTERNET ( Although, i need to force the local device to communicate with a different IP on the INTERNET ( So, how would i create a rule which re-routes all traffic from the ip TO the ip?

    note: the two and 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 -p tcp -j DNAT –to

    If i missed any details please let me know thanks!

Log in to reply