sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #15570
Chatscript
Godmorgen
Hvad pokker er der galt med nedenstående chatscript:
#!/bin/sh
PHONE=100177307734
chat -v -r/var/log/ppp-chat.log \
REPORT 'CONNECT' \
REPORT 'OK' \
REPORT 'BUSY' \
REPORT 'NO CARRIER' \
REPORT 'NO DIALTONE' \
TIMEOUT 10 \
'' 'ATZ' \
OK ATDT$PHONE \
ABORT 'NO CARRIER' \
ABORT 'BUSY' \
ABORT 'NO DIALTONE' \
ABORT 'WAITING' \
TIMEOUT 20 \
CONNECT
Det giver følgende melding i /var/log/messages:
Nov 21 07:08:49 pia chat[982]: abort on (WAITING)
Nov 21 07:08:49 pia chat[982]: timeout set to 20 seconds
Nov 21 07:08:49 pia chat[982]: expect (CONNECT)
Nov 21 07:08:49 pia chat[982]: ^M
Nov 21 07:08:50 pia chat[982]: ATDT100177307734^M^M
Nov 21 07:08:50 pia chat[982]: CONNECT
Nov 21 07:08:50 pia chat[982]: -- got it
Nov 21 07:08:50 pia diald[885]: Connected to site 195.82.195.101
Nov 21 07:08:50 pia diald[885]: Running pppd (pid = 983).
Nov 21 07:08:50 pia modprobe: can't locate module char-major-108
Nov 21 07:08:50 pia pppd[983]: The remote system is required to authenticate its
elf but I
Nov 21 07:08:50 pia pppd[983]: couldn't find any secret (password) which would l
et it use an IP address.
Nov 21 07:08:50 pia diald[885]: start sl0: SIOCADDRT: File exists
Nov 21 07:08:51 pia diald[885]: Delaying 30 seconds before clear to dial.
Mit password står i både chap-secrets og pap-secrets
For en sikkerhedsskyld, diald.conf:
#!/bin/sh
mode ppp
connect /etc/ppp/chat.diald1
device /dev/ttyS1
speed 115200
modem
lock
crtscts
local 129.142.7.101
remote 195.82.195.101
defaultroute
include /usr/lib/diald/standard.filter
Dist: RH 6.1
--
mvh/gert
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
Gert Holtoft holtoft@xxxxxxxxxx
## DK-FARUM ##
Follow ups