Install PPTP at Linux as VPN Server via Internet
Server which I will discuss here is a VPN connection through the Internet, through the tunnel (the tunnel) which will be made on the Ubuntu 8.04 Server machine.
Ok, here are step-by-step to install it :
root@server:~# apt-get install pptpd
After doing the above command, then ubuntu will download and install it, and when you finish, then proceed to change the file /etc/pptpd.conf.
root@server:~# vim /etc/pptpd.conf
localip 10.14.20.1
remoteip 10.14.20.200-220
Description:
localip: ip address of the LAN gateway
remoteip: is the ip arrange to be provided to client
After doing the above command, the next is that we must create a user account for PPTP connections, the following steps :
root@server:~# vim /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addressesudiniq pptpd 123456 10.14.20.0/24
geeks pptpd 123456 10.14.20.0/24
charles pptpd 123456 10.14.20.0/24
Description:
Client : is the name of the user account (member) that will be used for VPN connections
Server : is the name of the configuration server to be used in accordance with the contents of
the file /etc/ppp/ pptpd-options, and by default is pptpd
secret : a password that will be used for a VPN connection each member
IP addresses: the ip address for the user
Next To create pptp client that can communicate with each other, then it must be ip_forward enabled server, the following steps :
root@server:~# vim /etc/sysctl.conf
by pressing the letter I find writing #net.ipv4.conf.default.forwarding = 1 and remove the fence that marks the net.ipv4.conf.default.forwarding = 1
If the above steps have been done all please restart the pptpd server :
root@server:~# /etc/init.d/pptpd restart