So I needed to VPN into works PPTP server running on NT4 and I was sick of using Windows to do it, so I figured it was time to bite the bullet and figure out how to do it. It's basically pretty easy, the only thing that is sucky is configuring the PPP part.

  1. Install the PPTP package:

    # apt-get install pptp-linux

  2. Setup your /etc/ppp/chap-secrets file by adding these lines to it:

    DOMAIN\\username  VPNSERVER         secretpassword

  3. Try to connect

    # pptp VPNSERVER noauth name DOMAIN\\username remotename VPNSERVER

  4. Test your by running ifconfig (you should have a ppp0 interface now). Full testing is beyond the scope of this but ifconfig, ping and plog should get you a healthy way through the process. Remember though that until you setup a route and DNS all you're going to be able to do is ping, by IP address, the remote end of your PPP link.
  5. If the above test works now you can streamline it a bit by creating a file called /etc/ppp/peers/pptp and putting these lines in it:

    noauth usepeerdns name DOMAIN\\username remotename VPNSERVER

  6. And now that you've defined your PPP options in a file you don't have to put them on the CommandLine anymore, all you have to do is call the PPTP program like this:

    # pptp VPNSERVER call pptp

  7. Setup a route so you can get to the rest of the remote network. In the below example 172.16.1.4 is the IP address of the VPNSERVER.

    # route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.16.1.4

Notes:

See Also: http://tiki-lounge.com/~ben/software/pptp.html


CategorySoftware

PptpHelp (last edited 2003-06-12 23:03:53 by AdamShand)