{"id":99,"date":"2013-09-02T02:12:23","date_gmt":"2013-09-01T18:12:23","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=99"},"modified":"2020-05-24T16:03:05","modified_gmt":"2020-05-24T08:03:05","slug":"easiest-way-to-build-vpn-server-with-pptp","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/easiest-way-to-build-vpn-server-with-pptp\/","title":{"rendered":"Easiest Way To Build VPN Server with PPTP"},"content":{"rendered":"
OpenVZ VPS user only:<\/p>\n
<\/p>\n
Step 0<\/strong>\u00a0\u2013 Login to your server via SSH. You better login as root.<\/p>\n Step 1<\/strong>\u00a0\u2013 Now issue this first command syntax:<\/p>\n example:<\/p>\n <\/p>\n <\/p>\n Step 2<\/strong>\u00a0\u2013 Now also type this command and hit Enter<\/p>\n example:<\/p>\n <\/p>\n Step 3<\/strong>\u00a0\u2013 The final command, issue this and wait (the output a little bit long):<\/p>\n example:<\/p>\n <\/p>\n <\/p>\n That\u2019s it. Now your brand new VPN server is ready to use. You\u2019ll see default username and password at the end of the installation:<\/p>\n <\/p>\n Now you can test it on your iPhone,iPad and Android devices.<\/p>\n NOTE for OpenVZ-based VPS:<\/strong><\/p>\n You have to also issue this last command:<\/p>\n Please replace\u00a0x.x.x.x<\/tt>\u00a0with your venet0 IP address.<\/p>\n Building a VPN server using CentOS can never be easier than above method. I tested this script in a Cloud server hosted by\u00a0DigitalOcean<\/a>\u00a0which I don\u2019t know what virtualization technology used but it works like charm. For you guys who simply need a free PPTP VPN server that really works (and fast) to use in your iPhone, iPad, iPod or any Android devices, you can visit\u00a0VPNADAY.COM<\/a>. There you can get free VPN with no registration.<\/p>\n","protected":false},"excerpt":{"rendered":" What you need? A VPS or Dedicated server running CentOS 6.x Proper knowledge to use\u00a0Putty,\u00a0SSH and common Unix command Only…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[51,50],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-vpn"],"_links":{"self":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}yum install -y git<\/pre>\n
cd \/opt && git clone git:\/\/github.com\/drewsymo\/VPN.git<\/pre>\n<\/div>\n<\/div>\n
cd VPN && bash vpn-setup-vanilla.sh<\/pre>\n
iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x<\/pre>\n<\/div>\n<\/div>\n
Conclusion<\/h3>\n