jst got the time to work on my linux box:
anyway, i tried using the script you gave me.. still
no luck... seems that its not authenticating... here's
what i got from the log file.
May 15 14:29:54 redhat pppd[705]: pppd 2.3.7 started
by root, uid 0
May 15 14:29:55 redhat chat[707]: send
(atdt9,1234567^M)
May 15 14:29:56 redhat chat[707]: expect (CONNECT)
May 15 14:30:41 redhat pppd[705]: Serial connection
established.
May 15 14:30:41 redhat chat[707]: alarm
May 15 14:30:41 redhat chat[707]: Failed
May 15 14:30:41 redhat pppd[705]: Using interface ppp0
May 15 14:30:41 redhat pppd[705]: Connect: ppp0 <-->
/dev/ttyS0
May 15 14:30:42 redhat pppd[705]: sent [LCP ConfReq
id=0x1 <asyncmap 0x0> <magic 0x8786c061> <pcomp>
<accomp>]
May 15 14:30:45 redhat pppd[705]: sent [LCP ConfReq
id=0x1 <asyncmap 0x0> <magic 0x8786c061> <pcomp>
<accomp>]
May 15 14:30:47 redhat pppd[705]: rcvd [LCP ConfReq
id=0x40 <asyncmap 0xa0000> <auth pap> <magic
0x23caf52b> <pcomp> <accomp>]
May 15 14:30:47 redhat pppd[705]: sent [LCP ConfRej
id=0x40 <auth pap>]
May 15 14:30:47 redhat pppd[705]: rcvd [LCP ConfReq
id=0x41 <asyncmap 0xa0000> <auth pap> <magic
0x23caf52b> <pcomp> <accomp>]
May 15 14:30:47 redhat pppd[705]: sent [LCP ConfRej
id=0x41 <auth pap>]
May 15 14:30:47 redhat pppd[705]: rcvd [LCP ConfReq
id=0x42 <asyncmap 0xa0000> <auth pap> <magic
0x23caf52b> <pcomp> <accomp>]
May 15 14:30:47 redhat pppd[705]: sent [LCP ConfRej
id=0x42 <auth pap>]
May 15 14:30:47 redhat pppd[705]: rcvd [LCP ConfReq
id=0x43 <asyncmap 0xa0000> <auth pap> <magic
0x23caf52b> <pcomp> <accomp>]
May 15 14:30:47 redhat pppd[705]: sent [LCP ConfRej
id=0x43 <auth pap>]
May 15 14:30:47 redhat pppd[705]: rcvd [LCP ConfReq
id=0x44 <asyncmap 0xa0000> <auth pap> <magic
0x23caf52b> <pcomp> <accomp>]
May 15 14:30:47 redhat pppd[705]: sent [LCP ConfRej
id=0x44 <auth pap>]
May 15 14:30:48 redhat pppd[705]: Hangup (SIGHUP)
May 15 14:30:48 redhat pppd[705]: Modem hangup
May 15 14:30:48 redhat pppd[705]: Connection
terminated.
May 15 14:30:48 redhat pppd[705]: Connect time 0.2
minutes.
May 15 14:30:49 redhat pppd[705]: Exit.
--- Ronneil Camara <[EMAIL PROTECTED]> wrote:
> > -----Original Message-----
> > From: Ina Patricia Lopez
> [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 14, 2000 6:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: [plug] chat scripts
> >
> >
> > been trying to hack the chat script samples from
> the
> > man pages of pppd and chat but no luck. though i
> > found some hints.
> > im using the lines below as my /etc/ppp/chat-isp:
> >
> > ABORT "NO CARRIER"
> > ABORT "NO DIALTONE"
> > ABORT "ERROR"
> > ABORT "NO ANSWER"
> > ABORT "BUSY"
> > ABORT "Username/Password Incorrect"
> > "" "at"
> > OK "at&d0&c1"
> > OK "atdt2468135"
> > "name:" "^Umyuserid"
> > "word:" "\qmypassword"
> > "ispts" "\q^Uppp"
> > "~-^Uppp-~"
> >
> > my modem dials out connects to the ISPs modem,
> > handshakes and nothing...
> > /var/adm/messages said "connect script failed"
> > THOUGH the modem is still connected to the other
> > modem!! (the CD LED of my modem is still on)
> >
> > so i issued another "pppd call my-isp"
> >
> > and /var/adm/messages printed,
> > "User Access Verification"
> >
> > then nothing again,
> >
> > i sent another "pppd call my-isp", and
> > it prints "Username:" another "pppd call my-isp"
> > it prints "Password:"
> >
> > Seems its waiting for a carriage return after
> > dialling, something like the post terminal screen
> sa
> > windows.
> >
> > <ENTER>
> > User Access Verification
> > <ENTER>
> > Username: inapatricia <ENTER>
> > Password: secret <ENTER>
> >
> > ......
> >
> > can please help me naman oh!! if you can debug the
> > script above for me..,,
> >
> >
> > thanks a lot!!
> >
> > -ina patricia
> >
>
> Try this. This script is working fine on me. I've
> already edited it for your
> use. This should all be in one line or you can make
> use of "\" to divide
> lines. You can get rid of the comments.
>
> #--------------------------------start
> script-------------------------
> /usr/sbin/pppd connect 'chat -v "" ATDT2468135
> CONNECT "" e: username d:
> password >ppp' /dev/ttyS1 115200 debug lock crtscts
> modem defaultroute
> noauth
> #--------------------------------end
> script-------------------------
>
> NOTE: Don't put double quotes in username and
> password.
>
> This script uses com2. Just change it to where your
> modem is connected.
>
> /dev/ttyS0 - com1
> /dev/ttyS1 - com2
>
> Add this line to your /etc/syslog.conf and save it.
> Use TAB key to create
> white spaces.
> *.* /dev/tty12
>
> Send a HUP signal to syslogd. killall -HUP syslogd
>
> Fire up your this script then press Alt+F12 so you
> can see the ppp
> negotiation. From there, you can give us the errors.
> To go back to your
> console, press ALT+F1.
>
> good luck.....
>
> -
> Philippine Linux Users Group. Web site and archives
> at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to
> [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]