Hi all. I recently attempted to configure OpenVPN on Linux in a routed configuration and I could use a little help. Here's my situation:
LAN1: 192.168.60.0/24
LAN2: 192.168.2.0/24
Router1: 192.168.60.12 (eth0); 192.168.2.1 (eth1)
This is set up and routing properly, e.g. IP forwarding is enabled and each of the above subnets can reach the other via this host.
I then configured OpenVPN in a layer-3 setup to connect to a remote network, i.e.:
LAN3 (local & remote): 10.8.0.0/24
LAN4 (remote): 10.124.37.32/27
Router1: 192.168.60.12 (eth0); 192.168.2.1 (eth1); 10.8.0.6 (tun0)
Router2 (remote): 10.8.0.1 (tun0); 10.124.37.43 (eth0)
I can reach LAN4 hosts from Router1 so I know the VPN is working and the routing tables are configured properly. However, I can't reach hosts on LAN4 from LAN2. Default gateways are set properly since I can reach LAN1 hosts from LAN2, for example.
This may be a Linux routing question but I thought I'd start here since I was routing between LAN1 and LAN2 properly. Is there any kind of OpenVPN configuration which would prevent a VPN client from routing to a tunnel interface, e.g. tun0 in my case?
I'll see if I can generate a diagram to illustrate what I'm describing here. My Visio skills are limited so it might take a little while...
Thanks for any guidance you can provide.
Damon
UPDATE: Here's a link to an image I created in hopes of depicting this configuration visually:
http://d3a5avqutunhad.cloudfront.net/OpenVPN%20Router%20Configuration.png