PDA

View Full Version : [ubuntu] OpenVPN client cannot see computers on subnet of server



rafter109
November 5th, 2010, 03:53 AM
I have a VPN setup with an Ubuntu 10.04 VPN server, an Ubuntu 10.04 client, and a Windows 7 client. VPN server is on network 192.168.1.0 and clients are on network 192.168.0.0. When connecting to the VPN server with the Ubuntu client, I cannot ping or otherwise communicate with other computers on the server's subnet but I CAN ping and share files when connected with the Windows 7 machine. Anyone ran into this before? I can post configs, logs, etc. if anyone can assist me. Thanks in advance.

rafter109
November 5th, 2010, 01:51 PM
polite bump

rafter109
November 5th, 2010, 07:53 PM
anybody?

SeijiSensei
November 8th, 2010, 05:38 PM
Try adding this to the Ubuntu client:

In the client's OpenVPN .conf file include the directive:


up ./add_routes

Then in /etc/openvpn create the add_routes file as root with this line:


ip route add 192.168.1.0/24 via ip.addr.of.vpn

replacing "ip.addr.of.vpn" with the IP address of the server's end of the VPN link. E.g., if you use the OpenVPN directive:


ifconfig 10.10.10.1 10.10.10.2

you'd replace with "ip.addr.of.vpn" with "10.10.10.2".

Make the script executable by the root user with "chmod u+x /etc/openvpn/add_routes".