Stuart Henderson wrote:
...
> you don't use a script for PAP, you do 'set authname USERNAME' and 'set
> authkey PASSWORD'. turn on logging, you'll need it to see what happens
> next (you'll probably need it even to just see if your password is
> accepted, unless it calls you back in which case you will also know it
> was accepted :-)
I enclose ppp.log and ppp.conf files - I'm at a loss. connection is made but
something goes wrong.
> I bet you have to install mgetty, set it up for 'AutoPPP' and set up
> incoming ppp before you get anything working. You probably will need to
> be looking for the same username,password as you gave when the callback
> comes through.
Why mgetty ? I don't need a ppp server - or I don't understand something ?
> let's see some logs so we know we've got over this hurdle before we
> start on the callback stuff <grin>
> Stuart
here goes:
-------------ppp.conf
default:
set log Phase Chat Connect Carrier LCP IPCP CCP tun command
set device /dev/cuaa1
set speed 115200
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0
OK \\dATDT\\T TIMEOUT 40 CONNECT"
pap:
set phone 6221933
set login
set openmode active
set authname barlavi
set authkey
set timeout 120
set ifaddr 10.202.2.200/0 10.202.200.253/0 255.255.0.0 0.0.0.0
delete ALL
add 0 0 HISADDR
------------end of ppp.conf
------------ppp.log
May 12 23:51:57 barlavi ppp[913]: Command: default: set device /dev/cuaa1
May 12 23:51:57 barlavi ppp[913]: Command: default: set speed 115200
May 12 23:51:57 barlavi ppp[913]: Command: default: deny lqr
May 12 23:51:57 barlavi ppp[913]: Command: default: set dial ABORT BUSY
ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40
CONNECT
May 12 23:51:57 barlavi ppp[913]: tun0: Phase: Using interface: tun0
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set phone 6221933
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set login
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set openmode active
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set authname barlavi
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set authkey
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set timeout 120
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: set ifaddr
10.202.2.200/0 10.202.200.253/0 255.255.0.0 0.0.0.0
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: delete ALL
May 12 23:51:57 barlavi ppp[913]: tun0: Command: pap: add 0 0 HISADDR
May 12 23:51:57 barlavi ppp[913]: tun0: Phase: PPP Started.
May 12 23:52:22 barlavi ppp[913]: tun0: Command: dial
May 12 23:52:22 barlavi ppp[913]: tun0: Phase: Connected!
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Expecting:
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Sending: AT^M
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Expecting: OK-AT-OK
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Wait for (5): OK
May 12 23:52:22 barlavi ppp[913]: tun0: Connect: AT^M^M
May 12 23:52:22 barlavi ppp[913]: tun0: Connect: OK
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Sending: ATE1Q0^M
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Expecting: OK
May 12 23:52:22 barlavi ppp[913]: tun0: Chat: Wait for (5): OK
May 12 23:52:22 barlavi ppp[913]: tun0: Connect: ^M
May 12 23:52:22 barlavi ppp[913]: tun0: Connect: ATE1Q0^M^M
May 12 23:52:22 barlavi ppp[913]: tun0: Connect: OK
May 12 23:52:24 barlavi ppp[913]: tun0: Phase: Phone: 6221933
May 12 23:52:24 barlavi ppp[913]: tun0: Chat: Sending: ATDT6221933^M
May 12 23:52:24 barlavi ppp[913]: tun0: Chat: Expecting: CONNECT
May 12 23:52:24 barlavi ppp[913]: tun0: Chat: Wait for (40): CONNECT
May 12 23:52:24 barlavi ppp[913]: tun0: Connect: ^M
May 12 23:52:43 barlavi ppp[913]: tun0: Connect: ATDT6221933^M^M
May 12 23:52:43 barlavi ppp[913]: tun0: Connect: CONNECT
May 12 23:52:43 barlavi ppp[913]: tun0: IPCP: Using trigger address 0.0.0.0
May 12 23:52:43 barlavi ppp[913]: tun0: LCP: State change Initial --> Closed
May 12 23:52:43 barlavi ppp[913]: tun0: LCP: State change Closed --> Stopped
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: LcpSendConfigReq
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: ACFCOMP[2]
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: PROTOCOMP[2]
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x00000000
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MRU[4] 1500
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x3e5c41ba
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: State change Stopped -->
Req-Sent
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: Received Configure Request (1)
state = Req-Sent (6)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MRU[4] 4542
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x000a0000
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[12] 0xc027
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[12] 0xc027 - not
recognised, NAK
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x8167b12c
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: SendConfigNak(Req-Sent)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MRU[4] 2048
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[12] 0xc027
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: Received Configure Ack (1)
state = Req-Sent (6)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: State change Req-Sent -->
Ack-Rcvd
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: Received Configure Request (2)
state = Ack-Rcvd (7)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MRU[4] 2048
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x000a0000
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc027
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc027 - not
recognised, NAK
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x8167b12c
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: SendConfigNak(Ack-Rcvd)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc027
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: Received Configure Request (3)
state = Ack-Rcvd (7)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MRU[4] 2048
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x000a0000
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc123
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc123 - not
recognised, NAK
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x8167b12c
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: SendConfigNak(Ack-Rcvd)
May 12 23:52:44 barlavi ppp[913]: tun0: LCP: AUTHPROTO[8] 0xc123
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Received Configure Request (4)
state = Ack-Rcvd (7)
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: MRU[4] 2048
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x000a0000
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP
0x05)
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x8167b12c
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: SendConfigAck(Ack-Rcvd)
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: MRU[4] 2048
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ACCMAP[6] 0x000a0000
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP
0x05)
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: MAGICNUM[6] 0x8167b12c
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: State change Ack-Rcvd -->
Opened
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: LcpLayerUp
May 12 23:52:45 barlavi ppp[913]: tun0: Phase: NewPhase: Authenticate
May 12 23:52:45 barlavi ppp[913]: tun0: Phase: his = CHAP, mine = none
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: CHALLENGE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Valsize = 4, Name =
"8235-377-v45"
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapOutput: RESPONSE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: FAILURE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: CHALLENGE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Valsize = 4, Name =
"8235-377-v45"
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapOutput: RESPONSE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: FAILURE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: CHALLENGE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Valsize = 7, Name =
"8235-377-v45"
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapOutput: RESPONSE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: FAILURE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: CHALLENGE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Valsize = 5, Name =
"8235-377-v45"
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapOutput: RESPONSE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: ChapInput: FAILURE
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: Received Terminate Request (1)
state = Opened (9)
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: LcpLayerDown
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: LcpSendTerminateAck.
May 12 23:52:45 barlavi ppp[913]: tun0: LCP: State change Opened -->
Stopping
May 12 23:52:47 barlavi ppp[913]: tun0: Phase: Disconnected!
May 12 23:52:47 barlavi ppp[913]: tun0: LCP: State change Stopping -->
Starting
May 12 23:52:47 barlavi ppp[913]: tun0: LCP: LcpLayerFinish
May 12 23:52:47 barlavi ppp[913]: tun0: Phase: Modem: Connect time: 25 secs:
491 octets in, 377 octets out
May 12 23:52:47 barlavi ppp[913]: tun0: Phase: total 34 bytes/sec
May 12 23:52:47 barlavi ppp[913]: tun0: Phase: NewPhase: Dead
May 12 23:52:47 barlavi ppp[913]: tun0: IPCP: Using trigger address 0.0.0.0
May 12 23:54:00 barlavi ppp[913]: tun0: Command: quit
May 12 23:54:01 barlavi ppp[913]: tun0: Phase: PPP Terminated (normal).
--------------------end of ppp.log
thanks for the help !!
--
=======================================================
Without C we'd probably be programming in PASAL or BASI
----------
Yoni Bar-Lavie (yo...@ladpc.gov.il)
GIS programmer - Jerusalem Municipality - ISRAEL