hi,

 now iam fully confused and gave up trying it myself.

 the problem is that iam trying to log into my server

 using PPP. for this, it requires me to start ppp on

 the server using the account 'ppp' at the server.

 so i tried to place that in  'ppp-on' script.

 it looked like :

TELEPHONE=3602096      
ACCOUNT=ppp            
PASSWORD=*****         
LOCAL_IP=0.0.0.0       
REMOTE_IP=0.0.0.0      
NETMASK=255.255.255.0  

# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD

DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer

exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS1 115200 \
        asyncmap 20A0000 escape FF \
        noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

and the dialing script looks like : 

exec chat -v                                            \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE                  \
        CONNECT         ''                              \
        ogin:--ogin:    $ACCOUNT                        \
        assword:        $PASSWORD

and the options file is :

-detach
modem
115200
lock
crtscts
defaultroute
asyncmap 0
noipdefault
noauth
user "madhup"  --->my name st the server 

now, am i doing it right?????

when i run ppp-on script, the log shows the following :

Sep 20 00:24:56 indigo modprobe: can't locate module char-major-108
Sep 20 00:24:56 indigo pppd[1239]: pppd 2.3.10 started by madhu, uid 0
Sep 20 00:24:57 indigo chat[1241]: timeout set to 3 seconds
Sep 20 00:24:57 indigo chat[1241]: abort on (\nBUSY\r)
Sep 20 00:24:57 indigo chat[1241]: abort on (\nNO ANSWER\r)
Sep 20 00:24:57 indigo chat[1241]: abort on (\nRINGING\r\n\r\nRINGING\r)
Sep 20 00:24:57 indigo chat[1241]: send (rAT^M)
Sep 20 00:24:57 indigo chat[1241]: expect (OK)
Sep 20 00:24:57 indigo chat[1241]: ^M
Sep 20 00:24:57 indigo chat[1241]: OK
Sep 20 00:24:57 indigo chat[1241]:  -- got it 
Sep 20 00:24:57 indigo chat[1241]: send (ATH0^M)
Sep 20 00:24:57 indigo chat[1241]: timeout set to 30 seconds
Sep 20 00:24:57 indigo chat[1241]: expect (OK)
Sep 20 00:24:57 indigo chat[1241]: ^M
Sep 20 00:24:57 indigo chat[1241]: ^M
Sep 20 00:24:57 indigo chat[1241]: OK
Sep 20 00:24:57 indigo chat[1241]:  -- got it 
Sep 20 00:24:57 indigo chat[1241]: send (ATDT3602096^M)
Sep 20 00:24:58 indigo chat[1241]: expect (CONNECT)
Sep 20 00:24:58 indigo chat[1241]: ^M
Sep 20 00:25:19 indigo chat[1241]: ^M
Sep 20 00:25:19 indigo chat[1241]: CONNECT
Sep 20 00:25:19 indigo chat[1241]:  -- got it 
Sep 20 00:29:15 indigo chat[1248]: send (^M)
Sep 20 00:29:15 indigo chat[1248]: expect (ogin:)
Sep 20 00:29:15 indigo chat[1248]:  LAPM^M
Sep 20 00:29:16 indigo chat[1248]: ^M
Sep 20 00:29:16 indigo chat[1248]: ^MRed Hat Linux release 5.2 (Apollo)
Sep 20 00:29:16 indigo chat[1248]: ^MKernel 2.0.36 on an i686
Sep 20 00:29:16 indigo chat[1248]: ^M
Sep 20 00:29:16 indigo chat[1248]: ^M^M
Sep 20 00:29:16 indigo chat[1248]: rapid.csa.iisc.ernet.in login:
Sep 20 00:29:16 indigo chat[1248]:  -- got it 
Sep 20 00:29:16 indigo chat[1248]: send (ppp^M)
Sep 20 00:29:16 indigo chat[1248]: expect (assword:)
Sep 20 00:29:16 indigo chat[1248]:  ppp^M
Sep 20 00:29:16 indigo chat[1248]: Password:
Sep 20 00:29:16 indigo chat[1248]:  -- got it 
Sep 20 00:29:16 indigo chat[1248]: send (*****^M)
Sep 20 00:29:16 indigo pppd[1246]: Serial connection established.
Sep 20 00:29:16 indigo pppd[1246]: Using interface ppp0
Sep 20 00:29:16 indigo pppd[1246]: Connect: ppp0 <--> /dev/ttyS1
Sep 20 00:29:20 indigo pppd[1246]: local  IP address 144.16.67.20
Sep 20 00:29:20 indigo pppd[1246]: remote IP address 144.16.67.232
Sep 20 00:49:39 indigo -- MARK --
Sep 20 00:51:59 indigo pppd[1246]: Modem hangup
Sep 20 00:51:59 indigo pppd[1246]: Connection terminated.
Sep 20 00:51:59 indigo pppd[1246]: Connect time 22.8 minutes.
Sep 20 00:51:59 indigo pppd[1246]: Sent 15559 bytes, received 8951 bytes.
Sep 20 00:52:00 indigo pppd[1246]: Exit.


and i get some send and recieve strings on the terminal itself :

Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0xfb43cb4b> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <magic 0x309d0b87> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <magic 0x309d0b87> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x20a0000> <magic 0xfb43cb4b> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfNak id=0x1 <addr 144.16.67.20>]
sent [IPCP ConfReq id=0x2 <addr 144.16.67.20> <compress VJ 0f 01>]
rcvd [CCP ConfReq id=0x1]
sent [CCP ConfAck id=0x1]
rcvd [CCP ConfRej id=0x1 <deflate 15>]
sent [CCP ConfReq id=0x2 <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfAck id=0x2 <addr 144.16.67.20> <compress VJ 0f 01>]
rcvd [CCP ConfRej id=0x2 <deflate(old#) 15>]
sent [CCP ConfReq id=0x3 <bsd v1 15>]
rcvd [CCP ConfRej id=0x3 <bsd v1 15>]
sent [CCP ConfReq id=0x4]
rcvd [CCP ConfAck id=0x4]
rcvd [IPCP ConfReq id=0x1 <addr 144.16.67.232> <compress VJ 0f 01>]
sent [IPCP ConfAck id=0x1 <addr 144.16.67.232> <compress VJ 0f 01>]
local  IP address 144.16.67.20
remote IP address 144.16.67.232
Script /etc/ppp/ip-up started (pid 1328)
Script /etc/ppp/ip-up finished (pid 1328), status = 0x0

and after some time,.......

Modem hangup
Script /etc/ppp/ip-down started (pid 1217)
Connection terminated.
Connect time 4.1 minutes.
Sent 372 bytes, received 320 bytes.
Waiting for 1 child processes...
  script /etc/ppp/ip-down, pid 1217
Script /etc/ppp/ip-down finished (pid 1217), status = 0x0


i never got any prompt at all.....

i read so many FAQ's and checked many mailing lists also, and got
confused much and cannot go further on it on my own.

so i decided to get some help from some gurus' out there.

and i hope atleast somebody will help me.

i got completely messed up with these. 


        thanks  
        Madhu P   
   



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to