How To Install PPTP on CentOS 7 OpenVZ

Although PPTP is not the safest VPN, it’s easy to set up and use.

Make sure PPTP is enabled on the server

Start the command below

cat / dev / ppp

If you find the following, it means it is activated

cat: / dev / ppp: No such device or address


If you do not see the message, you will need to activate it, usually from SolusVM from your host control panel. Or you can ask your host.

Log on to your server as root

Install latest EPEL release

rpm -Uhh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install PPTPD

yum-u install ppp pptpd

Set up IP ranges
Open /etc/pptpd.conf

vi / etc /pptpd.conf

And at the end, add the following 2 lines:

localip 10.10.0.1
remoteip 10.10.0.100-199

DNS Setup
Open /etc/ppp/options.pptpd

vi etc / ppp / options.pptpd

And add at the end of the file

ms-dns 8.8.8.8
ms-dns 8.8.4.4

Add username and password
Open / etc / ppp / chap secret

vi / etc / ppp / chap secret

Add the below

USERNAME pptpd PASSWORD *

Where USERNAME & # 39; is a user name of your choice and PASSWORD is & # 39; a password of your choice

Setup IPv4 Forward
Open /etc/sysctl.conf

vi / etc / sysctl.conf

Add or change the following to 1

net.ipv4.ip_forward = 1

Save and close and execute the following command to initiate the changes

sysctl -p

Configure Firewalld

Add the below to Firewalld

firewall cmd - permanent --zone = public --add-service = pptp
firewall cmd - permanent - zone = public - add-masquerade
firewall cmd reload

Start and enable at startup

Start PPTD

systemctl start pptpd

Activate at startup

systemctl enable pptpd.service

Questions or comments? Let them down!


(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “http://connect.facebook.net/en_US/all.js#xfbml=1&appId=463292747036958”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));

this post was thanks to TECH AND DEV.

Excellent website on technology, I recommend you visit their site and see some of their articles.

THANK YOU FOR VISITING US AND CAN SUBSCRIBE TO OUR NEWSLESTER TO GET THE LATEST NEWS

ORIGINAL SOURCE LINK TECH AND DEV

Leave a Reply