Operating System - Linux
1833044 Members
2574 Online
110049 Solutions
New Discussion

Re: Chat-script before ppp-connection

 
Oliver Zimmermann
Occasional Advisor

Chat-script before ppp-connection

Hi everyone!

I am using SuSE 8.0 and have a question concerning a specific dial-in with ISDN to UUNET. The
ppp-connection is not immediately started but a script has to be executed
before. This should be done with a chat-script.

Here a short description of the script
--*Receive:
CONNECT 64000/ISDN/X75


0000KKA

Host Name:
--*Send:
lhcrew
--*Receive:
UIC:
--*Send:
My UIC
--*Receive:
Password:
--*Send:
My Password

After this the ppp-connection is started.

The exact script for dial-in in Germany under Windows is:

; Set the port settings so we can wait for
; non-gibberish text.

set port databits 7
set port parity even

transmit "+^M"

waitfor "Host Name:"
transmit "lhcrew^M"

waitfor "UIC:"
transmit $USERID, raw
transmit "^M"

waitfor "Password: "
transmit $PASSWORD, raw
transmit "^M"

waitfor "Connected to"

"raw" could be neglected. That's the information I got from the hotline.

Can anybody tell me how to write that script and where to put it? (etc/ppp?)
How to tell the system to work through that skript when establishing the
connection? Any help is appreciated!

Thanks!
Agitate, Educate, Liberate !
1 REPLY 1
Kodjo Agbenu
Honored Contributor

Re: Chat-script before ppp-connection

Hi,


I don't know anything about ISDN, but I hope you can find some ideas here to build you own configuration.

Here is my PPP architecture :

=> created "pppusers" group in /etc/group (as far as I remembre, SuSE creates it by default. May be also named "dialin").

=> set the following permissions to /usr/sbin/pppd :

-rwsr-xr-- root pppusers

chgrp pppusers /usr/sbin/pppd
chmod 4754 /usr/sbin/pppd

=> Created /etc/ppp/peers/ as follows :

ttyS0
115200
mru 552
mtu 552
noauth
user
connect "/usr/sbin/chat -v -T -f /etc/ppp/chatscript"

=> Added the following line in both /etc/ppp/pap-scripts and /etc/ppp/chap-scripts :

*

=> Created /etc/ppp/chatscript as follows :

ECHO OFF
REPORT CONNECT
ABORT 'ERROR'
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'failed.'
'' ATZ
OK ATX3L0M0
OK ATDT\T
TIMEOUT 180
CONNECT ''


To connect to my ISP, I use :

/usr/sbin/pppd connect


Good luck.

Kodjo
Learn and explain...