sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #14235
Diald-igen
Hej
Er der en eller anden der har erfaring med diald's connect script ?
Jeg har nu i en uge prøvet at få et chatscript til at virke, men trods alle de
udemærkede sslug links/mails/artikler er det ikke lykkedes, chat er åbenbart
ikke lige mig :-((
Derimod er jeg, med diald's connect nået så langt at der foretages opkald, via
isdn/Eicon Diva adapter, logger på, og bliver "hældt af" med følgende melding i
/var/log/messages:
Oct 10 08:51:59 pia diald[2769]: Trigger: tcp 192.168.0.1/1510 130.225.51.30/21
Oct 10 08:51:59 pia diald[2769]: Calling site 195.82.195.101
Oct 10 08:52:00 pia connect: Initializing Modem
Oct 10 08:52:00 pia connect: Dialing system
Oct 10 08:52:02 pia connect: Connected
Oct 10 08:52:02 pia connect: Loggin in
Oct 10 08:52:07 pia connect: Failed to log in
Oct 10 08:52:07 pia diald[2769]: Connect script failed.
Oct 10 08:52:08 pia diald[2769]: Delaying 30 seconds before clear to dial.
[root@pia /root]#
Jeg har bl.a. følgende i /diald/connect :
MODEM_INIT="ATZ0"
# The phone number to dial
PHONE_NUMBER="100177307734"
# The chat sequence to recognize that the remote system
# is asking for your user name.
# USER_CHAT_SEQ="login:"
# The string to send in response to the request for your user name.
# USER_NAME="xxxxx"
# The chat sequence to recongnize that the remote system
# is asking for your password.
# PASSWD_CHAT_SEQ="ord:"
# The string to send in response to the request for your password.
# PASSWORD="xxxxxx"
# If you do not define this then the script will assume that
# there is no command to be issued to start up the remote protocol.
PROMPT="Online:"
# Dial the remote system.
message "Dialing system"
chat \
TIMEOUT 45 \
ABORT "NO CARRIER" \
ABORT "BUSY" \
ABORT "NO DIALTONE" \
ABORT "ERROR" \
"" ATDT100177307734 \
CONNECT
Ud fra det jeg har "lært" har jeg udkommenteret linjerne med brugernavn og
password, de er jo i pap-secrets
Men jeg er sikkert langt ude på meget dybt vand, så masser af hjælp efterlyses
PS
/usr/sbin/usernetctl fungerer med ppp0 up - ppp0 down
kan det "strikkes" ind i /etc/diald.conf, som ser sådan ud lige nu:
mode ppp
connect /diald/connect
device /dev/ttyS1
speed 115200
modem
lock
crtscts
local 192.168.0.1
remote 195.82.195.101
defaultroute
include /usr/lib/diald/standard.filter
--
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 ##