Hi there,
I have the following setup
LAN 1 (192.168.128.0 255.255.255.0)
-> OpenVPN-Server (192.168.128.12) (2.2.1)
-> (10.223.156.1)
-> Internet
-> (10.223.156.6)
-> OpenVPN-Client (192.168.127.12) (2.3.1)
-> LAN 2 (192.168.127.0 255.255.255.0)
This works for me as far as accessing LAN 1 from any machine on LAN 2. I am also able to access services provided by OpenVPN-Client by using the IP 10.223.156.6. But I can't even ping OpenVPN-Client or any other station on LAN 2 if I am on LAN 1 or even OpenVPN-Server.
It seems to be a routing problem but I have no idea where to look for a solution or more information on how to solve this.
OpenVPN-Server is running Ubuntu 13.04 and there is a /etc/openvpn/ccd/[certname] file containing:
iroute 192.168.127.0 255.255.255.0
Also route shows no errors:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.128.11 0.0.0.0 UG 0 0 0 eth0
10.223.156.0 10.223.156.2 255.255.255.0 UG 0 0 0 tun0
10.223.156.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.127.0 10.223.156.2 255.255.255.248 UG 0 0 0 tun0
192.168.128.0 * 255.255.255.0 U 0 0 0 eth0
But if I run traceroute I get this:
traceroute to 192.168.127.12 (192.168.127.12), 30 hops max, 60 byte packets
1 192.168.128.11 (192.168.128.11) 0.613 ms 0.524 ms 0.680 ms
2 192.168.128.11 (192.168.128.11) 0.664 ms 0.639 ms 0.818 ms
This is as far as I get. I simply don't know why Ubuntu won't use the route specified but instead tries the default one. And I even don't know what to google next...
I hope somebody can help me fix this.