Tag Archives: vpn

OpenVPN on Ubuntu

I was trying to create a openvpn server on my ubuntu vps today. Here is the instruction.

Make sure your package repositories and installed programs are up to date by issuing the following commands:

apt-get update
apt-get upgrade --show-upgraded

Begin by installing the OpenVPN software and the udev dependency with the following command:

apt-get install openvpn udev

The OpenVPN package provides a set of encryption-related tools called “easy-rsa”. These scripts are located by default in the /usr/share/doc/openvpn/examples/easy-rsa/ directory. However, in order to function properly, these scripts should be located in the /etc/openvpn directory. Copy these files with the following command:

cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn Read more »

Use VPN(pptp) on Debian 5(Linode VPS)

This post writes how to create a vpn server on Debian 5.

1. Install pptpd

# apt-get install -y pptpd

2. Edit pptpd.conf

# vim /etc/pptpd.conf

edit localip and remoteip fields

localip        192.168.92.1

remoteip    192.168.92.15-30

3. Edit /etc/ppp/pptpd-options, set ms-dns as

ms-dns    8.8.8.8

ms-dns    8.8.4.4

4. Set vpn user

# vim /etc/ppp/chap-secrets

add user as following format

user    pptpd    password    *

Read more »