I added iptables -t nat -A POSTROUTING -d 10.1.0.0/22 -j MASQUERADE
And now its working. 😀
Thanks for your help.
On Wed, Aug 24, 2016 at 1:38 PM, Jan Just Keijser <[email protected]> wrote:

> Hi,
>
>
> On 23/08/16 19:22, Bhushan Patil wrote:
>
>>
>> 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.
>>
>> For that, I did following
>>     In server.conf file, added client-config-dir /etc/openvpn/ccd , route
>> 10.1.0.0 255.255.252.0 and push "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?
>>
>>
>> is routing enabled on the client side (i.e. the Pi) ?  is there a route
> on your client-side LAN that points back to the VPN network? or are you
> using any form of masquerading/NATting on the client?
>
> HTH,
>
> JJK
>
>
------------------------------------------------------------------------------
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to