Setup VPN server<\/strong><\/h3>\nInstall the required packages.<\/strong><\/p>\nyum install -y pptpd\r\n<\/code><\/pre>\nConfigure the\u00a0PPTP settings<\/strong>. The\u00a0“ppp”<\/strong>\u00a0configuration files are important for\u00a0pptpd<\/code>. First, configure\u00a0\/etc\/ppp\/options.pptpd<\/code>, as follows.\u00a0If desired, you may change the DNS servers.<\/strong><\/p>\nname pptpd\r\nrefuse-pap\r\nrefuse-chap\r\nrefuse-mschap\r\nrequire-mschap-v2\r\nrequire-mppe-128\r\nproxyarp\r\nlock\r\nnobsdcomp \r\nnovj\r\nnovjccomp\r\nnologfd\r\nms-dns 8.8.8.8\r\nms-dns 8.8.4.4\r\n<\/code><\/pre>\nNext, add users to the PPTP VPN service by editing<\/strong>\u00a0\/etc\/ppp\/chap-secrets<\/code>.\u00a0Change the username and passwords accordingly.<\/strong><\/p>\naklwebhost1 pptpd P@$$w0rd *\r\naklwebhost2 pptpd P@$$w0rd2 *\r\n<\/code><\/pre>\nConfigure the<\/strong>\u00a0pptpd<\/code>\u00a0daemon settings by editing<\/strong>\u00a0\/etc\/pptpd.conf<\/code>.\u00a0Use the following example configuration. You can change the IP address ranges if needed.<\/strong><\/p>\noption \/etc\/ppp\/options.pptpd\r\nlogwtmp\r\nlocalip 192.168.80.1\r\nremoteip 192.168.80.101-200\r\n<\/code><\/pre>\nNext, edit\u00a0<\/strong>\/etc\/sysctl.conf<\/code>\u00a0to enable IP forwarding.<\/strong><\/p>\nsed -i 's\/^net.ipv4.ip_forward.*\/net.ipv4.ip_forward = 1\/g' \/etc\/sysctl.conf\r\nsysctl -p\r\n<\/code><\/pre>\nConfigure routing with iptables.<\/strong><\/p>\niptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1723 -j ACCEPT\r\niptables -t nat -A POSTROUTING -o eth0 -s 192.168.80.0\/24 -j MASQUERADE\r\nservice iptables save\r\nservice iptables start\r\n<\/code><\/pre>\nStart the service.<\/strong><\/p>\nservice pptpd start\r\n<\/code><\/pre>\nYour PPTP server setup is complete. Now you can connect to your own PPTP VPN server from your PC or mobile device.<\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231,242,244],"manual_kb_tag":[357],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2576"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2576"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2576\/revisions"}],"predecessor-version":[{"id":2577,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2576\/revisions\/2577"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2576"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2576"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}