Linux Dialup VPN


Linux PPTPD dialup VPN instal­la­tion steps

Pack­ages for Yum based dis­tri­b­u­tions are avail­able from our Yum repos­i­tory. [we Used CENTOS ] we can sim­ply install pptpd by using yum

Copy past the fol­low­ing line to the com­mand 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 pack­ages will  installed

pptpd.i386 0:1.3.4 – 1.fc5
ppp.i386 0:2.4.3 – 7.fc5

Thus the instal­la­tion of the pptpd is over, now its time to con­fig­u­ra­tion the VPN net­work & authen­ti­ca­tion. 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

# (Rec­om­mended)
#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 user­name, pass­word for a client to log in with. This file is seen in /etc/ppp/chap-secrets

# Secrets for authen­ti­ca­tion using CHAP
# client        server  secret          IP addresses
admin       pptpd   admin­pass        *
admin1      pptpd   admin2pass       192.168.1.236

this is the user adding method for pptpd, The client rep­re­sents the login-name, The Server is pptpd, The secret is the pass­word for the same. if we give ‘*’ with in the ipad­dress sec­tion the ip will pulled ran­domly from the ip range given in the file pptpd.conf  or we can assigne ip for the same

Then enable ip for­ward­ing with in the server

#echo 1 > /proc/sys/net/ipv4/ip_forward

and start the service

ser­vice pptpd start

Don’t for­get to enable the port 1723 for the pptpd service

VPN basic Layout

VPN basic layout

Bookmark and Share
VN:F [1.9.3_1094]
Rat­ing: 5.0/5 (1 vote cast)
VN:F [1.9.3_1094]
Rat­ing: 0 (from 0 votes)
Linux Dialup VPN , 5.0 out of 5 based on 1 rating
  1. No comments yet.
(will not be published)