Portál AbcLinuxu, 8. května 2025 22:50

Dotaz: pppd: LCP terminated by peer (peer refused to authenticate)

2.9.2003 14:07 Leoš Literák | skóre: 74 | blog: LL | Praha
pppd: LCP terminated by peer (peer refused to authenticate)
Přečteno: 1791×
Odpovědět | Admin
Ahoj,

nedari se mi pripojit Phillips Fision 925 pres Bluetooth na GPRS. Bluetooth uz funguje, pppd nabehne a hned zase skonci, na mobilu vsak zustane text GPRS. Vypada to, jako by server chtel autentifikaci, ale to by nemel. A autentifikaci mam prece vypnutou pres noauth. Tady je debugovaci vypis pppd. predem diky za radu.

[root@leos root]# pppd call provider

pppd options in effect:
nodetach
noauth
/dev/bluetooth/rfcomm/0
115200
lock
connect /usr/sbin/chat -v -f /etc/ppp/chatscripts/provider
disconnect /usr/sbin/chat -v -f /etc/ppp/chatscripts/provider-hang
cdtrcts local
lcp-echo-interval 0
novj novjccomp ipcp-accept-local
noipdefault defaultroute usepeerdns nobsdcomp noipx
Serial connection established.
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/bluetooth/rfcomm/0
Looking for secret in /etc/ppp/pap-secrets for client leos server (null)
Looking for secret in /etc/ppp/chap-secrets for client leos server (null)
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x29a6c3ae> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP ConfRej id=0x1 <magic 0x29a6c3ae> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000>]
sent [LCP ConfAck id=0x2 <asyncmap 0xa0000>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]
LCP terminated by peer (peer refused to authenticate)
sent [LCP TermAck id=0x3]
rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Connection terminated.
Serial link disconnected.

/var/log/messages

Aug 30 11:42:56 leos hcid[980]: link_key_request (sba=F2:D5:63:ED:20:00, dba=E7:85:01:C6:08:00)
Aug 30 11:43:07 leos pppd[5387]: pppd 2.4.1 started by literakl, uid 0
Aug 30 11:43:07 leos chat[5389]: timeout set to 10 seconds
Aug 30 11:43:07 leos chat[5389]: abort on (BUSY)
Aug 30 11:43:07 leos chat[5389]: abort on (NO CARRIER)
Aug 30 11:43:07 leos chat[5389]: abort on (VOICE)
Aug 30 11:43:07 leos chat[5389]: abort on (NO DIALTONE)
Aug 30 11:43:07 leos chat[5389]: send (^MATZ^M)
Aug 30 11:43:08 leos chat[5389]: expect (OK)
Aug 30 11:43:08 leos chat[5389]: ^MATZ^M^M
Aug 30 11:43:08 leos chat[5389]: OK
Aug 30 11:43:08 leos chat[5389]: -- got it
Aug 30 11:43:08 leos chat[5389]: send (ATX1^M)
Aug 30 11:43:08 leos chat[5389]: expect (OK)
Aug 30 11:43:08 leos chat[5389]: ^M
Aug 30 11:43:08 leos chat[5389]: ATX1^M^M
Aug 30 11:43:08 leos chat[5389]: OK
Aug 30 11:43:08 leos chat[5389]: -- got it
Aug 30 11:43:08 leos chat[5389]: send (AT+CGDCONT=1,"IP","ointernet"^M)
Aug 30 11:43:08 leos chat[5389]: expect (OK)
Aug 30 11:43:08 leos chat[5389]: ^M
Aug 30 11:43:08 leos chat[5389]: AT+CGDCONT=1,"IP","ointernet"^M^M
Aug 30 11:43:08 leos chat[5389]: OK
Aug 30 11:43:08 leos chat[5389]: -- got it
Aug 30 11:43:08 leos chat[5389]: send (ATD*99***1#^M)
Aug 30 11:43:09 leos chat[5389]: expect (CONNECT)
Aug 30 11:43:09 leos chat[5389]: ^M
Aug 30 11:43:15 leos chat[5389]: ATD*99***1#^M^M
Aug 30 11:43:15 leos chat[5389]: CONNECT
Aug 30 11:43:15 leos chat[5389]: -- got it
Aug 30 11:43:15 leos pppd[5387]: Serial connection established.
Aug 30 11:43:15 leos pppd[5387]: Using interface ppp0
Aug 30 11:43:15 leos pppd[5387]: Connect: ppp0 <--> /dev/bluetooth/rfcomm/0
Aug 30 11:43:15 leos /etc/hotplug/net.agent: assuming ppp0 is already up
Aug 30 11:43:16 leos pppd[5387]: LCP terminated by peer (peer refused to authenticate)
Aug 30 11:43:19 leos pppd[5387]: Connection terminated.
Aug 30 11:43:19 leos chat[5400]: send (+++ath^M)
Aug 30 11:43:19 leos /etc/hotplug/net.agent: NET unregister event not supported
Aug 30 11:43:20 leos pppd[5387]: Serial link disconnected.
Aug 30 11:43:20 leos pppd[5387]: Exit.

Zakladatel tohoto portálu. Twitter, LinkedIn, blog, StackOverflow
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

2.9.2003 15:53 ivok
Rozbalit Rozbalit vše pppd: LCP terminated by peer (peer refused to authenticate)
Odpovědět | | Sbalit | Link | Blokovat | Admin
Looking for secret in /etc/ppp/pap-secrets for client leos server (null)
Looking for secret in /etc/ppp/chap-secrets for client leos server (null)
... a o kousek dál se dohodnete na PAP, ne? Volba noauth říká, že vy nechcete, aby se auntentizovala (uf, no doplňte to správné slovo :-), ale druhá strana chce vědět, kdo jste vy...
2.9.2003 16:00 Leoš Literák | skóre: 74 | blog: LL | Praha
Rozbalit Rozbalit vše pppd: LCP terminated by peer (peer refused to authenticate)
no a to me zarazi, GPRS je prece bez hesla, ne? tak proc to po mne chce autentifikaci? chyba v mem nastaveni? nebo je treba neco nastavit v mobilu?
Zakladatel tohoto portálu. Twitter, LinkedIn, blog, StackOverflow
30.9.2003 08:36 Michal 'Mišú' Úradník | skóre: 9
Rozbalit Rozbalit vše pppd: LCP terminated by peer (peer refused to authenticate)
Skus do upravit subor /etc/ppp/peers/provider:
/dev/ttyS0 38400
cdtrcts
nodetach
noauth
connect '/usr/sbin/chat -v -f /etc/chatscripts/provider'
disconnect '/usr/sbin/chat -v -f /etc/chatscripts/provider-hang'
defaultroute
usepeerdns
lock 
A subor /etc/chatscripts/provider:
TIMEOUT 15
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' 
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER'
'' ATZ
'OK' AT+CGDCONT=1,"IP","ointernet";
OK-AT-OK "ATD*99***1#"
CONNECT \d\c
A potom uz len pppd call provider (ak sa nepletiem). Konfiguracia plati pre oskartu.
30.9.2003 08:39 Michal 'Mišú' Úradník | skóre: 9
Rozbalit Rozbalit vše pppd: LCP terminated by peer (peer refused to authenticate)
Jo a telefon je siemens mt50 pre ine sa mozu lisit AT prikazy, hlavne ATD...

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.