[ale] Linux + PPP + PAP Auth = (sigh)

Christopher Hamilton chrish at gstv.gsu.edu
Sun May 12 11:30:09 EDT 1996


On Sun, 12 May 1996, Unix Guru Dude wrote:

> I would appreciate it if you would summarize the resolution.  You never
> know when I may find myself in the same situation.
> 

To make things simpler, I added the options that I know wouldn't have to 
be changed to /etc/ppp/options. All entries are separated by newlines.

/dev/cua1
57600
defaultroute
+ua /etc/pap
noipdefault

You need "noipdefault" if your dial-up account uses dynamic IP addressing.
The aforementioned file contends are based on a 28.8K modem on COM2 (in DOS).

Next, comes the part where you need to make sure that permissions are set
corrently (that is, if others use your machine). You need two files to make
this work. /etc/pap and /etc/ppp/pap-secrets. Your PAP file requires two
lines:

username
password

Simple as that, and your PAP secrets file contains the same information,
except in a different format. By default, because of +ua /etc/pap, pppd
will look in that file, but it will also check for /etc/ppp/pap-secrets
if the dialup requires a different style of PAP authentication.

"username" * "password"

Yes, you do need to have the double quotation marks ("). Finally, you can
make a simple script that is used to dial your ISP. I use "chat" ...

#!/bin/sh

/usr/sbin/pppd connect '/usr/sbin/chat -v "" ATDT7840059 CONNECT'

I'm sure you know to substitute your own dial-up number in there. Well,
that is all I had to do to get it working. To see the progress of the 
connection, you may want to do: tail -f /var/adm/messages. You'll should
see something like:

May 11 11:21:26 bonbon pppd[116]: pppd 2.1.2 started by root, uid 0
May 11 11:21:26 bonbon chat[118]: send (ATDT7840059^M) 
May 11 11:21:26 bonbon chat[118]: expect (CONNECT) 
May 11 11:21:46 bonbon chat[118]: ATDT7840059^M^M 
May 11 11:21:46 bonbon pppd[117]: Connected...
May 11 11:21:46 bonbon chat[118]: CONNECT -- got it 
May 11 11:21:47 bonbon kernel: ppp: channel ppp0 mtu = 1500, mru = 1500
May 11 11:21:47 bonbon kernel: ppp: channel ppp0 open
May 11 11:21:47 bonbon pppd[117]: set kernel debugging level to 0
May 11 11:21:47 bonbon pppd[117]: Using interface ppp0
May 11 11:21:47 bonbon pppd[117]: Connect: ppp0 <--> /dev/cua1
May 11 11:21:54 bonbon pppd[117]: Remote message: Login Succeeded
May 11 11:21:54 bonbon pppd[117]: local  IP address 206.105.105.133
May 11 11:21:54 bonbon pppd[117]: remote IP address 206.105.105.129

That should be it. Oh, and one last thing, your kernel should be compiled
with PPP support. You may also wake to make sure that your TCP/IP programs
are also on the machine. Duh.

This should take care if it. If you need further help, feel free to contact
me. 

Chris

 ...............................................................
 Christopher L. Hamilton        Systems Administrator/Programmer
 chrish at gstv.gsu.edu            http://gstv.gsu.edu/~chrish






More information about the Ale mailing list