RH 7.2 <mgetty,pppd> Win2000

Gřešek jurasekk na volny.cz
Pátek Leden 25 21:23:59 CET 2002


Dostal jsem se do situace, že potřebuji rozchodit dial-in na RH 7.2  (druhá strana Win 2000) a silně se mi nedaří. Mgetty zvedne, Connect  OK   autorizace probíhá a objeví se hláška "Řídící protokol linky ppp byl ukončen." RH 7.2 má IP 172.0.0.2, Win2000 mají IP tel.připojení 172.0.0.5. Na RH mám uživatele remote s heslem remote.
To samé heslo při každém připojení ručně vepisuju. 

Byl bych velice vděčný za jakoukoliv radu vedoucí k vyřešení tohoto problému.


Konfigurace jsou tyto:

/home/remote/.bash.profile

/usr/sbin/pppd 57600
--------------------------------------------
/etc/mgetty+sendfax/login.config

/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug 
------------------------------------------------------
/etc/ppp/chap-secrets

remote  *  remote
------------------------------------------------------------
/etc/ppp/pap-secrets

remote  *  remote 
-------------------------------------------------------
/etc/ppp/option

name bla
57600
require-pap
lock
mtu 296
proxyarp
172.0.0.2:172.0.0.5
show-password
record /var/log/pppdebug_trafic.log
logfile /var/log/pppdebug.log
debug
kdebug 7

A tady jsou logy

pppdebug.log
------------------------------------------------------------------------------
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x94122422> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x94122422> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x94122422> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x10a125e8> <pcomp> <accomp> <callback CBCP> <mrru 1614> <endpoint [MAC:00:a0:c9:d1:35:7e]>]
sent [LCP ConfRej id=0x2 <mrru 1614>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x94122422> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x10a125e8> <pcomp> <accomp> <callback CBCP> <endpoint [MAC:00:a0:c9:d1:35:7e]>]
sent [LCP ConfAck id=0x3 <asyncmap 0x0> <magic 0x10a125e8> <pcomp> <accomp> <callback CBCP> <endpoint [MAC:00:a0:c9:d1:35:7e]>]
rcvd [LCP code=0xc id=0x4 10 a1 25 e8 4d 53 52 41 53 56 35 2e 30 30]
sent [LCP CodeRej id=0x2 0c 04 00 12 10 a1 25 e8 4d 53 52 41 53 56 35 2e 30 30]
rcvd [LCP code=0xc id=0x5 10 a1 25 e8 4d 53 52 41 53 2d 31 2d 48 4f 4d 45]
sent [LCP CodeRej id=0x3 0c 05 00 14 10 a1 25 e8 4d 53 52 41 53 2d 31 2d 48 4f 4d 45]
rcvd [PAP AuthReq id=0x5 user="remote" password="remote"]      myslí, že tady je PAP autorizace OK
user remote logged in
sent [PAP AuthAck id=0x5 "Success"]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]   Tady to o něco žádá, ale nevím o co
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 172.0.0.2> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
IPCP: timeout sending Config-Requests                                No a tady už to není OK
sent [LCP TermReq id=0x4 "No network protocols running"]
Hangup (SIGHUP)
Child process pppd (charshunt) (pid 1516) terminated with signal 15
Modem hangup
Connection terminated.
Connect time 0.6 minutes.
Sent 310 bytes, received 0 bytes.


mgetty.log.ttyS1
----------------------------------------------------------------------
01/25 20:34:30 yS1  mgetty: experimental test release 1.1.26-Apr16
01/25 20:34:30 yS1   mgetty.c compiled at Jul 24 2001, 18:57:33
01/25 20:34:30 yS1   user id: 0, parent pid: 1
01/25 20:34:30 yS1   reading configuration data for port 'ttyS1'
01/25 20:34:30 yS1   reading /etc/mgetty+sendfax/mgetty.config...
01/25 20:34:30 yS1   conf lib: read: 'debug 4'
01/25 20:34:30 yS1   conf lib: read: 'speed 57600'
01/25 20:34:30 yS1   key: 'speed', type=0, flags=2, data=57600
01/25 20:34:30 yS1   key: 'switchbd', type=0, flags=1, data=0
01/25 20:34:30 yS1   key: 'direct', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'blocking', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'port-owner', type=1, flags=1, data=uucp
01/25 20:34:30 yS1   key: 'port-group', type=1, flags=1, data=uucp
01/25 20:34:30 yS1   key: 'port-mode', type=0, flags=1, data=432
01/25 20:34:30 yS1   key: 'toggle-dtr', type=3, flags=1, data=TRUE
01/25 20:34:30 yS1   key: 'toggle-dtr-waittime', type=0, flags=1, data=500
01/25 20:34:30 yS1   key: 'need-dsr', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'data-only', type=3, flags=2, data=TRUE
01/25 20:34:30 yS1   key: 'fax-only', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'modem-type', type=1, flags=1, data=auto
01/25 20:34:30 yS1   key: 'modem-quirks', type=0, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK ATS0=0Q0&D3&C1 OK 
01/25 20:34:30 yS1   key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d
\dATQ0V1H0 OK 
01/25 20:34:30 yS1   key: 'post-init-chat', type=2, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'data-flow', type=4, flags=1, data=1
01/25 20:34:30 yS1   key: 'fax-send-flow', type=4, flags=1, data=7
01/25 20:34:30 yS1   key: 'fax-rec-flow', type=4, flags=1, data=7
01/25 20:34:30 yS1   key: 'modem-check-time', type=0, flags=1, data=3600
01/25 20:34:30 yS1   key: 'rings', type=0, flags=2, data=1
01/25 20:34:30 yS1   key: 'msn-list', type=2, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'cnd-program', type=1, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c 
 
01/25 20:34:30 yS1   key: 'answer-chat-timeout', type=0, flags=1, data=80
01/25 20:34:30 yS1   key: 'autobauding', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'ringback', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'ringback-time', type=0, flags=1, data=30
01/25 20:34:30 yS1   key: 'ignore-carrier', type=3, flags=1, data=FALSE
01/25 20:34:30 yS1   key: 'issue-file', type=1, flags=1, data=/etc/issue
01/25 20:34:30 yS1   key: 'prompt-waittime', type=0, flags=1, data=500
01/25 20:34:30 yS1   key: 'login-prompt', type=1, flags=1, data=@ login: 
01/25 20:34:30 yS1   key: 'login-time', type=0, flags=1, data=240
01/25 20:34:30 yS1   key: 'fido-send-emsi', type=3, flags=1, data=TRUE
01/25 20:34:30 yS1   key: 'login-conf-file', type=1, flags=1, data=login.config
01/25 20:34:30 yS1   key: 'fax-id', type=1, flags=1, data=49 115 xxxxxxxx
01/25 20:34:30 yS1   key: 'fax-min-speed', type=0, flags=1, data=0
01/25 20:34:30 yS1   key: 'fax-max-speed', type=0, flags=1, data=14400
01/25 20:34:30 yS1   key: 'fax-server-file', type=1, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'diskspace', type=0, flags=1, data=1024
01/25 20:34:30 yS1   key: 'notify', type=1, flags=1, data=faxadmin
01/25 20:34:30 yS1   key: 'fax-owner', type=1, flags=1, data=uucp
01/25 20:34:30 yS1   key: 'fax-group', type=1, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'fax-mode', type=0, flags=1, data=432
01/25 20:34:30 yS1   key: 'fax-spool-in', type=1, flags=1, data=/var/spool/fax/incoming:/tmp
01/25 20:34:30 yS1   key: 'debug', type=0, flags=2, data=6
01/25 20:34:30 yS1   key: 'statistics-chat', type=2, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'statistics-file', type=1, flags=0, data=(empty)
01/25 20:34:30 yS1   key: 'gettydefs', type=1, flags=1, data=n
01/25 20:34:30 yS1   key: 'term', type=1, flags=0, data=(empty)
01/25 20:34:30 yS1  check for lockfiles
01/25 20:34:30 yS1   checklock: stat failed, no file
01/25 20:34:30 yS1  locking the line
01/25 20:34:30 yS1   makelock(ttyS1) called
01/25 20:34:30 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
01/25 20:34:30 yS1   lock made
01/25 20:34:31 yS1   tio_get_rs232_lines: status: RTS CTS DSR DTR
01/25 20:34:31 yS1  lowering DTR to reset Modem
01/25 20:34:31 yS1   tss: set speed to 57600 (10001)
01/25 20:34:31 yS1   tio_set_flow_control( HARD )
01/25 20:34:31 yS1   waiting for line to clear (VTIME), read: 
01/25 20:34:32 yS1  send: \dATQ0V1H0[0d]
01/25 20:34:32 yS1  waiting for ``OK''
01/25 20:34:32 yS1   got: ATQ0V1H0[0d]
01/25 20:34:32 yS1    CND: ATQ0V1H0[0d][0a]OK ** found **
01/25 20:34:32 yS1  send: ATS0=0Q0&D3&C1[0d]
01/25 20:34:32 yS1  waiting for ``OK''
01/25 20:34:32 yS1   got: [0d]
01/25 20:34:32 yS1    CND: OK[0a]ATS0=0Q0&D3&C1[0d]
01/25 20:34:32 yS1    CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
01/25 20:34:32 yS1   waiting for line to clear (VTIME), read: [0d][0a]
01/25 20:34:32 yS1   removing lock file
01/25 20:34:32 yS1  waiting...
01/25 20:35:04 yS1    select returned 1
01/25 20:35:04 yS1   checking lockfiles, locking the line
01/25 20:35:04 yS1   makelock(ttyS1) called
01/25 20:35:04 yS1   do_makelock: lock='/var/lock/LCK..ttyS1'
01/25 20:35:04 yS1   lock made
01/25 20:35:04 yS1  wfr: waiting for ``RING''
01/25 20:35:04 yS1   got: [0d][0a]RING[0d]
01/25 20:35:04 yS1    CND: RING
01/25 20:35:04 yS1   wfr: rc=0, drn=0
01/25 20:35:04 yS1    CND: check no: 'none'
01/25 20:35:04 yS1  send: ATA[0d]
01/25 20:35:04 yS1  waiting for ``CONNECT''
01/25 20:35:04 yS1   got: ATA[0d]
01/25 20:35:04 yS1    CND: OKATA[0d][0a]CONNECT ** found **
01/25 20:35:26 yS1  send: 
01/25 20:35:26 yS1  waiting for ``_''
01/25 20:35:26 yS1   got:  57600[0d]
01/25 20:35:26 yS1    CND: CONNECT 57600
01/25 20:35:26 yS1    CND: found: 57600[0a] ** found **
01/25 20:35:26 yS1   waiting for line to clear (VTIME), read: ~[ff]}#[c0]!}!} } $}"}&} } } } }%}&}0[a1]%[e8]}'}"}(}"}-}#}&}1}$}&N}3})}#} [a0][c9][d1]5}^[f9]}/~
01/25 20:35:26 yS1    looking for utmp entry... (my PID: 1512)
01/25 20:35:26 yS1   utmp + wtmp entry made
01/25 20:35:26 yS1   tio_set_flow_control( HARD )
01/25 20:35:26 yS1   print welcome banner (/etc/issue)
01/25 20:35:26 yS1   getlogname (AUTO_PPP), read:~[ff]}#[c0]!
01/25 20:35:28 yS1   input finished with '\r', setting ICRNL ONLCR
01/25 20:35:28 yS1   tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
01/25 20:35:28 yS1    login: use login config file /etc/mgetty+sendfax/login.config
01/25 20:35:28 yS1   match: user='/AutoPPP/', key=''
01/25 20:35:28 yS1   match: user='/AutoPPP/', key=''
01/25 20:35:28 yS1   match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
01/25 20:35:28 yS1   login: utmp entry: a_ppp
01/25 20:35:28 yS1    looking for utmp entry... (my PID: 1512)
01/25 20:35:28 yS1   utmp + wtmp entry made
01/25 20:35:28 yS1   calling login: cmd='/usr/sbin/pppd', argv[]='pppd auth -chap +pap login debug'
01/25 20:35:28 ##### data dev=ttyS1, pid=1512, caller='none', conn='57600', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'

01/25 20:35:28 yS1   setenv: 'CALLER_ID=none'
01/25 20:35:28 yS1   setenv: 'CALLED_ID='
01/25 20:35:28 yS1   setenv: 'CONNECT=57600'
01/25 20:35:28 yS1   setenv: 'DEVICE=ttyS1'
--
01/25 20:36:02 yS1  mgetty: experimental test release 1.1.26-Apr16
01/25 20:36:02 yS1   mgetty.c compiled at Jul 24 2001, 18:57:33
01/25 20:36:02 yS1   user id: 0, parent pid: 1
01/25 20:36:02 yS1   reading configuration data for port 'ttyS1'
01/25 20:36:02 yS1   reading /etc/mgetty+sendfax/mgetty.config...
01/25 20:36:02 yS1   conf lib: read: 'debug 4'
01/25 20:36:02 yS1   conf lib: read: 'speed 57600'
01/25 20:36:02 yS1   key: 'speed', type=0, flags=2, data=57600
01/25 20:36:02 yS1   key: 'switchbd', type=0, flags=1, data=0
01/25 20:36:02 yS1   key: 'direct', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'blocking', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'port-owner', type=1, flags=1, data=uucp
01/25 20:36:02 yS1   key: 'port-group', type=1, flags=1, data=uucp
01/25 20:36:02 yS1   key: 'port-mode', type=0, flags=1, data=432
01/25 20:36:02 yS1   key: 'toggle-dtr', type=3, flags=1, data=TRUE
01/25 20:36:02 yS1   key: 'toggle-dtr-waittime', type=0, flags=1, data=500
01/25 20:36:02 yS1   key: 'need-dsr', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'data-only', type=3, flags=2, data=TRUE
01/25 20:36:02 yS1   key: 'fax-only', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'modem-type', type=1, flags=1, data=auto
01/25 20:36:02 yS1   key: 'modem-quirks', type=0, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'init-chat', type=2, flags=1, data= \dATQ0V1H0 OK ATS0=0Q0&D3&C1 OK 
01/25 20:36:02 yS1   key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d
\dATQ0V1H0 OK 
01/25 20:36:02 yS1   key: 'post-init-chat', type=2, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'data-flow', type=4, flags=1, data=1
01/25 20:36:02 yS1   key: 'fax-send-flow', type=4, flags=1, data=7
01/25 20:36:02 yS1   key: 'fax-rec-flow', type=4, flags=1, data=7
01/25 20:36:02 yS1   key: 'modem-check-time', type=0, flags=1, data=3600
01/25 20:36:02 yS1   key: 'rings', type=0, flags=2, data=1
01/25 20:36:02 yS1   key: 'msn-list', type=2, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'get-cnd-chat', type=2, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'cnd-program', type=1, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c 
 

01/25 20:36:02 yS1   key: 'answer-chat-timeout', type=0, flags=1, data=80
01/25 20:36:02 yS1   key: 'autobauding', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'ringback', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'ringback-time', type=0, flags=1, data=30
01/25 20:36:02 yS1   key: 'ignore-carrier', type=3, flags=1, data=FALSE
01/25 20:36:02 yS1   key: 'issue-file', type=1, flags=1, data=/etc/issue
01/25 20:36:02 yS1   key: 'prompt-waittime', type=0, flags=1, data=500
01/25 20:36:02 yS1   key: 'login-prompt', type=1, flags=1, data=@ login: 
01/25 20:36:02 yS1   key: 'login-time', type=0, flags=1, data=240
01/25 20:36:02 yS1   key: 'fido-send-emsi', type=3, flags=1, data=TRUE
01/25 20:36:02 yS1   key: 'login-conf-file', type=1, flags=1, data=login.config
01/25 20:36:02 yS1   key: 'fax-id', type=1, flags=1, data=49 115 xxxxxxxx
01/25 20:36:02 yS1   key: 'fax-min-speed', type=0, flags=1, data=0
01/25 20:36:02 yS1   key: 'fax-max-speed', type=0, flags=1, data=14400
01/25 20:36:02 yS1   key: 'fax-server-file', type=1, flags=0, data=(empty)
01/25 20:36:02 yS1   key: 'diskspace', type=0, flags=1, data=1024
01/25 20:36:02 yS1   key: 'notify', type=1, flags=1, data=faxadmin


tady jsem to ustrihl kvuli delce.

-----------------------------------------------------------------

Gřešek
jurasekk na volny.cz


Další informace o konferenci Linux