On Sat, Oct 23, 1999 at 06:17:27PM +0200, Primo? Hrvatin wrote:
> 
> ?ivjo!
> Morda kdo ve, kako se vzpostavi PPP povezavo s callbackom iz Win NT. Sem
> ?e nekaj na?el na internetu, vendar mi po tisth navodilih, ki opisujejo
> povezovanje z MS CHAP avtentifikacijo (paketki z <auth chap 80>) ne
> deluje. Morda tudi zato, ker se meni v paketkih ka?e <auth chap m$oft>,
> vendar je to verjetno eno in isto. 
> Popatchal sem tudi pppd, ki sedaj vsebuje novo opcijo 'callback' in
> podporo za MS CBCP (Callback Control Protocol), pa mi pri povezovanju
> zavrne zgornji tip avtentifikacije in hangupa modem. Uporabljam RedHat
> 6.0 in pppd 2.3.10 s patchom.
> 
> Pomo? mo?no za?eljena!
> 
> Lp,
> 
> Primo?

Lani sem imel podobne probleme s callbackom, ki pa sem jih resu..
tole je moj 'callback' fajl, nafilan iz useneta in mojih vprasanj..
                                mare


-- 

                ==---------------------------------------==
                      Marko Mlakar - [EMAIL PROTECTED]
                ===-------------------------------------===
                PGP Public key: finger [EMAIL PROTECTED]
From 
news.siol.net!newsfeed01.univie.ac.at!01-newsfeed.univie.ac.at!newsmaster-01.vbs.at!newshunter.cosy.sbg.ac.at!newspump.monmouth.com!newspeer.monmouth.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!portc02.blue.aol.com!prodigy.com!prodigy.com!davidsen
 Wed Jun  3 23:25:10 1998
Path: 
news.siol.net!newsfeed01.univie.ac.at!01-newsfeed.univie.ac.at!newsmaster-01.vbs.at!newshunter.cosy.sbg.ac.at!newspump.monmouth.com!newspeer.monmouth.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!portc02.blue.aol.com!prodigy.com!prodigy.com!davidsen
From: [EMAIL PROTECTED] (bill davidsen)
Newsgroups: comp.os.linux.networking,comp.os.linux.setup,comp.os.linux.questions
Subject: Re: PPP script for client callback with PAP/CHAP
Date: 2 Jun 1998 19:14:52 GMT
Organization: TMR Associates, Schenectady NY
Lines: 125
Message-ID: <6l1ivc$6g44$[EMAIL PROTECTED]>
References: <6ksqtq$hbm$[EMAIL PROTECTED]>
NNTP-Posting-Host: darkstar.prodigy.com
X-Post-Time: 2 Jun 1998 19:14:52 GMT
X-Auth-User: 000000000/b5797384315eb6f0
X-Problems-To: [EMAIL PROTECTED]
Originator: [EMAIL PROTECTED]
Xref: news.siol.net comp.os.linux.networking:86468 comp.os.linux.setup:125805 
comp.os.linux.questions:3292

In article <6ksqtq$hbm$[EMAIL PROTECTED]>,
Marko Mlakar  <[EMAIL PROTECTED]> wrote:

| I have a problem .. :) The problem is that i don't know how to make
| a ppp script that will estamblish a connection with a NT RAS PPP server
| that has callback. It wouldn't be the problem if connection was
| clear text, but since it uses PAP/CHAP i don't know how to create a
| script that will answer to the call and make ppp connection. 
| I tried to use the callback with Win95 and it works great ..

If you must flame me for reposting this, please do it by mail. I'm tired
of seeing this question.

Note: this assumes that you have ppp-2.3.4 or later installed and the
kernel patches compiled and installed (if needed).


================> repost <================

From [EMAIL PROTECTED]  Thu Apr 16 20:37:32 1998
Received: from clmout1-int.prodigy.com (clmout1-int.prodigy.com [192.168.254.55]) 
        by darkstar.prodigy.com (8.7.5/8.6.9) with ESMTP id UAA02727
        for <[EMAIL PROTECTED]>; Thu, 16 Apr 1998 20:37:31 -0400
Received: from outland.tmr.com ([EMAIL PROTECTED] [192.168.253.115])
        by clmout1-int.prodigy.com (8.8.5/8.8.5) with ESMTP id UAA37332;
        Thu, 16 Apr 1998 20:35:30 -0500
Received: (from davidsen@localhost)
        by outland.tmr.com (8.7.5/8.7.3) id UAA00252; Thu, 16 Apr 1998 20:08:08 -0400
Date: Thu, 16 Apr 1998 20:08:08 -0400
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Newsgroups: comp.os.linux.networking
Subject: RAS callback for Linux - Solved!!
Organization: TMR Associates, Schenectady NY
From: [EMAIL PROTECTED] (bill davidsen)
Status: OR

With a bit of critical information from Steve Harris <[EMAIL PROTECTED]>
we have a solution to the RAS callback problem. He put me on to
this patch which makes the ppp-2.3.4 answer the returing call:

diff -r pppstd/ppp-2.3.4/pppd/lcp.c ppp-2.3.4/pppd/lcp.c
269c269
<     ppp_recv_config(unit, PPP_MRU, 0xffffffff,
---
>     ppp_recv_config(unit, PPP_MRU, 0x00000000,


That said, here is my small contribution, two ppp scripts which
actually initiate the call and accept the callback, and a short
shell script which runs the two pppd scripts and will reinitiate
the connection if it drops.

This one initiates the connect
================================================================
# hardware settings
modem
crtscts
lock
asyncmap 0
defaultroute
# modem selection
/dev/modem
57600
# IP info - accept any old IP addresses we're offered
192.168.14.165:192.168.14.118
ipcp-accept-local
ipcp-accept-remote
# validation info
#   this is my name as known to the remote server
name davidsen
#   this is an arbitrary name to match the entry in the
#   chap-secrets file
remotename ras
# run this whole script, no detach
-detach
# ask for callback, wait for callback req
#   callback number, don't forget a 9 or something if needed
callback 555-1234
# communications settings
connect '/etc/ppp/bin/chat -v \
        ABORT "BUSY" \
        ABORT "NO ANSWER" "" \
        "AT&F1E0Q0" OK \
        ATDT5554321 CONNECT'


This is the pppd script which accepts the callback. Note that
instead of setting the modem to answer on a ring, such as S0=1, I
wait for the RING message and force an answer inthe manner of mgetty
================================================================
# hardware settings
modem
crtscts
lock
asyncmap 0
defaultroute
# validation info
#   this is my name on their system
name davidsen
#   this is their name (arbitrary) in my chap-secrets file
remotename ras
# let them pick the IP addresses
ipcp-accept-local
ipcp-accept-remote
# keep checking
#   NOTE: you only need this *if* your remote server hangs
#   without actually dropping the modem connection
lcp-echo-interval 20
lcp-echo-failure 2
# wait for them to say "hi"
connect 'chat -v \
        ABORT "BUSY" ABORT "NO ANSWER" "" \
        "AT&F1E0Q0&D3" OK "" RING ATA CONNECT'
# communications settings
/dev/modem
57600


This is an example /etc/chap-secrets:
================================================================
davidsen        ras             songbyrd
ras             davidsen        songbyrd



PGP signature

Одговори путем е-поште