zhao-sun.com

April 9, 2004

Setup PPTP client in Linux

Filed under: Computer — blogadmin @ 10:34 pm

  • go pptpclient, and download current version of PPTP-linux 1.0.2

  • install pptp, type in

    make

  • Add following line to: /etc/ppp/chap-secrets

    “jzhao” * “password”

  • put “noauth” in the file /etc/ppp/options or at the end of the pptp line put “noauth”

  • To support mppe, download ppp-mppe from http://www.mirrors.wiretapped.net/security/network-security/pptp-linux/. To make it compile, I need to install linux source files and apply two patch files, ppp-2.4.0-mppe.patch and openssl-0.9.6-mppe.patch.

  • Read this doc http://www.schumann.cx/wavelan/. It might be helpful as well.

  • Become root, and run

    pptp vpn.724.com name jzhao

    or pptp vpn.724.com name jzhao mppe-128 mppe-stateless mtu 1492

    route add -net 192.168.0.0 netmask 255.255.0.0 ppp0

  • If being logged off, become root, then run

    route del -net 192.168.1.6 netmask 255.255.255.255 ppp0

    ifconfig ppp0 “192.168.1.45” down

    “kill pppd process”

    rm -r /var/run/pptp/

    then run step 5 again

  • For mounting to a remote server, run

    mount -v -t nfs uyr01:/yrless /yrless

    mount -v -t nfs uyr02:/integration /net/uyr02/integration

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress