{"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":"

What you need?<\/h2>\n
    \n
  1. A VPS or Dedicated server running CentOS 6.x<\/li>\n
  2. Proper knowledge to use\u00a0Putty<\/a>,\u00a0SSH and common Unix command<\/a><\/li>\n
  3. Only for VPS based-on\u00a0OpenVZ<\/strong>\u00a0virtualization (other skip this): please enable\u00a0TUN\/TAP<\/strong>and\u00a0PPP<\/strong>\u00a0options in your VPS control panel (e.g: SolusVM).<\/li>\n<\/ol>\n

    OpenVZ VPS user only:<\/p>\n

    \"enable<\/p>\n

    How To Install PPTP VPN on CentOS 6.x<\/h3>\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

    yum install -y git<\/pre>\n

     <\/p>\n

    \"install<\/p>\n

    Step 2<\/strong>\u00a0\u2013 Now also type this command and hit Enter<\/p>\n

    \n
    \n
    cd \/opt && git clone git:\/\/github.com\/drewsymo\/VPN.git<\/pre>\n<\/div>\n<\/div>\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

    cd VPN && bash vpn-setup-vanilla.sh<\/pre>\n

     <\/p>\n

    \"last<\/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

    \"install<\/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

    \n
    \n
    iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x<\/pre>\n<\/div>\n<\/div>\n

    Please replace\u00a0x.x.x.x<\/tt>\u00a0with your venet0 IP address.<\/p>\n

    Conclusion<\/h3>\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}]}}