OpenVPN on managed boxes

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
(Common Setup)
(Common Setup)
Line 55: Line 55:
Note that if you change the name of this file, you need to adjust the config file accordingly (the part referencing the "ca.crt" file)  
Note that if you change the name of this file, you need to adjust the config file accordingly (the part referencing the "ca.crt" file)  

Revision as of 02:29, 18 November 2010

You can use your account on our shared servers to tunnel your internet connection through your seedbox via VPN.

To achieve this, you need to setup openvpn on your local machine to connect to your seedbox.


Common Setup

Some general notes that apply to all operating Systems:

For openvpn setup, you need two files, you need the CA certificate and a configuration file, these are pretty much the same, no matter what operation system you use.

You should place both of these files in the same directory.

The general template for the configuration file is:

dev tun
proto tcp
remote 1194
ca ca.crt
verb 3
ping 10
ping-restart 60

You have to replace "yourservernamegoeshere" with the name of your sever, like "aphrodite" if you know your way around openvpn, there are other options you can add to the configuration file, consult the openvpn documentation for more information. Usually this shouldn't be necessary though Options you may consider include: daemon, log or log-append

The other file you need is a text file called ca.crt, which contains the following lines:


Note that if you change the name of this file, you need to adjust the config file accordingly (the part referencing the "ca.crt" file)

Please note that whenever you need to supply a username/password use the details from your box page on our website.


  • Download OpenVPN Gui from:
  • Create C:\Program Files\OpenVPN\config\bytesized.ovpn (or the folder you installed it in) with your favorite editor.
  • Create the file "ca.crt" in the same folder and paste the contents given above.
  • Navigate to the config folder where you added the bytesized.ovpn file, right click it and select "Start OpenVPN with this config file".
  • Enter your username and password.
  • Make sure to run 'OpenVPN GUI' as admin so you can use the VPN through your browser!

Some people do not get internet access after connecting you can try adding the following nameservers this resolves the issues in most cases: and

To do this, click on Control Panel and navigate to Network Connections, or you can click on the internet icon on the lower right. Once you connect to the VPN, it should have created a new connection.


My new connection was labeled as unidentified but it doesn't matter. Click as indicated in the above to get


Select "Internet Protocol Version 4" and click on Properties. Fill in the DNS servers like so:



We are gonna use Tunneblick to setup OpenVPN on OSX

  • Download Tunennelblick from the homepage
  • You will be welcomed by this screen

  • Press the left button which says "Install and edit sample configuration file"
  • Fill in the details from the general area, don't forget to replace your servername in there.
  • Open up a text-editor of your chose (It's best to use VIM/Nano TextEdit might want to try and safe the file as RTF) and copy/paste the contents of the ca.crt file given above save the file in /Users/yourusername/Library/Application Support/Tunnelblick/Configurations.
  • Click the icon in the sysbar and press Connect "openvpn", if everything went well you will be prompted for your username and password. Be sure to use all lowercase characters for your username.
  • You should now be connected over VPN :)


For linux, install openvpn (either with your distribuions package manager or from source if not available). For example, for ubuntu or debian do:

apt-get install openvpn

you probably want to save the configuration fila as /etc/openvpn/seedbox-vpn.conf and the certificate as /etc/openvpn/ca.crt

Now, if you want to connect through the vpn, simply run

sudo openvpn --config /etc/openvpn/seedbox-vpn.conf

(or omit the sudo and run as root if your not using sudo) This should route all traffic through your box!

Protip: You need to either be in the directory of your ca.crt when you run this command, or set an absolute location in your config file.

Protip2: Your SSH is the password needed to use this. Please make a not of this, as your Dashboard password will not work if you have changed your SSH password.

Graphical solution

sudo apt-get install network-manager-openvpn

Left click the network manager icon.

Go to "VPN-Connections" -> "Configure VPN..."

Click "Add" and select "OpenVPN"

"Connection name":  myseedbox (or what ever)

  "Gateway":        "yourserver"

  "Type":           "Password"
  "User name":      your_username
  "Password":       your_password
  "CA Certificate": "Browse to the downloaded ca file"

Then click "Advanced..." and check (leave the rest):

  [x] "Use LZO data compression"
  [x] "Use TCP connection"
Personal tools