[Guide] WD My Cloud Open VPN Setup
1) Login to My Cloud with SSH
2) Make a temp working directory
>> mkdir temp
>> cd temp
3) Get the open vpn config files
4) Unzip the files
>> unzip openvpn.zip
5) copy the following files to /etc/openvpn
>> cp ca.cert crl.pem /etc/openvpn
6) Choose which host you want to use and copy it to /etc/openvpn as a conf file
>> cp Netherlands.ovpn /etc/openvpn/Netherlands.conf
7) >> cd /etc/openvpn
8) Edit the conf file
>> nano Netherlands.conf
change the line auth-user-pass to
>> auth-user-pass /etc/openvpn/password.txt
save file and exit nano
9) Create a password file with your details
>> nano password.txt
first line should be your PIA username (begins with a p)
second line is your PIA password
save file and exit nano
10) Get the VPN to start at boot time
>> nano /etc/default/openvpn
change the AUTOSTART line to your host file from step 6 and make sure you
remove any # at the start of the line
>> AUTOSTART="Netherlands"
save file and exit nano
11) Reboot then check with
>> ifconfig
>> route
Good luck
Comments
WDMyCloud:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.165.1.5 128.0.0.0 UG 0 0 0 tun0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
10.165.1.1 10.165.1.5 255.255.255.255 UGH 0 0 0 tun0
10.165.1.5 * 255.255.255.255 UH 0 0 0 tun0
46.166.188.226 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.165.1.5 128.0.0.0 UG 0 0 0 tun0
link-local * 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
WDMyCloud:~# ping google.com
ping: unknown host google.com
WDMyCloud:~# ping www.google.com
ping: unknown host www.google.com
Then change this line #prepend domain-name-servers 127.0.0.1; to prepend domain-name-servers 209.222.18.222, 209.222.18.218;
This is awesome, thankyou!
Hoping someone can help though, got transmission and openvpn going, checked it worked by downloading the Tor ip torrent. Problem is, after a few hours, the internet on my WD My Cloud drops out... as in nothing, can't access even to check for firmware update from WD GUI, and obviously my torrents stopped in Transmission.
Any idea how I fix/troubleshoot this??
"ERROR: cannot verify www.privateinternetaccess.com's certificate, issued by '/C=US/O=Symantec Corporation/OU=Symantec Trust Network/CN=Symantec Class 3 Secure Server CA - G4':
>> wget https://www.privateinternetaccess.com/openvpn/openvpn.zip --no-check-certificate
"cp: target '/etc/openvpn' is not a directory"
The directory /etc/openvpn does not exist on my system. I am running firmware 2.11.168. Is the openvpn directory located somewhere else?
I've followed this guide but I'm having issues with disconnects after about 3-4 minutes.
I'm getting these messages when triggering openvpn manually (the last messages indicate that I'm pressing ctrl+C, which I am not :-) )
Firmware: 02.43.10-048
Does anyone have any ideas what could be causing this? Thanks!