{"id":169,"date":"2015-04-27T13:19:48","date_gmt":"2015-04-27T13:19:48","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=169"},"modified":"2025-04-22T13:06:24","modified_gmt":"2025-04-22T07:36:24","slug":"pptp","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/pptp\/","title":{"rendered":"How to install and configure PPTP on cPanel server."},"content":{"rendered":"\n<p>PPTP &#8211; Point-to-Point Tunneling Protocol &#8211; extends the Point-to-Point Protocol (PPP) standard for traditional dial-up networking. Which enables the secure transfer of data from a remote client to a private enterprise server by creating a virtual private network (VPN) across TCP\/IP-based data networks. PPTP supports on-demand, multi-protocol, virtual private networking over public networks, such as the Internet.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"pptp-and-pptpd-installation-on-cpanel-servers\"><span id=\"PPTP_and_PPTPD_insatallation_on_cpanel_servers\" class=\"mw-headline\">PPTP and PPTPD installation on cpanel servers<\/span><\/h2>\n\n\n<p>1) Install PPP.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install ppp\n<\/pre>\n\n\n\n<p>2) Download the appropriate RPM from <a class=\"external text\" href=\"http:\/\/poptop.sourceforge.net\/yum\/stable\/\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a> (select the required version of your centOS version).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget <a class=\"external free\" href=\"http:\/\/poptop.sourceforge.net\/yum\/stable\/rhel5\/x86_64\/pptpd-1.3.4-2.rhel5.x86_64.rpm\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/poptop.sourceforge.net\/yum\/stable\/rhel5\/x86_64\/pptpd-1.3.4-2.rhel5.x86_64.rpm<\/a> \n<\/pre>\n\n\n\n<p>3)Install the RPM.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rpm -ivh pptpd-1.3.4-2.rhel5.x86_64.rpm\n<\/pre>\n\n\n\n<p>4) Edit the file \/etc\/pptd.conf.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vim  \/etc\/pptpd.conf\n<\/pre>\n\n\n\n<p>Add the following lines to the files at the end.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">localip \txx.xx.xx.xx\nremoteip\txx.xx.xx.xx\n<\/pre>\n\n\n\n<p>5) Second configuration file to be edited is \/etc\/ppp\/options.pptpd<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vim \/etc\/ppp\/options.pptpd\n<\/pre>\n\n\n\n<p>Set DNS at ms-dns lines<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ms-dns 8.8.8.8\nms-dns 8.8.4.4\n<\/pre>\n\n\n\n<p>6) Edit the file \/etc\/ppp\/chap-secrets to add users.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vim \/etc\/ppp\/chap-secrets\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">#secrets for authenticaion using CHAP\n#client\tserver\t\tsecret\t\tIP addresses\nusername pptpd password *\n<\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"firewall-configuration\"><span id=\"Firewall_configuration\" class=\"mw-headline\">Firewall configuration<\/span><\/h2>\n\n\n<p>7) Edit \/etc\/sysctl.conf .<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vim \/etc\/sysctl.conf \n<\/pre>\n\n\n\n<p>Enable IP forwarding by editing the following line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">net.ipv4.ip_forward=1\n\n<\/pre>\n\n\n\n<p>8) Load in sysctl settings from the file \/etc\/sysctl.conf<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/sbin\/sysctl -p\n\n<\/pre>\n\n\n\n<p>9) Configuring IPtables for NAT<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/sbin\/service iptables start\n\/sbin\/iptables -t nat -A POSTROUTING -o eth0 -s xx.xx.xx.xx\/xx -j MASQUERADE\nservice iptables save        \nRestart the pptp service\n\/sbin\/sevice pptpd start\nckhkconfig pptpd on\ncsf -r\n<\/pre>\n\n\n\n<p>That&#8217;s all&nbsp;!!<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-d1cf67e1 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">\u00a0Your Clients Deserve Premium Hosting<\/h3><p class=\"uagb-cta__desc\">Deliver blazing-fast, secure hosting under your brand. We handle servers; you build loyalty. Includes free migrations and daily backups.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/reseller-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>PPTP &#8211; Point-to-Point Tunneling Protocol &#8211; extends the Point-to-Point Protocol (PPP) standard for traditional dial-up networking. Which enables the secure transfer of data from [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8632,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/How-to-install-and-configure-PPTP-on-cPanel-server.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":0,"uagb_excerpt":"PPTP &#8211; Point-to-Point Tunneling Protocol &#8211; extends the Point-to-Point Protocol (PPP) standard for traditional dial-up networking. Which enables the secure transfer of data from [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":6,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":8673,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/169\/revisions\/8673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8632"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}