A few days ago the Pax Instruments team arrived in Shenzhen to manufacture the T400. There are many challenges ahead and we look forward to handling each one successfully. One of the more frustrating challenges is circumventing the internet censorship the government inflicts on the people who live here. Without censorship circumvention the internet can be extremely slow for sites outside China and some are completely blocked. To connect with people on Facebook and Twitter it is necessary to take action.
Create a virtual server
Creating a virtual server on DigialOcean is simple. Once you have your account, go the create droplet page. DigitalOcean has a referral program where you can get $10 credit, but you may have to sign up for the $10 per month plan. I’m not sure. Please post your experiences in the comments.
Your droplet will be created shortly. When we first tried to setup our droplet DigitalOcean was having a technical problem with the Singapore servers and the process would freeze after a few second. Everything was fixed when we tried ten minutes later.
You should automatically be taken to your Droplets page. You will see listed all your droplets. You can see your droplet’s public IP address.
Setup a VPN server on the virtual server
NOTE: In the code snippets below the entire command may not appear. You may need to scroll across the snippet window to highlight and copy the entire command.
Connect to your droplet and setup the VPN server.
bash-3.2$ ssh email@example.com
On your first connection you will be asked to add the server’s RSA key to your keychain. Type “yes”.
The authenticity of host '184.108.40.206 (220.127.116.11)' can't be established. RSA key fingerprint is db:1e:78:fe:f1:bc:7d:7d:c6:e8:b1:37:ce:bb:7b:79. Are you sure you want to continue connecting (yes/no)? yes
You will be asked for your password. Enter the password Digital Ocean sent you. You can type it in or copy and paste form the email.
On first login you will be prompted to change the password for the root user. You will have to enter the original password then type a new password twice. Keep this password secret as it protect the entire server.
Changing password for root. (current) UNIX password: Enter new UNIX password: Retype new UNIX password: root@vpn:~#
At the command prompt use the wget command to download the VPN setup script from github.
root@vpn:~# wget https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh
Execute the VPN setup script. Replace “vpnuser” and “vpnpass” with the user name and password with which you would like to log into your VPN.
root@vpn:~# sudo sh setup.sh -u vpnuser -p vpnpass
The script will give you your server’s IP address, the VPN user name you selected, and the VPN password you selected. Verify the IP address is identical to the one DigitalOcean emailed you.
Detected your server external ip address: 18.104.22.168 VPN username = vpnuser password = vpnpass ============================================================ * Restarting PoPToP Point to Point Tunneling Server pptpd [ OK ] root@vpn:~#
Your personal VPN server is setup and ready to use. We’d love to hear about your experience and how you used your VPN. Please post in the comments below.
Configure VPN access on OS X
OS X integrates VPN services, so there is no need for extra software.
Now you’re ready to rock! Google “what is my ip“. If you see your server’s IP address, everything is configured correctly. Within China you can confirm this by visiting Facebook, which is normally censored.
Configure VPN access on Android
Setting up VPN on Android is about as simple as it gets.
Now you should be able to use Skype, Facebook and all the other wonderful thinks that keep you connected. Enjoy 🙂