ppp

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


ppp examples

If you have an interesting example of how you use ppp then please submit it to the linux-ppp mailing list for inclusion on this page.

Dialling out to an ISP


I use this command to get pppd to dial my ISP from my Linux box at
home:

	pppd call apex

I have set up a file /etc/ppp/peers/apex containing this:

	ttyS0 38400 crtscts
	connect '/usr/sbin/chat -v -f /etc/ppp/chat/apex'
	defaultroute
	user paulus
	remotename apex

The chat script /etc/ppp/chat/apex looks like this:

	ABORT "NO CARRIER"
	ABORT "NO DIALTONE"
	ABORT "ERROR"
	ABORT "NO ANSWER"
	ABORT "BUSY"
	TIMEOUT 90
	REPORT CARRIER
	"" at
	OK "atw1&d0&c1"
	OK
	atdt62485791
	"~"

Note the "~" as the last expect string.  This isn't strictly necessary
but it does mean that the chat script doesn't finish until I actually
see a ppp frame from the ISP.

My ISP uses PAP authentication rather than a login dialog, which
simplifies the chat script.  I have this in my /etc/ppp/pap-secrets
file:

	# Secrets for authentication using PAP
	# client    server      secret                  IP addresses
	paulus	    apex	"notmypassword"




=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=