Posts tagged with: centos

How to Setup OpenVPN ~ Part 2

For you who haven’t read the part 1 of this post click here.

OK, in the previous post i had explained the server side configuration on how to setup the OpenVPN on CentOS. In this post I’ll try to explain on how to setup the client and test the VPN if it is working or not.
Lets get started then..

1. Make a new user for the vpn client.

useradd [username]

then give it a password. (note. password is always invisible when entered to the terminal)

passwd [username]


2. Next, we need to download the ca.crt file from the server. I’ll use WinSCP to download the file.
open your winscp and enter the needed credentials

the left window is our local files, and the right window is the server files. Point the right window to /etc/openvpn/easy-rsa/2.0/keys Continue Reading

How to Setup OpenVPN ~ Part 1

So, got a brand new VPS and want to create a VPN server in it? Then you are in a right place. In this post I’ll try to explain how to create a VPN Server with OpenVPN on a VPS with CentOS 6.x 32 bit installed.

1. Remote your vps using putty(windows) or terminal(linux) with the ip-address, username and password provided by your vps seller.

2. Install epel and remi , use command below

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh

## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh


3. Check if tun/tap is active by issuing this command

cat /dev/net/tun

If tun is active then you should see this:

cat: /dev/net/tun: File descriptor in bad state


4. Make sure you have these packages installed: Continue Reading