What is OpenVPN
OpenVPN is an open
source secured point to point or site to site VPN management which helps the
users to connect the network more securely. OpenVPN needs third party client to
connect with network. It supports most of the OS including Android & iOS. Also it has individual clients corresponding to the OS. OpenVPN needs a server to connect with. We
are going to setup OpenVPN server in Debian based OpenVZ VPS.
Pre-requrements:
We need a Debian 32 bit installed OS in in VPS to setup OpenVPN. I
prefer Debian 32 bit OS because it consumes less RAM than other OS as well as
64 bit OS. You can even install this if your VPS has only 128 MB RAM (256 brust
RAM recommended). Also, Debian 32 bit OS can handle much more bandwidth than 64
bit. It's quite stable for OpenVPN server.
Setting up OpenVPN:
1. At first, make sure that TUN/TAP and PPP module are enabled
in your VPS. Run this command to check:
cat /dev/net/tun
if you see this message " cat: /dev/net/tun: File descriptor in bad state
" then TUN/TAP is enabled in your system.
if you see other than this message like " cat:
/dev/ppp: No such device or address, Permission denied" or anything else,
you have to enable TUN/TAP and PPP module at first. You can enable this from your VPS control panel.
2. Before installing OpenVPN, we should update & upgrade
the existing modules. Execute the following commands
apt-get update
apt-get upgrade
apt-get upgrade
3. Now, download OpenVPN server to your VPS (Debian 32 bit
only)
wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-Debian6.i386.deb
4. Install the downloaded server
dpkg -i openvpn-as-1.8.5-Debian6.i386.deb
5. After installing, you should see an admin panel link like
this:
https://<your-vps-ip-here>:943/admin
6. Now, setup a password for OpenVPN admin panel.
passwd openvpn
7. Done. Now access the admin panel (which we got from step
5)
username: openvpn
password: your chosen password from step 6
password: your chosen password from step 6
Here you can see the server stats, user logs and their
usages and much more. You can control OpenVPN server from here.
8. Now, you need a client corresponding to your OS. Just
visit https://<your-vps-ip-here>:943
and download the client.
Limitation: Currently, only two users can connect
simultaneously in your server. If you want more, you need to buy license from here https://openvpn.net/index.php/access-server/pricing.html
Enjoy high speed VPN.
No comments:
Post a Comment