I have 2 servers on my network that also have global IP address, and I need to enable them to talk to each other using their internet IPs.
Local IPs: 192.168.0.17 and .20 Their Internet IPs are: 91.x.x.17 and 91.x.x.20 they are using couple of ports for different purposes.
Servers are both Ubuntu 18.04.
editing hosts file did not work, as I am directly working with IP address. I am looking at iptables and it seems than it can be used to redirect the incoming traffic, is it possible to do this using iptables, and is there a simpler way to do this. Thanks in Advance