Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PPP Server with PAP + Mgetty

0 views
Skip to first unread message

Frédérick Coutret

unread,
Dec 3, 1999, 3:00:00 AM12/3/99
to
Hi all

I try de set up my linux box ( mandrake 6.0) to use it as a PPP server
and to connect from W 95

I configure PPP with PAP Auth and Mgetty but I always have a auth error.

Here are the files i used

/etc/passwd :
ppp:x:102:102:PPP client login:/home/ppp:/usr/sbin/pppd

/home/ppp/.ppprc
lock
:192.168.1.2

/etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
* * "" *

/etc/mgetty+sendfax/mgetty.config
port ttyS0
speed 115200
debug 8
init-chat "" AT&F1&C1E0 OK ATQ0&K3&D2S0=0 OK
statistics-file /tmp/statistics.2864
modem-type data


/etc/mgetty+sendfax/login.config
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login modem debug

crtscts


When i try to connect from W95, i always have the same error :
/var/log/messages
Dec 2 19:42:19 localhost pppd[936]: pppd 2.3.7 started by root, uid 0
Dec 2 19:42:19 localhost pppd[936]: Using interface ppp0
Dec 2 19:42:19 localhost pppd[936]: Connect: ppp0 <--> /dev/ttyS0
Dec 2 19:42:22 localhost pppd[936]: PAP login failure for ppp
Dec 2 19:42:22 localhost pppd[936]: Connection terminated.
Dec 2 19:42:22 localhost pppd[936]: Connect time 0.1 minutes.
Dec 2 19:42:22 localhost pppd[936]: Exit.

But the user's passwd is OK

When i try to connect with another user which has shell access, it's OK
I think it comes from my PPP or PAP config.

I tried to compile mgetty with DAUTO_PPP option.
I add the detach option to pppd in /etc/mgetty+sendfax/login.config

Can u help me ?

Thanks


Bill Unruh

unread,
Dec 3, 1999, 3:00:00 AM12/3/99
to
In <38476F67...@wanadoo.fr> =?iso-8859-1?Q?Fr=E9d=E9rick?= Coutret <frederic...@wanadoo.fr> writes:
]Here are the files i used

]/etc/passwd :
]ppp:x:102:102:PPP client login:/home/ppp:/usr/sbin/pppd


Is this the user? Are you sure that the shadow option is in your pppd?
Are you sure you have a password in the shadow file?

]/home/ppp/.ppprc
]lock
]:192.168.1.2

]/etc/ppp/pap-secrets
]# Secrets for authentication using PAP
]# client server secret IP addresses
]* * "" *


Try putting the user name as the first entry instead of *.


]When i try to connect from W95, i always have the same error :


]/var/log/messages
]Dec 2 19:42:19 localhost pppd[936]: pppd 2.3.7 started by root, uid 0
]Dec 2 19:42:19 localhost pppd[936]: Using interface ppp0
]Dec 2 19:42:19 localhost pppd[936]: Connect: ppp0 <--> /dev/ttyS0
]Dec 2 19:42:22 localhost pppd[936]: PAP login failure for ppp
]Dec 2 19:42:22 localhost pppd[936]: Connection terminated.
]Dec 2 19:42:22 localhost pppd[936]: Connect time 0.1 minutes.
]Dec 2 19:42:22 localhost pppd[936]: Exit.

You have not switched on debugging.
daemon.* /var/log/messages
in /etc/syslog.conf
and then do
killall -1 syslogd
Also get a newer version of ppp. 2.3.7 was a bit buggy.

]But the user's passwd is OK


AD

unread,
Dec 4, 1999, 3:00:00 AM12/4/99
to
Hi, Fr?d?rick

In comp.os.linux Fr?d?rick Coutret <frederic...@wanadoo.fr> wrote:
> I try de set up my linux box ( mandrake 6.0) to use it as a PPP server

> Here are the files i used

> /etc/ppp/pap-secrets


> # Secrets for authentication using PAP
> # client server secret IP addresses
> * * "" *

Some ppp-daemons have bug which not allows you to have empty passwords
Try to use this info...

--
Andrei Uporov aka - AD -
Home page: http://oniltz.da.ru/~ad
ICQ UIN #: 40495187 _Unixes...programming,_administry...-simply_i_liKe_it..._

0 new messages