The following post explains how to setup pptpd vpn on centos linux vps created on openvz server node.
On openvz node machine :
Enable these modules.
modprobe ppp_mppe
modprobe ppp_deflate
modprobe zlib_deflate
modprobe ppp_async
modprobe ppp_generic
modprobe slhc
modprobe crc_ccitt
[root@me ~]# lsmod | grep ppp
ppp_mppe 39816 0
ppp_deflate 39168 0
zlib_deflate 52760 1 ppp_deflate
ppp_async 45056 0
ppp_generic 63632 4 ppp_mppe,ppp_deflate,ppp_async
slhc 39680 1 ppp_generic
crc_ccitt 35200 1 ppp_async
Creating and enabling PPP for vps :
Replace the VEnumber with your vps id and execute the following commands on openvz server.
vzctl set [VEnumber] --features ppp:on --save
vzctl start [VEnumber]
vzctl set [VEnumber] --devices c:108:0:rw --save
vzctl exec [VEnumber] mknod /dev/ppp c 108 0
vzctl exec [VEnumber] chmod 600 /dev/ppp
/usr/sbin/pppd
You should see output like
~?}#?!}!}!} }4}"}&} } } } }%}&)Q?}4}'}"}(}"p})
Now thats done.
On openvz vps :
Install pptpd :
yum install pptpd
/etc/init.d/pptpd start
Add users :
[root@me ]# vi /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
vpn1 pptpd cyiefdxYn *
[root@me ]#
Usename is : vpn1
Password is : cyiefdxYn
now restart the pptpd service.
/etc/init.d/pptpd restart
Thats it.
You can check the logs while connecting to this server as
tail -f /var/log/messages
Thanks for sharing,get an affordable vps hosting in india at best prices with 24*7 support.
ReplyDeleteChoosing a good cpanel hosting company can be a big choice for many. There are so many things to consider when trying to find the right hosting company to work with. Some companies have a great customer support service, but there prices are through the roof. Some hosts may have dirt cheap pricing, but you can't get a hold of the support team if your life depended on it. https://onohosting.com/
ReplyDelete