Linux PPTPD dialup VPN installation steps
Packages for Yum based distributions are available from our Yum repository. [we Used CENTOS ] we can simply install pptpd by using yum
Copy past the following line to the command prompt and press enter
# rpm –Uvh http://poptop.sourceforge.net/yum/stable/fc7/pptp-release-current.noarch.rpm # yum –enablerepo=poptop-stable install pptpd
#yum install pptpd
Two packages will installed
pptpd.i386 0:1.3.4 – 1.fc5
ppp.i386 0:2.4.3 – 7.fc5
Thus the installation of the pptpd is over, now its time to configuration the VPN network & authentication. For this we need to edit two conf files
1, /etc/pptpd.conf
2, /etc/ppp/chap-secrets
pptpd.conf
This conf file of pptpd is seen in /etc/ here we mainly setup the local & remote IPS for the dail-up VPN
# (Recommended)
#localip 192.168.1.1
#remoteip 192.168.1.234 – 238,192.168.1.245
# or
#localip 192.168.1.234 – 238,192.168.1.245
#remoteip 192.168.1.234 – 238,192.168.1.245
chap-secrets
This file holds the username, password for a client to log in with. This file is seen in /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
admin pptpd adminpass *
admin1 pptpd admin2pass 192.168.1.236
this is the user adding method for pptpd, The client represents the login-name, The Server is pptpd, The secret is the password for the same. if we give ‘*’ with in the ipaddress section the ip will pulled randomly from the ip range given in the file pptpd.conf or we can assigne ip for the same
Then enable ip forwarding with in the server
#echo 1 > /proc/sys/net/ipv4/ip_forward
and start the service
service pptpd start
Don’t forget to enable the port 1723 for the pptpd service
VPN basic Layout












































