Till now I have managed to installed OpenVPN server on DigitalOcean and OpenVPN client on Raspberry Pi. My Raspberry Pi's OpenVPN IP is 10.8.0.6 which I can ping from OpenVPN server. Now this RPi is connected to LAN netword(gateway 10.1.1.253, SubnetMask:255.255.252.0) by IP 10.1.2.14. There is another Linux system connected to this client's(RPi) network and its IP is 10.1.2.2.
Now I want to access 10.1.2.2 from OpenVPN server via VPN. Can anybody explain me how should I do this ?
EDIT: As per @masgo's suggestion, I did following
- In
server.conf
file, addedclient-config-dir /etc/openvpn/ccd
,route 10.1.0.0 255.255.252.0
andpush "route 10.1.0.0 255.255.252.0"
- In /etc/openvpn/ccd/lappy file, added
iroute 10.1.0.0 255.255.252.0
- Now I am able to ping to ip 10.1.2.14(OpenVPN's client) from OpenVPN server but not to ip 10.1.2.2. What I am missing in client side routing?