I have setup an OpenVPN connection between a Windows 2012 Server and an Debian Linux machine.
The windows machine is the server and the linux machine is running openvpn as client.
I can ping and connect to each other within the VPN network without problem.
My problem is that I cannot access the client's network from the server machine.
E.g.
Ping from 10.10.0.2 & .1 is working without problems.
Ping from Server to 192.168.1.X is not working.
Setup:
OpenVPN Server (Windows 2012 Server)
IP: 172.16.1.10/24
VPN IP: 10.10.0.1
OpenVPN Client (Debian V6 Linux)
IP: 192.168.1.5/24
VPN IP: 10.10.0.2
I tried to add a route in Windows but still no traffic is being routed to the VPN network.
E.g. route add 192.168.1.0 mask 255.255.255.0 10.10.0.2
What do I need to configure in Windows/Linux to get access to the internal network of the client side?
UPDATE 23/04/2015:
After adding route and iroute to the OpenVPN server configuration I can access the eth0 interface (192.168.1.5) from the Windows Server.
Added to server.ovpn:
client-config-dir ccd
route 192.168.1.0 255.255.255.0
Inside the ccd folder, created a simple text file "client" with the following content:
iroute 192.168.1.0 255.255.255.0
The access to other clients in the network is possible but only by adding a static route to each of the client (e.g. route add 10.10.0.0 mask 255.255.255.0 192.168.1.5)
How can I accomplish the same without the need of adding static route or changes to the clients in the local network?
Best Answer
Sound like you have successfully setup a remote-access vpn. http://en.wikipedia.org/wiki/Virtual_private_network
A: You need to use a site-to-site VPN tunnel.
https://openvpn.net/vpn-server-resources/site-to-site-routing-explained-in-detail/