Following
this tutorial I installed OpenVPN server on my WD MyBook WE White, which runs BusyBox.
I can connect from the client, but I can't access any resource on the LAN. What I need to do is to map the WD as a network drive on Windows from outside my LAN.
Here's the scenario:
Home
- Router with no VPN support - opened 1194 port and routed to 192.168.1.150 (dynamic dns enabled so that public IP is not an issue)
- WD MyBook World Edition White (OpenVPN server installed) - 192.168.1.150
Office
- Windows 10 PC - 192.168.1.2
The idea is that Windows 10 PC should be able to map WD MyBook as a network drive, even if they're on a different network.
This is my server configuration (OpenVPN assigns IP starting from 192.168.2.1) :
ca ca.crt
cert OpenVPNserver.crt
client-to-client
comp-lzo
dev tun
dh dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
key OpenVPNserver.key
persist-key
persist-tun
port 1194
proto tcp
push "route 192.168.1.0 255.255.255.0"
server 192.168.2.0 255.255.255.0
verb 3
Client configuration:
client
dev tun
proto tcp
remote <DYNDNS-SERVER> 1194
nobind
ca ca.crt
cert OVClient.crt
key OVClient.key
comp-lzo
verb 3
After connecting through the client I ran this command on the Windows 10 client:
route add 192.168.2.0 MASK 255.255.255.0 192.168.150 -p
But pinging 192.168.1.150 leads to no results.
I even tried connecting to the VPN from inside the LAN, to do a tracert hoping that the request to 192.168.1.150 would have been routed to 192.168.2.0 but it didn't work.
Now, I don't know if I'm missing something or if I completely misunderstood how is this supposed to work, that's why I need your help.
Is my configuration fine? Why I can't connect to my network drive from outside the LAN?
As an extra info:
~ # iptables -L
iptables v1.4.10: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
But I can't upgrade the kernel so any iptables solution probably won't work for me.