[CLUE-Tech] mgetty and ppp troubles on linux dialin server
daniel
daniel at alien2thisworld.net
Wed Apr 14 18:17:36 MDT 2004
Hello all,
I am trying to set up a dialin server so I can access my network from abroad.
I have a ZOOM 14.4 external modem connected to ttyS0. I'm planning to use PAP
to authenticate. The log messages that I see in the server's
/var/log/mgetty.log.ttyS0 log file are:
---
04/14 15:41:38 yS0 mgetty: experimental test release 1.1.30-Dec16
04/14 15:41:38 yS0 check for lockfiles
04/14 15:41:38 yS0 locking the line
04/14 15:41:38 yS0 lowering DTR to reset Modem
04/14 15:41:39 yS0 send: \dATQ0V1H0[0d]
04/14 15:41:39 yS0 waiting for ``OK'' ** found **
04/14 15:41:41 yS0 send: ATS0=0Q0&D3&C1[0d]
04/14 15:41:41 yS0 waiting for ``OK'' ** found **
04/14 15:41:41 yS0 waiting...
04/14 15:45:27 yS0 wfr: waiting for ``RING''
04/14 15:45:28 yS0 send: ATA[0d]
04/14 15:45:28 yS0 waiting for ``CONNECT''
04/14 15:46:48 yS0 timeout in chat script, waiting for `CONNECT'
04/14 15:46:48 ##### failed timeout dev=ttyS0, pid=28615, caller='none',
conn='', name=''
--
04/14 15:46:48 yS0 mgetty: experimental test release 1.1.30-Dec16
04/14 15:46:48 yS0 check for lockfiles
04/14 15:46:48 yS0 checklock: stat failed, no file
04/14 15:46:48 yS0 locking the line
04/14 15:46:48 yS0 makelock(ttyS0) called
04/14 15:46:48 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/14 15:46:48 yS0 lock made
04/14 15:46:48 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
04/14 15:46:48 yS0 lowering DTR to reset Modem
04/14 15:46:49 yS0 tss: set speed to 38400 (017)
04/14 15:46:49 yS0 tio_set_flow_control( HARD )
04/14 15:46:49 yS0 waiting for line to clear (VTIME), read:
04/14 15:46:49 yS0 send: \dATQ0V1H0[0d]
04/14 15:46:49 yS0 waiting for ``OK''
04/14 15:46:49 yS0 got: ATQ0V1H0[0d]
04/14 15:46:49 yS0 CND: ATQ0V1H0[0d][0a]OK ** found **
04/14 15:46:51 yS0 send: ATS0=0Q0&D3&C1[0d]
04/14 15:46:51 yS0 waiting for ``OK''
04/14 15:46:51 yS0 got: [0d]
04/14 15:46:51 yS0 CND: OK[0a]ATS0=0Q0&D3&C1[0d]
04/14 15:46:51 yS0 CND: ATS0=0Q0&D3&C1[0d][0a]OK ** found **
04/14 15:46:51 yS0 waiting for line to clear (VTIME), read: [0d][0a]
04/14 15:46:51 yS0 removing lock file
04/14 15:46:51 yS0 waiting...
04/14 16:46:51 yS0 select returned 0
04/14 16:46:51 yS0 checking if modem is still alive
04/14 16:46:51 yS0 makelock(ttyS0) called
04/14 16:46:51 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
04/14 16:46:51 yS0 lock made
04/14 16:46:51 yS0 mdm_send: 'AT'
04/14 16:46:51 yS0 got:AT[0d]
04/14 16:46:51 yS0 mdm_command: string 'AT'
04/14 16:46:51 yS0 got:[0d][0a]OK[0d]
04/14 16:46:51 yS0 mdm_command: string 'OK' -> OK
04/14 16:46:51 yS0 waiting for line to clear (VTIME), read:
04/14 16:46:51 yS0 removing lock file
04/14 16:46:51 yS0 waiting...
---
My /etc/inittab file has the entry:
---
S0:2345:respawn:/sbin/mgetty ttyS0 /dev/ttyS0
---
My /etc/mgetty+sendfax/login.config file has:
---
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server
---
My /etc/ppp/options.server file
---
asyncmap 0
modem
crtscts
lock
auth
refuse-chap
require-pap
proxyarp
192.168.1.1:192.168.1.11
---
My /etc/mgetty+sendfax/mgetty.config has:
---
debug 4
speed 38400
port ttyS0
debug 9
data-only y
---
Does anyone have any suggestions on how I might be able to get this working?
One thing that I am unsure about is reading what init string is being used,
and whether that init string is the one suggested from my modem's manual. The
manual says to use " AT &F &C1 &D2 ". If the incorrect init string is being
used, I think I need to change that in /etc/mgetty+sendfax/mgetty.config, but
I am not sure how to make that entry.
Any ideas or suggestions are greatly appreciated :)
Thanks,
Daniel
More information about the clue-tech
mailing list