On a hosted environment where we do not have control over the routers all we have is a internal network and a DMZ network and a host in each. In the DMZ is a RHEL server running Openswan and terminating a IPsec VPN tunnel to another site.
The system in the internal network needs to access the systems on the other side of the tunnel. The idea is to create a route on the internal host pointing to the DMZ host as the gateway to get to the hosts on the other side of the tunnel.
Based on research, it appears that I cannot have a gateway in another subnet that is not directly connected to me. Is this indeed the case and is there any way to get around this?
This is the command I run on the internal host:
route add -host $hostOnOtherSideOfVPN gw $hostInDMZ dev eth0
I am able to access the host in the DMZ without any issues (ICMP, telnet, etc). Can anyone point me in the right direction?