Configuration PPP dial-in

Page principale

Répondre à ce message
Auteur: Yves Martin
Date:  
À: guilde
Sujet: Configuration PPP dial-in

Bonjour,

Je me bats avec mgetty/ppp depuis plusieurs heures pour réussir à configurer
une ligne de secours pour l'administration d'un site.

Pour l'instant, j'ai réussi à configurer mgetty sur le serveur Debian:

port ttyS0
        init-chat ""  \d\d\d+++\d\d\dATS7=45S0=0L1V1X4&c1 OK
        speed 38400
        debug 4
        data-only y
        statistics-chat "" AT OK ATI2 OK
        statistics-file /var/log/mgetty/statistics.ttyS0


Avec la ligne dans l'inittab:
T0:23:respawn:/sbin/mgetty -D ttyS0

Et une configuration de base PPP avec support PAP:
ms-dns 172.16.1.10
ms-dns 172.16.1.11
asyncmap 0
auth
crtscts
lock
hide-password
modem
-detach
+pap
-chap
debug
name ibiza
proxyarp
login
lcp-echo-interval 30
lcp-echo-failure 4
noipx

Mais l'authentification échoue, et je ne trouve pas de documentation
suffisamment explicite sur le contenu de /etc/ppp/pap-secrets
pour le "dial-in":

# INBOUND connections

# Every regular user can use PPP and has to use passwords from /etc/passwd
*       ibiza   ""      *
yma     ibiza   "test"  *


# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest   ibiza   "*"     -
master  ibiza   "*"     -
root    ibiza   "*"     -
support ibiza   "*"     -
stats   ibiza   "*"     -


Voici les logs de debug de mon serveur:

Apr 24 15:55:59 ibiza pppd[10798]: pppd 2.4.3 started by root, uid 0
Apr 24 15:55:59 ibiza pppd[10798]: using channel 3
Apr 24 15:55:59 ibiza pppd[10798]: Using interface ppp0
Apr 24 15:55:59 ibiza pppd[10798]: Connect: ppp0 <--> /dev/ttyS0
Apr 24 15:55:59 ibiza pppd[10798]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth
pap> <magic 0x52b6674a> <pcomp> <accomp>]

Apr 24 15:55:59 ibiza hal.hotplug[12335]: could not get mountpoint for sysfs
Apr 24 15:55:59 ibiza pppd[10798]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth
pap> <magic 0x52b6674a> <pcomp> <accomp>]

Apr 24 15:56:01 ibiza pppd[10798]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0>
<magic 0x29387618> <pcomp> <accomp> <callback CBCP>]
Apr 24 15:56:01 ibiza pppd[10798]: sent [LCP ConfRej id=0x2 <callback CBCP>]
Apr 24 15:56:01 ibiza /USR/SBIN/CRON[12414]: (root) CMD ( scp -B
crete:/var/log/php.log /var/log/crete-php.log)
Apr 24 15:56:01 ibiza pppd[10798]: rcvd [LCP ConfReq id=0x3 <asyncmap 0x0>
<magic 0x29387618> <pcomp> <accomp>]
Apr 24 15:56:01 ibiza pppd[10798]: sent [LCP ConfAck id=0x3 <asyncmap 0x0>
<magic 0x29387618> <pcomp> <accomp>]
Apr 24 15:56:01 ibiza pppd[10798]: sent [LCP EchoReq id=0x0 magic=0x52b6674a]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [LCP Ident id=0x4 magic=0x29387618
"MSRASV5.10"]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [LCP Ident id=0x5 magic=0x29387618
"MSRAS-0-NBYSO"]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [PAP AuthReq id=0x0 user="yma"
password=<hidden>]
Apr 24 15:56:02 ibiza pppd[10798]: no PAP secret found for yma
Apr 24 15:56:02 ibiza pppd[10798]: sent [PAP AuthNak id=0x0 "Login incorrect"]
Apr 24 15:56:02 ibiza pppd[10798]: PAP peer authentication failed for yma
Apr 24 15:56:02 ibiza pppd[10798]: sent [LCP TermReq id=0x2 "Authentication
failed"]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [LCP EchoRep id=0x0 magic=0x29387618]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [LCP TermReq id=0x6
")8v\030\000<\37777777715t\000\000\002\37777777663"]
Apr 24 15:56:02 ibiza pppd[10798]: sent [LCP TermAck id=0x6]
Apr 24 15:56:02 ibiza pppd[10798]: rcvd [LCP TermAck id=0x2 "Authentication
failed"]
Apr 24 15:56:02 ibiza pppd[10798]: Connection terminated.
Apr 24 15:56:02 ibiza pppd[10798]: Exit.

Est-ce que vous pouvez m'aider ? Un paramètre de ppp est-il faux ?
Comment définir un user/password utilisable par PAP,
comment utiliser les comptes systèmes ?
Merci d'avance pour votre aide
--
Yves Martin