Instead of using OpenVPN, use SSH tunneling. This works better and is much easier to setup ans is also encrypted. One additional bonus is that unlike OpenVPN, if the connection is closed, you will no longer be able to browse the internet. With OpenVPN, if the connection is closed you will automatically be put back on your own network and be allowed to continue browsing without warning. Nothing needs to be changed on your server.
If you run Windows on your computer:
- Download PuTTY (if you don't have it already)
- In the Category side panel, go Connection>SSH and check Enable Compression
- In the Category side panel, go Connection>SSH>Tunnels and enter a number in the source port field. I typically use 3456. Then select Dynamic and finally click Add.
- In the Category side panel, go back to Session. Enter your username@hostname (replacing your_username with your username on the system and hostname with the domain or IP address of your server) in the hostname field and then save the session.
- Click Open and then enter your password.
- Download Firefox if you don't already have it.
- In Firefox, go Firefox>Options and then Advanced>Network>Settings.
- Select Manual proxy configuration and then delete everything in all of the editable boxes.
- Enter localhost as the SOCKS Host and enter 3456 (or whatever port you used in step 3) as the Port.
- Click Ok for both open Firefox configuration windows.
- Enter about:config in Firefox's location bar and press enter. Tell Firefox that you will be careful.
- Search for network.proxy.socks_remote_dns and double click on it to set it to true.
If you run Linux or Mac OS on your home computer:
- Open a terminal and type ssh -CD:3456 your_username@hostname (replacing your_username with your username on the system and hostname with the domain or IP address of your server) and press enter.
- Download Firefox if you don't already have it.
- In Firefox, go Edit>Preferences and then Advanced>Network>Settings.
- Select Manual proxy configuration and then delete everything in all of the editable boxes.
- Enter localhost as the SOCKS Host and enter 3456 (or whatever port you used in step 3) as the Port.
- Click Ok for both open Firefox configuration windows.
- Enter about:config in Firefox's location bar and press enter. Tell Firefox that you will be careful.
- Search for network.proxy.socks_remote_dns and double click on it to set it to true.
When you are done, close PuTTY or the terminal and set Firefox to use No proxy instead of the manual one you configured. Next time you want to connect, just run your saved PuTTY session or run the command line command and set Firefox to use the Manual proxy configuration option. Firefox will remember your proxy settings.