Linux - CentOS PPTP VPN

Reference sites:
http://poptop.sourceforge.net/dox/redhat-howto.phtml
http://poptop.sourceforge.net/yum/beta/packages/

SERVER:

Environment : CentOS 5
Kernnel: 2.6.18-8.1.8.el5

modprobe ppp-compress-18
wget http://poptop.sourceforge.net/yum/beta/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm
rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm

vi /etc/pptpd.conf

ppp /usr/sbin/pppd
option /etc/ppp/options.pptpd
debug
stimeout 30
logwtmp
localip 192.168.1.5 # Server assigned to clients
remoteip 192.168.1.201-203 # IP assigned to clients

vi /etc/ppp/options.pptpd
name My-VPN # VPN service name
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 202.106.46.151 # DNS assigned to clients
ms-dns 192.168.1.1 # DNS assigned to clients
proxyarp
debug
lock
nobsdcomp
novj
novjccomp
nologfd

vi /etc/ppp/chap-secrets
# username server_name password ip

service pptpd start

netstat -nlp # port 1723 listening

# Firewall allows port 47, 1723

CLIENT (Windows)

Control Panel >
Network Connections >
New Conection Wizard >
"Next" >
"Connect to the network at my workplace" >
"Virtuaql Private Network connection" >
[Company Name] >
[VPN server IP Address] >
"Finish"

Comments