9fans archive / 2001 / 10 / 643 /    prev next

From: "Russ Cox" <rsc@pla...>
Subject: Re: [9fans] adsl via pptpd
Date: Sat, 27 Oct 2001 01:26:32 -0400

On Plan 9, you should be able to do

	cd /sys/src/cmd/ip
	hget http://plan9.bell-labs.com/plan9/pptp.c >pptp.c
	mk pptp.install
	mk clean

	ip/ipconfig ether /net/ether0 10.0.0.150 255.255.255.0
	ip/pptp -P -s me@xs4all-basic-adsl:mypassword 10.0.0.138

	ip/ping 204.178.31.2

You probably need to do

	echo '	dns=1.2.3.4' >>/net/ndb
	echo -n refresh >/net/cs
	if(! test -f /srv/dns)
		ndb/dns -r

(Look in /etc/resolv.conf on Linux after doing pptp to see what
your dns server should be.)  The pptp client is almost entirely untested.
Let me know of any problems.

Russ