Académique Documents
Professionnel Documents
Culture Documents
Authentification PPP
Authentification par change de username/password. Scurit faible, mots de passe transmis en clair.
3.
A envoi une preuve B. B rpond par une valeur calcule (MD5) en fonction de lpreuve et dun secret partag. A vrifie la rponse en la comparant son propre rsultat.
Bonne scurit, les mots de passe ne sont pas transmis sur la liaison.
R1 (DCE)
R1> enable R1# conf t R1(config)# username Router2 password pwd2 R1(config)# interface s0/0/0 R1(config-if)# encapsulation ppp R1(config-if)# clock rate 128000 R1(config-if)# ip address 192.168.0.1 255.255.255.252 R1(config-if)# ppp authentication pap
R2 (DTE)
R2> enable R2# conf t R2(config)# username Router1 password pwd1 R2(config)# interface s0/0/0 R2(config-if)# encapsulation ppp R2(config-if)# ip address 192.168.0.2 255.255.255.252 R2(config-if)# ppp authentication pap R2(config-if)# ppp pap sent-username Router2 password pwd2
R1 (DCE)
R1> enable R1# conf t R1(config)# username R2 password Cisco R1(config)# interface s0/0/0 R1(config-if)# encapsulation ppp R1(config-if)# clock rate 128000 R1(config-if)# ip address 192.168.0.1 255.255.255.252 R1(config-if)# ppp authentication chap
R2 (DTE)
R2> enable R2# conf t R2(config)# username R1 password Cisco R2(config)# interface s0/0/0 R2(config-if)# encapsulation ppp R2(config-if)# ip address 192.168.0.2 255.255.255.252 R2(config-if)# ppp authentication chap
Remarques
Lauthentification a lieu aprs la phase LCP (Niveau 2). Si lauthentification choue, linterface sera dans un tat up/down . Les informations username et password sont sensibles la casse. ( A <> a ). Avec CHAP, le routeur utilise son hostname comme username par dfaut. Il peut tre modifi via la commande ppp chap hostname .
Quelques commandes
Debugs
R1# Serial0/0/0 LCP: State is Open Serial0/0/0 PPP: Phase is AUTHENTICATING Serial0/0/0 Serial0/0/0 Serial0/0/0 Serial0/0/0 IPCP: IPCP: IPCP: IPCP: O I O I CONFREQ CONFACK CONFREQ CONFACK [Closed] id 1 len 10 [Closed] id 1 len 10 [Closed] id 1 len 10 [REQsent] id 1 len 10
Serial0/0/0 PPP: Phase is FORWARDING, Attempting Forward Serial0/0/0 Phase is ESTABLISHING, Finish LCP Serial0/0/0 Phase is UP %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up R1#