PPP to Win NT RAS, I don't understand what's going on... help !

PPP to Win NT RAS, I don't understand what's going on... help !

Post by PeP » Tue, 12 Jan 1999 04:00:00



hi,

Since this week-end I try to set up a PPP connexion between my linux bow and
the Windows NT 4 RAS server at my office.
I 'm running Linux 2.0.34 under  RH 5.1.  I'm using pppd-2.3.5.
I think I compiled everything correctly, applying patches where it need to
be applied, using libdes to enable MS-CHAP to work correctly and so on.

My modem connect to the RAS correctly, my machine and RAS excange some
informations and then pppd gets a SIGHUP and my modem hang up. I just began
to read what's going on in PPP protocol, but I still cannot understand what
are the data exchanged.
Here follows the scripts options files, my -fake- chap-secrets file and a
log of the connexion.

1) LOG of the connexion
----------------------------------
Jan 11 21:05:12 darkvador pppd[480]: pppd 2.3.5 started by root, uid 0
Jan 11 21:05:13 darkvador chat[481]: timeout set to 3 seconds
Jan 11 21:05:13 darkvador chat[481]: abort on (\nBUSY\r)
Jan 11 21:05:13 darkvador chat[481]: abort on (\nNO ANSWER\r)
Jan 11 21:05:13 darkvador chat[481]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jan 11 21:05:13 darkvador chat[481]: send (rAT^M)
Jan 11 21:05:13 darkvador chat[481]: expect (OK)
Jan 11 21:05:13 darkvador chat[481]: rAT^M^M
Jan 11 21:05:13 darkvador chat[481]: OK
Jan 11 21:05:13 darkvador chat[481]:  -- got it
Jan 11 21:05:13 darkvador chat[481]: send (ATH0^M)
Jan 11 21:05:14 darkvador chat[481]: timeout set to 60 seconds
Jan 11 21:05:14 darkvador chat[481]: expect (OK)
Jan 11 21:05:14 darkvador chat[481]: ^M
Jan 11 21:05:14 darkvador chat[481]: ATH0^M^M
Jan 11 21:05:14 darkvador chat[481]: OK
Jan 11 21:05:14 darkvador chat[481]:  -- got it
Jan 11 21:05:14 darkvador chat[481]: send (ATDT6390628^M)
Jan 11 21:05:14 darkvador chat[481]: expect (CONNECT)
Jan 11 21:05:14 darkvador chat[481]: ^M
Jan 11 21:05:31 darkvador chat[481]: ATDT6390628^M^M
Jan 11 21:05:31 darkvador chat[481]: CONNECT
Jan 11 21:05:31 darkvador chat[481]:  -- got it
Jan 11 21:05:31 darkvador chat[481]: send (^M)
Jan 11 21:05:31 darkvador pppd[480]: Serial connection established.
Jan 11 21:05:32 darkvador pppd[480]: Using interface ppp0
Jan 11 21:05:32 darkvador pppd[480]: Connect: ppp0 <--> /dev/modem
Jan 11 21:05:32 darkvador pppd[480]: sent [LCP ConfReq id=0x1 <magic
0xffff4045> <pcomp> <accomp>]
Jan 11 21:05:32 darkvador pppd[480]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0>
<auth chap 80> <magic 0x5a06> <pcomp> <accomp> < 11 04 06 4e> < 13 17 01 ac
2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]
Jan 11 21:05:32 darkvador pppd[480]: sent [LCP ConfRej id=0x0 < 11 04 06 4e>
< 13 17 01 ac 2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]
Jan 11 21:05:32 darkvador pppd[480]: rcvd [LCP ConfAck id=0x1 <magic
0xffff4045> <pcomp> <accomp>]
Jan 11 21:05:33 darkvador pppd[480]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>
<auth chap 80> <magic 0x5a06> <pcomp> <accomp>]
Jan 11 21:05:33 darkvador pppd[480]: sent [LCP ConfAck id=0x1 <asyncmap 0x0>
<auth chap 80> <magic 0x5a06> <pcomp> <accomp>]
Jan 11 21:05:56 darkvador pppd[480]: Hangup (SIGHUP)
Jan 11 21:05:56 darkvador pppd[480]: Modem hangup
Jan 11 21:05:56 darkvador pppd[480]: Connection terminated.
Jan 11 21:05:57 darkvador pppd[480]: Exit.

2) my fake chap-secret
---------------------------------
# Secrets for authentication using CHAP
# client server secret   IP addresses
*  XY  MYPASS
XY  *   MYPASS

3) my ppp option file
----------------------------
crtscts
lock
passive
#-ac
debug
-d
lcp-max-configure 30
lcp-max-terminate 30
lcp-max-failure 30
ipcp-max-terminate 30
ipcp-max-configure 30
name PP
remotename ras

4) my scripts
------------------
A) ppp-on
--------------
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=5550505 # The telephone number for the connection
ACCOUNT=XY  # The account name for logon (as in 'George Burns')
PASSWORD=anything # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.0.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug file /etc/ppp/options /dev/modem 38400 \
 $LOCAL_IP:$REMOTE_IP \
 connect $DIALER_SCRIPT

B) ppp-on-dialer
--------------------
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v      \
 TIMEOUT  3    \
 ABORT  '\nBUSY\r'   \
 ABORT  '\nNO ANSWER\r'   \
 ABORT  '\nRINGING\r\n\r\nRINGING\r' \
 ''  \rAT    \
 'OK-+++\c-OK' ATH0    \
 TIMEOUT  60    \
 OK  ATDT$TELEPHONE   \
 CONNECT  ''    \

 
 
 

PPP to Win NT RAS, I don't understand what's going on... help !

Post by Clifford Ki » Tue, 12 Jan 1999 04:00:00


: hi,

: Since this week-end I try to set up a PPP connexion between my linux bow and
: the Windows NT 4 RAS server at my office.
: I 'm running Linux 2.0.34 under  RH 5.1.  I'm using pppd-2.3.5.
: I think I compiled everything correctly, applying patches where it need to
: be applied, using libdes to enable MS-CHAP to work correctly and so on.

: My modem connect to the RAS correctly, my machine and RAS excange some
: informations and then pppd gets a SIGHUP and my modem hang up. I just began
: to read what's going on in PPP protocol, but I still cannot understand what
: are the data exchanged.

: Here follows the scripts options files, my -fake- chap-secrets file and a
: log of the connexion.

: 1) LOG of the connexion
: ----------------------------------

<snip>

: Jan 11 21:05:32 darkvador pppd[480]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0>
: <auth chap 80> <magic 0x5a06> <pcomp> <accomp> < 11 04 06 4e> < 13 17 01 ac
: 2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]
: Jan 11 21:05:32 darkvador pppd[480]: sent [LCP ConfRej id=0x0 < 11 04 06 4e>
: < 13 17 01 ac 2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]

With the disclaimer that I'm no expert, it looks like the RAS is asking for
something called Numbered-Mode

11       Numbered-Mode                                [RFC1663]

and Callback

13       Callback                                     [RFC1570]

with operation field 17 which is not listed as a callback operation in the
list of protocols and operations that I have.

Your version of pppd is not configured for callback and rejects both
Numbered-Mode and Callback.  The rejection by pppd could be fatal if the
RAS requires it.  I've no idea what Numbered-mode is.  You can find the
protocol list that I have and RFCs at

http://www.isi.edu/in-notes/iana/assignments/ppp-numbers
http://info.internet.isi.edu:80/7c/in-notes/rfc/.cache

<snip>
--

/* The signal-to-noise ratio is too low in many [news] groups to make
 * them good candidates for archiving.
 *    --- Mike Moraes, Answers to FAQs about Usenet */

 
 
 

PPP to Win NT RAS, I don't understand what's going on... help !

Post by Clifford Ki » Wed, 13 Jan 1999 04:00:00


: <snip>

: : Jan 11 21:05:32 darkvador pppd[480]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0>
: : <auth chap 80> <magic 0x5a06> <pcomp> <accomp> < 11 04 06 4e> < 13 17 01 ac
: : 2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]
: : Jan 11 21:05:32 darkvador pppd[480]: sent [LCP ConfRej id=0x0 < 11 04 06 4e>
: : < 13 17 01 ac 2d 70 50 a8 10 11 d2 bc 40 00 a0 24 aa af 14 00 00 00 00>]

: With the disclaimer that I'm no expert, it looks like the RAS is asking for

I can say that again!  When I'm wrong I'm totally wrong - and no excuse
except sloppy thinking.  What you reject are requests for Multilink-MRRU
(11) and Multilink-Endpoint-Discriminator (13).  And I have no clue as to
what the real problem might be.

<broken reply snipped>

--

/* Microsoft is a great marketing organization.
 * It _has_ to be */

 
 
 

1. HELP: I don't understand PPP!!!!!

Please E-Mail replies:

Folks, I can ping myself, I can dial the fone#, I am not connecting and I have NO idea what I am doing wrong!!!  These
are my pppd script (line) and chat script (line):

pppd 199.58.24.xxx:15.xxx.60.xxx connect "chat -v -f /root/dial-iac" /dev/cua1 38400 -detach crtscts modem defaultroute

ABORT BUSY ABORT ERROR ABORT DELAYED '' ATDT8677929 CONNECT TIMEOUT 25 ogin:--ogin: <LoginID>\r sword: <PASSWD>\r

PLEASE help me with this, I have NO idea where or if a log file is being created, I have looked but don't see one, but
then again I am not realy sure what I am to be looking for.  I do have a static IP address and both my IP address and
the NDS's ip is in my host file.  

Sam

2. Linux on LCD PC?

3. 'make' fails, and I don't understand the error msg

4. Starting a session at a terminal remotely

5. I don't understand the '\'

6. Help me about Control D sequence

7. How to receive a callback from Windows NT RAS to linux's PPP

8. recompiling kernel

9. linux --> ppp ---> NT's ras

10. I don't understand why this code isn't working

11. PPP -> NT, ppp-off won't hang up

12. Pls help: 'efax' and 'diald' don't quite get along

13. HELP ME! I DON'T UNDERSTAND!!!!