Next Previous Contents

7. Comment ça marche

Pour lancer la connexion, il suffit de taper ppp-on et ppp-off pour arrêter. Voici le genre de commentaires que vous pouvez voir:

[root@tavel /]# ./ppp-on   
Serial connection established. 
Using interface ppp0 
Connect: ppp0 <--> /dev/ttyS0 
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd54de4d8> <pcomp> <accomp>] 
rcvd [LCP ConfReq id=0x1 <mru 1524> <asyncmap 0xa0000> <pcomp><accomp>< 11 04 05 f4> < 13 08 01 62 72 65 73 74>]Imp>] 
rcvd [LCP ConfReq id=0x2 <mru 1524> <asyncmap 0xa0000> <pcomp> <accomp>] 
sent [LCP ConfAck id=0x2 <mru 1524> <asyncmap 0xa0000> <pcomp> <accomp>] 
sent [IPCP ConfReq id=0x1 <addr 192.168.13.11> <compress VJ 0f 01>] 
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 194.149.178.1>] 
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 194.149.178.1>] 
rcvd [CCP ConfReq id=0x1 < 11 06 00 01 01 03>] 
sent [CCP ConfRej id=0x1 < 11 06 00 01 01 03>] 
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] 
sent [IPCP ConfReq id=0x2 <addr 192.168.13.11>] 
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 
sent [CCP ConfReq id=0x2] 
rcvd [IPCP ConfNak id=0x2 <addr 194.149.178.133>] 
sent [IPCP ConfReq id=0x3 <addr 194.149.178.133>] 
rcvd [CCP ConfRej id=0x2] 
rcvd [IPCP ConfAck id=0x3 <addr 194.149.178.133>] 
local  IP address 194.149.178.133 
remote IP address 194.149.178.1 
Script /etc/ppp/ip-up started (pid 1468) 
Script /etc/ppp/ip-up finished (pid 1468), status = 0x0  
 

Pour avoir un max d'info, avant de lancer ppp-on, ouvrer un shell en tant que root et taper tail -f /var/log/messages, vous devriez y voir ça:

Nov  9 21:21:00 tavel kernel: CSLIP: code copyright 1989 Regents of the University of California  
Nov  9 21:21:00 tavel kernel: PPP: version 2.3.7 (demand dialling) 
Nov  9 21:21:00 tavel kernel: PPP line discipline registered. 
Nov  9 21:21:00 tavel kernel: registered device ppp0 
Nov  9 21:21:00 tavel pppd[1459]: pppd 2.3.8 started by root, uid 0 
Nov  9 21:21:01 tavel chat[1463]: abort on (BUSY) 
Nov  9 21:21:01 tavel chat[1463]: abort on (ERROR) 
Nov  9 21:21:01 tavel chat[1463]: abort on (NO CARRIER) 
Nov  9 21:21:01 tavel chat[1463]: abort on (NO DIALTONE) 
Nov  9 21:21:01 tavel chat[1463]: abort on (Invalid Login) 
Nov  9 21:21:01 tavel chat[1463]: abort on (Login incorrect) 
Nov  9 21:21:01 tavel chat[1463]: send (ATZ^M) 
Nov  9 21:21:01 tavel chat[1463]: expect (OK) 
Nov  9 21:21:02 tavel chat[1463]: ATZ^M^M 
Nov  9 21:21:02 tavel chat[1463]: OK 
Nov  9 21:21:02 tavel chat[1463]:  -- got it 
Nov  9 21:21:02 tavel chat[1463]: send (ATDT0496294696^M) 
Nov  9 21:21:02 tavel chat[1463]: expect (CONNECT) 
Nov  9 21:21:02 tavel chat[1463]: ^M 
Nov  9 21:21:28 tavel chat[1463]: ATDT0496294696^M^M 
Nov  9 21:21:28 tavel chat[1463]: CONNECT 
Nov  9 21:21:28 tavel chat[1463]:  -- got it 
Nov  9 21:21:28 tavel chat[1463]: send (^M) 
Nov  9 21:21:28 tavel chat[1463]: expect (ogin:) 
Nov  9 21:21:28 tavel chat[1463]:  45333/ARQ/V90/LAPM/V42BIS^M 
Nov  9 21:21:31 tavel chat[1463]: ^M 
Nov  9 21:21:31 tavel chat[1463]: 
Nov  9 21:21:31 tavel last message repeated 23 times 
Nov  9 21:21:31 tavel chat[1463]: *** DANUP ISDnet ***^M 
Nov  9 21:21:31 tavel chat[1463]: ^M 
Nov  9 21:21:31 tavel chat[1463]: ^M 
Nov  9 21:21:31 tavel chat[1463]: Login: 
Nov  9 21:21:31 tavel chat[1463]:  -- got it 
Nov  9 21:21:31 tavel chat[1463]: send (le-login-chez-le-fai^M) 
Nov  9 21:21:32 tavel chat[1463]: expect (ord:) 
Nov  9 21:21:32 tavel chat[1463]:  -- got it 
Nov  9 21:21:32 tavel chat[1463]: send (mot-de-passe-en-clair!!^M) 
Nov  9 21:21:32 tavel chat[1463]: timeout set to 5 seconds 
Nov  9 21:21:32 tavel chat[1463]: expect () 
Nov  9 21:21:32 tavel chat[1463]:  ^M 
Nov  9 21:21:32 tavel chat[1463]:     Entering PPP Mode.^M 
Nov  9 21:21:32 tavel chat[1463]:     IP address is 194.149.178.133^M 
Nov  9 21:21:32 tavel chat[1463]:     MTU is 1524.^M 
Nov  9 21:21:37 tavel chat[1463]: alarm 
Nov  9 21:21:37 tavel chat[1463]: send (^M) 
Nov  9 21:21:37 tavel pppd[1459]: Serial connection established. 
Nov  9 21:21:37 tavel pppd[1459]: Using interface ppp0 
Nov  9 21:21:37 tavel pppd[1459]: Connect: ppp0 <--> /dev/ttyS0 
Nov  9 21:21:37 tavel chat[1463]: send (^M) 
Nov  9 21:21:40 tavel kernel: PPP BSD Compression module registered 
Nov  9 21:21:40 tavel kernel: PPP Deflate Compression module registered 
Nov  9 21:21:40 tavel pppd[1459]: local  IP address 194.149.178.133 
Nov  9 21:21:40 tavel pppd[1459]: remote IP address 194.149.178.1 
 

Cette sortie est un peu différente dans le cas d'une connexion avec identification CHAP (Free).

A noter que le mot de passe de connexion PPP ainsi que le login apparaît en clair dans le fichier de log.


Next Previous Contents