How to Create a PPTP VPN on CentOS 6 64 bit

This is used for general discussion that is not necessarily server-related.
Post Reply
thefuzzymods
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jun 14, 2015 9:20 am

How to Create a PPTP VPN on CentOS 6 64 bit

Post by thefuzzymods »

Here is how to create a PPTP vpn on centos 6
Directions/Commands:

yum install nano -y
yum install wget -y
yum install perl -y
yum install ppp -y
cd /usr/local/src
wget http://poptop.sourceforge.net/yum/stabl ... x86_64.rpm
rpm -Uhv pptpd-1.4.0-1.el6.x86_64.rpm
nano /etc/pptpd.conf
remove # from localip and remote ip
nano /etc/ppp/chap-secrets
add users EX: hcmz * hcmz *
nano /etc/sysctl.conf
change net.ipv4.ip_forward = 0 TO net.ipv4.ip_forward = 1
sysctl -p
iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT
service iptables save
service iptables restart
service pptpd stop
service pptpd start
chkconfig pptpd on


Your Done
You can now connect to your vpn
The port is 1723 depending on if you edit the port
enjoy
Post Reply