apt-get install pptpd
nano /etc/pptpd.confand add the following lines:
localip 10.0.0.1Next, you should setup authentication for PPTP by adding users and passwords:
# Secrets for authentication using CHAPWhere client is the username, server is type of service – pptpd for our example, secret is the password, and IP addresses specifies which IP address may authenticate. By setting ‘*’ in IP addresses field, you specify that you would accept username/password pair for any IP.
# client server secret IP addresses
vpnuser pptpd password *
ms-dns 220.127.116.11After this restart PPTPD:
service pptpd restart
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
It looks like you're new here. If you want to get involved, click one of these buttons!
Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!