Here is a summary of my setup:
I have a MT running ROS 2.9.11 with 3 interfaces:
Ether1: 192.168.69.1 (LAN)
Ether2: 68.68.68.68 (ISP1, Default Gateway)
Ether3: 158.158.158.158 (ISP2)
I have masquerading and connection/route marking set up so that all traffic that comes in Ether3 gets routed back out Ether3 (traffic on Ether2 goes back out Ether2 since it is the default gateway). I also have dst-nat rules setup to forward traffic coming in Ether2 and Ether3 to local servers connected to Ether1. All of this is working correctly.
Now here’s the problem I’m having. From Ether1, I can ping both Ether2 and Ether3. However, if I try to connect from Ether1 to any dst-nat’d services using Ether2’s or Ether3’s IP address, the connection fails.
Has anyone gotten this to work and if so, how? This isn’t a major issue since I internally point DNS to the private IPs of the servers anyway, but it would be nice to get this working.
Any help/advice is greatly appreciated.
Mezlo
PS - For more details on my routing setup, check out this thread: policy-based routing