PPTP Debian/Ubuntu OpenVZ Setup Script

I was about to setup another PPTPd on one a new VPS that I got and i have always used a script that used to be @  http://www.putdispenserhere.com/, but the site was down so after a little investigation (google cache) I found a copy that I cleaned up for readability and saved it here for future usage.

 

Make sure that your VPS has it’s PPP module working. To check, run:

If you receive this message, your PPP module is ready for use:

To install the script, copy and paste this into your SSH client of choice:

the complete script source

 

 

10 comments for “PPTP Debian/Ubuntu OpenVZ Setup Script

  1. March 12, 2013 at 21:41

    I used to use that all the time. I was sad when the site went down a lot, I also used the Google Cache as well.

  2. Phil
    March 17, 2013 at 22:57

    What firewall settings should be used with this?
    Specifically, I could not get it to work with apf (http://www.rfxn.com/projects/advanced-policy-firewall/) enabled. With the firewall disabled, things work fine.

    Alternately, there’s some hacks to get ufw partly working. What settings are needed for pptp with ufw?

    • March 18, 2013 at 11:08

      To allow PPTP in a firewall you have to open port 1723.
      for ufw the command would be something like
      sudo ufw allow 1723
      or
      sudo ufw allow 1723/tcp

      Can’t say the apf command, I don’t have that fresh in my mind 🙂

  3. Bob
    April 11, 2013 at 02:07

    Just wanted to let you know I updated my script slightly along with the documentation.

    • April 11, 2013 at 08:29

      Really nice to see you here! I personally used that script on all the vps I use for vpn.
      Easy and quick, good to go solution.
      I’ll have to check out your updates and wee what you made different, except for changing the name 🙂

      • Anok
        June 21, 2013 at 14:33

        The script is now hosted on github, maybe you should link it here. 🙂

        • June 21, 2013 at 19:24

          If you read the reply from Bob, he updated the script and site to have better documemtation.

          I’ll probably write another post about this after some time.

  4. ahmiq
    September 24, 2013 at 16:23

    anything for centos? i have given up 🙁

  5. Mike
    November 21, 2013 at 22:03
  6. ardi
    January 17, 2014 at 09:35

    please edit
    localip 10.1.0.1
    remoteip 10.1.0.2-100

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.