{"id":101,"date":"2013-05-20T10:31:59","date_gmt":"2013-05-20T10:31:59","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=101"},"modified":"2013-05-20T10:31:59","modified_gmt":"2013-05-20T10:31:59","slug":"setup-a-pptp-vpn-in-openvz","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2013\/05\/20\/setup-a-pptp-vpn-in-openvz\/","title":{"rendered":"Setup a PPTP VPN in OpenVZ"},"content":{"rendered":"<ol>\n<li>Enable PPP module in SolusVM (Manage &gt; Controls &gt; Settings &gt; &#8220;Enable PPP&#8221;)<\/li>\n<li>Re-install with our\u00a0<em>Debian 6 w\/pptpd<\/em>\u00a0template in SolusVM (Manage &gt; Controls &gt; General &gt; &#8220;Re-install&#8221;)<\/li>\n<li>Change localip in \/etc\/pptpd.conf to your VPS IP address<\/li>\n<li>Setup username and password in \/etc\/ppp\/chap-secrets<\/li>\n<li>Run\u00a0<strong>iptables -t nat -A POSTROUTING -j SNAT &#8211;to-source YOURVPSIP<\/strong><\/li>\n<li>Run\u00a0<strong>iptables-save<\/strong><\/li>\n<li>Run\u00a0<strong>service pptpd restart<\/strong><\/li>\n<li>Run\u00a0<strong>sh \/root\/reapply.sh<\/strong><\/li>\n<\/ol>\n<p>And you&#8217;re all set. Login to you server using your VPS&#8217;s IP address and credentials. If you have any issues try the following troubleshooting steps:<\/p>\n<p>Run the following command:\u00a0<strong>cat \/dev\/ppp<\/strong><br \/>\nIf it returns &#8220;cat: \/dev\/ppp: No such device or address&#8221; then your PPP module is set correctly, if not, you need to enable it in SolusVM (or disable and re-enable it).<\/p>\n<p>Restart your VPS in SolusVM. If this allows you to connect but you do not have internet access, you&#8217;ll need to re-run the iptables commands above (steps 5 and 6).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable PPP module in SolusVM (Manage &gt; Controls &gt; Settings &gt; &#8220;Enable PPP&#8221;) Re-install with our\u00a0Debian 6 w\/pptpd\u00a0template in SolusVM (Manage &gt; Controls &gt; General &gt; &#8220;Re-install&#8221;) Change localip in \/etc\/pptpd.conf to your VPS IP address Setup username and password in \/etc\/ppp\/chap-secrets Run\u00a0iptables -t nat -A POSTROUTING -j SNAT &#8211;to-source YOURVPSIP Run\u00a0iptables-save Run\u00a0service pptpd restart [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[60],"tags":[67],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-linux","tag-pptp-vpn-openvz"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}