How To install a Rayservers OpenVPN Tunnel
29.06.2010 17:52 in technical-notes
Windows install
-
Download and Install latest OpenVPN GUI. Download the latest from: openvpn.net - the latest release 2.1.1+ is needed on Windows 7.
-
Download the Rayservers VPN config. You would have to download it from the link you received which looks likehttps://image.rayservers.com/ssl/vpn/123456789a.zip.
-
Double click the downloaded zip file and extract all VPN config files to:C:\Program files\OpenVPN\config\[If you cannot unzip by double click, get 7zip , install then try again]
-
Windows VISTA Users - Disable UAC
-
Windows 7 OpenVPN - after the install, visit Program Files -> OpenVPN-> bin; Right click on the openvpn-gui.exe file -> Properties -> compatibility -> Run as Windows Vista SP1 and Check Run As Administrator. Screenshot. Note, this step may not be needed on the latest releases.
-
Thats it, click on the OpenVPN icon in the task bar to start or stop the VPN. It will automatically start on reboot.
Ubunu Linux Install
-
Graphical install
-
System -> Administration -> Synaptic Package Manager - Find and install:
network-manager-openvpn-gnome, resolvconf -
Download the VPN config from URL that looks likehttps://image.rayservers.com/ssl/vpn/123456789a.zip.and extract files to a folder
-
Right click on your Network Icon (top right of screen) -> Edit Connections -> VPN add OpenVPN
configure exactly like the 123456789a.ovpn file. Make sure the cipher is set in Advanced.
-
-
Text install for automatic start on system boot. Make sure you replace 123456789a with your VPN number
-
Start a terminal: Application -> Accessories -> Terminal.
At the $ prompt do:
$ sudo apt-get install openvpn resolvconf
$ wget --no-check-certificate https://image.rayservers.com/ssl/vpn/123456789a.zip
$ sudo unzip -d /etc/openvpn 123456789a.zip
$ sudo echo AUTOSTART="123456789a" >> /etc/default/openvpn
$ sudo /etc/init.d/openvpn start
-
Mac OSX Install
-
Download Tunnelblick (recommend latest stable), save it to the Desktop.
-
Double click the zip file to extract, the program Tunnelblick appears on the Desktop
-
Move the Tunnelblick application to the Applications Folder.
-
Double click Tunnelblick to start the program. A dialog box appears to alert you that configuration files must be stored in the directory Library/openvpn/. Press [Continue] and then close the openvpn.conf configuration file and quit Tunnelblick.
-
Download the RayserversVPN config tarball from the link provided, save to desktop.
-
Extract the configutation files to Library/openvpn of the user home directory.
-
Restart Tunnelblick, you can now connect to your assigned VPN via its connect menu. The connect menu is on the Tunnelblick icon that appears on the top right of the screen on the menubar.
-
Some people have reported frequent reconnects of Tunnelblick as reported in this bug. The solution is to uncheck "Monitor connection".
Or get the Viscosity OpenVPN client and set it up per the config file. You have to set cipher AES-256-CBC in the advanced options.
Troubleshooting
For a reliable VPN, use a static IP on your PC, with static DNS and use the following name servers:
Nameserver 1: 216.10.0.1
Nameserver 2: 195.189.242.1
Nameserver 2: 195.189.242.1
VPNs reconnecting all the time, DNS failures etc are avoided by static IP and DNS enties. If you must use DHCP on your network, set the DHCP server to hand out these DNS servers listed above for all on your network. These servers will work from anywhere - on or off the VPN.
