Operating with pap and chap is a challenge. You should try to ask pppd for
more debug info. Sometimes that helps.

I have used pap on several occasions. Some have probably done it more
gracefully than me - in the end it is the connection that counts.

In order to get pap to work you need several things to go together. You need
a machine name (yours) and a server name (the other end) which pap will use
to find the correct secret (read password).

let us first look at pppd:
I used diald, but that is of no importance. My diald call looks like this:
/usr/sbin/diald /dev/modem /dev/modem lock debug 20 -m ppp local 127.0.0.2 \
 remote 127.0.0.3 defaultroute modem crtscts \
 connect "chat -v -f /usr/local/src/diald-0.14/docknet.chat" \
 dynamic -- noipdefault name olsen

The important thing here is that pppd is given the parameter "name olsen".
This is the one argument pap needs.

I also made a /etc/ppp/options.modem which reads:
name    olsen

I am not sure about that one. It may be utterly redundant.

the last file is the pap-secrets. It reads:
#Client   Server   Secret
olsen       *      password1
rpf33       *      password2

The * in the serverfield means that I couldn't care less what name the
server has (dyn ip dialup).
I can dial two connections. The "olsen" one is the interesting.
This will make pap work.
Of cause it will show that you use chap. Thats life, but it works similar.

karsten


----------
>From: Guoliang Xue <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Setting up a Linux PPP server
>Date: Wed, Jun 21, 2000, 13:36
>

> With respect to all users on this list!
>
>     Having tried for a week without success, I am trying to get help
> from the experts here on this list.
>
>     I have two Pentium III based PCs running Red Hat Linux 62.
> One of them (say office.uvm.edu) is in my office which is connected
> to the internet. The other (say localhost.localdomain) is a stand alone
> machine at my home. Both machines have modems so that I can dial into
> office.uvm.edu from localhost.localdomain using mgetty running on
> office.uvm.edu.
>
>     I used linuxconf to create a ppp acount on office.uvm.edu, with
> user name myppp. However, my ppp connection seems to be running into
> difficulties with PAP authentication. Kppp does not leave with me too
> much useful message. The following message was returned when I was
> trying to login into the ppp acount.
>
>>Red Hat Linux release 6.2 (Zoot)
>>Kernel 2.2.14-5.0 on an i686
>>login: myppp
>>Password:
>>Last login: Wed Jun 21 16:15:10 on ttyS0
>>/usr/sbin/pppd: The remote system is required to authenticate itself
>>/usr/sbin/pppd: but I couldn't find any suitable secret (password) for it to
us.
>>Connection closed by foreign host
>
>     I have tried many combinations of the /etc/ppp/pap-secrets and
> /etc/ppp/options files on both machines and could not find a working
> combination. I am quite sure that my /etc/resolv.conf is correct
> because I have no problem dialing into an ISP account. When I tested
> with my own ppp acount, I changed the domain and nameserver in the
> file /etc/resolv.conf.
>
>     Will someone send me a sample or a pointer on the internet where
> I can find a sample? Thank you very much.
>
> Sincerely yours,
>
> Guoliang Xue
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to