Page 1 of 1

Openvpn rooting help

Posted: Mon Oct 18, 2010 1:54 am
by morto
Hi!

I have a server on internal lan that i have installed openvpn client on.
The problem i have is when i have connect it to the openvpn server i can't connect to the NAS from out side my LAN.
I guess there is some routing problem.

My setup looks like this.

Router externt ip: 84.55.X.X Interntip: 192.168.0.1

Internal server with vpn client. Internal ip: 192.168.0.200 Openvpn ip 10.8.0.6

VPN server(ubuntu) externt ip: 213.239.X.X

What i like to access is a management on port 5000 and ssh port 22. I have in my router(192.168.0.1) forwarded the ports 5000 and 22 to teh NAS(192.168.0.200)

I can connect to the nas from outside the lan on the external ip 84.55.X.X:5000 as long is the nas is not connected with the VPN.
But when i connect the VPN client on the NAS to the VPN server i cant connect to it from outside the LAN but i can connect inside the lad on the ip 192.168.0.200.

So i guess it's some roting problem somewhere but in not really that good at routing and so on.

Someone than can point me the problem/sulution?

Thanks in advance.


Image of the setup.
Image