From nobody  Thu Aug 14 00:14:42 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id AAA01015;
          Thu, 14 Aug 1997 00:14:42 -0700 (PDT)
Message-Id: <199708140714.AAA01015@hub.freebsd.org>
Date: Thu, 14 Aug 1997 00:14:42 -0700 (PDT)
From: thor@deculx.ba-loerrach.de
To: freebsd-gnats-submit@freebsd.org
Subject: user ppp to Windows NT RAS-Port 
X-Send-Pr-Version: www-1.0

>Number:         4302
>Category:       misc
>Synopsis:       user ppp to Windows NT RAS-Port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 14 00:20:01 PDT 1997
>Closed-Date:    Mon Sep 8 14:16:55 PDT 1997
>Last-Modified:  Fri Jan 23 07:10:01 PST 1998
>Originator:     Heinz J. Thor
>Release:        2.2.1
>Organization:
Berufsakademie Loerrach
>Environment:
>Description:
After connection to a Windows NT RAS port with iij-ppp and pap 
the freebsd-machine has a dynamically assigned IP-Address. 
I can ping the local port but can not reach the network. I tried
 about everything i found in the handbook, the ppp-primer, mailing 
lists, and messed around for days with the routing table entrys. 
If it is a routing problem : What should the routing table look like ?
A ppp-connection under Windows 3.x with Trumpet-Winsocks to the same 
RAS-Port works allright.

>How-To-Repeat:
run ppp script
>Fix:

>Release-Note:
>Audit-Trail:

From: Heinz Thor <thor@ba-loerrach.de>
To: freebsd-gnats-submit@freebsd.org, thor@deculx.BA-Loerrach.de
Cc: thor@ba-loerrach.de
Subject: Re: misc/4302: user ppp to Windows NT RAS-Port
Date: Thu, 21 Aug 1997 10:07:37 -0700

 This is a multi-part message in MIME format.
 
 --------------5B661732509D
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Dear ?,
 I am sending you a script of one of the setups i tried so far.
 Maybe that helps understanding my problems.
 Thank you
 Heinz Thor
 
 --------------5B661732509D
 Content-Type: text/plain; charset=us-ascii; name="970821.PPP"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="970821.PPP"
 
 I am trying to connect a LAN with private IP to our campus network.
 Here a diagram of the setup i am heading for:
 
 net.ppp
 
                 193.196.4.0  domain: ba-loerrach.de
         ===============+===============  Ethernet
                        |                                                       
                        |  193.196.4.241          
                 +------+---------+                                             
                 | Windows NT     |                                             
                 |       RAS      |
                 |                |
                 +-------+--------+
                         | 193.196.4.237 (dynamic)
                         \
                          \   iij-ppp
                           |
                           |     
                      Zyxel U-1496    
                           |
                           |
                           | 193.196.4.238 (dynamic)
                 +---------+--------+
                 |   FreeBSD 2.2.1  |
                 |                  |
                 | fbsd.thor.domain |
                 +-------+----------+
                         | 192.168.1.1
                         | 
                         |   192.168.1.0
             ============+==========  private LAN
 
 so far the iij-ppp conection doesn`t work right, so I am not 
 concerned (I think) with gateway= yes / no and the part of the private LAN.
 
 What do i have to change in /etc/ttys, /etc/gettytab, .... ?
 Nothing is mentionend in the ppp-setup manuals !!
 
 
 FreeBSD  2.2.1
 
 Script started on Thu Aug 21 08:33:57 1997
 # ppp iij-pap
 /usr/libexec/ld.so: warning: /usr/lib/libutil.so.2.1: minor version 1 older than expected 2, using it anyway
         **** I got this warning after installation of ppp-2.3.1
 
 User Process PPP. Written by Toshiharu OHNO.
 Using interface: tun0
 Interactive mode
 Dial attempt 1 of 1
 Phone: 2071275
 dial OK!
 login OK!
 ppp ON > Packet mode.
 OpenSecret: Can't open /etc/ppp/ppp.secret.
 Warning: No password entry for this host in ppp.secret
 Warning: Manipulation is allowed by anyone
 ppp ON fbsd> 
 PPP ON fbsd> show modem
 device: /dev/cuaa1  speed: 19200
 cs8, no parity, CTS/RTS on.
 connect count: 1
 outq: ioctl probe failed: Interrupted system call
         ***** ?
 outqlen: 0
 DialScript  = ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 ""AT&F&S1 OK-AT-OK \dATDP\T  TIMEOUT 40 CONNECT
 LoginScript = 
 PhoneNumber(s) = 2071275
 
 PPP ON fbsd> show route
 127.0.0.1        127.0.0.1          ffffffff  UH     (5)
 192.168.1.0      6.0.0.0            ffffff00  U      (1)
 193.196.4.237    193.196.4.238      ffffffff  UH     (3)
 193.196.4.238    127.0.0.1          ffffffff  UG     (5)
 
 PPP ON fbsd> shell
 
 # netstat -rn
 Routing tables
 
 Internet:
 Destination        Gateway            Flags     Refs     Use     Netif Expire
 127.0.0.1          127.0.0.1          UH          1        0       lo0
 192.168.1          link#1             UC          0        0 
 193.196.4.237      193.196.4.238      UH          0        0      tun0
 193.196.4.238/32   127.0.0.1          UGSc        0        0       lo0
 
 # ping 193.196.4.238+ 
 PING 193.196.4.238 (193.196.4.238): 56 data bytes
 64 bytes from 193.196.4.238: icmp_seq=0 ttl=255 time=2.339 ms
 64 bytes from 193.196.4.238: icmp_seq=1 ttl=255 time=1.887 ms
 64 bytes from 193.196.4.238: icmp_seq=2 ttl=255 time=1.806 ms
 64 bytes from 193.196.4.238: icmp_seq=3 ttl=255 time=1.810 ms
 ^C
 --- 193.196.4.238 ping statistics ---
 4 packets transmitted, 4 packets received, 0% packet loss
 round-trip min/avg/max = 1.806/1.960/2.339 ms
 
 # ping 193.196.4.237
 PING 193.196.4.237 (193.196.4.237): 56 data bytes
 ^C
 --- 193.196.4.237 ping statistics ---
 15 packets transmitted, 0 packets received, 100% packet loss
 # 
 # 
 # cat ppp.conf
 #                       ppp.conf
 #
 default:
  set device /dev/cuaa1
  set speed 19200
  set mtu 1500
 # set mru 16384
 # set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDP\\T  TIMEOUT 40 CONNECT"
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\"AT&F&S1 OK-AT-OK \\dATDP\\T  TIMEOUT 40 CONNECT"
 #
 
 iij-pap:
 # set debug chat link lcp 
  disable pred1
  deny pred1
 # disable lqr
 # deny lqr
  set phone 2071275
 # disable vjcomp
 # deny vjcomp
  accept pap
  deny chap
 # enable proxy
 # enable msext
  set authname thor 
  set authkey xxxxxxx 
  set timeout 500
  set openmode active
  dial
 
 # cat ppp.linkup
 #	ppp.linkup	thor 25.7.97 bis ????
 #
 #	Eintraege entsprechend den Labels in ppp.conf
 #
 #       add dest mask gateway
 #       delete ALL
 #       delete dest [gateway [mask]]
 
 iij-pap:
 # add 0 0 HISADDR
  add MYADDR 255.255.255.255 127.0.0.1
  add HISADDR 255.255.255.255 MYADDR
  add 193.196.4.0 255.255.255.0 MYADDR
  add default 255.255.255.0 193.196.4.254
 #
 #
 
 # cat /etc/sysconfig | grep -v #
 
 local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d"
 
 keymap="german.iso"
 keyrate="NO"
 keychange="NO"
 cursor="NO"
 scrnmap="NO"
 font8x16="NO"
 font8x14="NO"
 font8x8="NO"
 blanktime="NO"
 saver="NO"
 mousedtype="NO"
 mousedport="/dev/cuaa0"
 mousedflags=""
 
 hostname="fbsd.thor.domain"
 defaultdomainname="NO"
 
 tcp_extensions="YES"
 weak_mountd_authentication="NO"
 
 network_interfaces="lo0 ed0"
 ifconfig_lo0="inet localhost"
 ifconfig_ed0="inet 192.168.1.1  netmask 255.255.255.0"
 
 static_routes=""
 defaultrouter="NO"
 router="NO"
 mrouted="NO"
 ipxgateway="NO"
 ipxrouted="NO"
 
 timedflags="NO"
 xntpdflags="NO"
 tickadjflags="-Aq"
 ntpdate="NO"
 rwhod="NO"
 
 lpd="YES"
 sendmail_flags="-bd -q30m"
 amdflags="NO"
 nfs_client="NO"
 nfs_server="NO"
 nis_clientflags="NO"
 nis_ypsetflags="NO"
 nis_serverflags="NO"
 ypxfrdflags="NO"
 yppasswddflags="NO"
 namedflags="NO"
 xtend="NO"
 dumpdev="NO"
 savecore="NO"
 swapfile="NO"
 kerberos_server="NO"
 
 gateway="NO"            *** the same result with "YES"
 
 firewall="NO"
 check_quotas="NO"
 accounting="NO"
 apm_enable="NO"
 pccard_enable="NO"
 pccard_mem="DEFAULT"
 pccard_ifconfig="NO"
 ibcs2="NO"
 linux="NO"
 rand_irqs="NO"
 # 
 # 
 # cat /etc/hosts
 127.0.0.1	localhost
 192.168.1.1	fbsd.thor.domain fbsd
 
 # cat /etc/resolv.conf
 domain	ba-loerrach.de
 nameserver	193.196.4.179
 nameserver	193.196.4.1
 # exit
 # exit
 
 PPP ON fbsd> 
 PPP ON fbsd> show lcp
 LCP [Opened]
  his side: MRU 1500, ACCMAP 00000000, PROTOCOMP 1, ACFCOMP 1, MAGIC 00005b8f,
            REJECT 0010
  my  side: MRU 1500, ACCMAP 00000000, PROTOCOMP 1, ACFCOMP 1, MAGIC 6b8b4567,
            REJECT a0000
 
 Defaults:   MRU = 1500, ACCMAP = 00000000	Open Mode: active
 PPP ON fbsd> 
 
 PPP ON fbsd> show ipcp
 IPCP [Opened]
  his side: 193.196.4.237, 2d0f01
  my  side: 193.196.4.238, 2d0f00
 connected: 186 secs, idle: 15 secs
 
 Defaults:
  My Address:  192.168.1.1/0
  His Address: 0.0.0.0/0
  Negotiation: 0.0.0.0/0
 PPP ON fbsd> 
 
 PPP ON fbsd> display
 Current configuration option settings..
 
 Name		My Side		His Side
 ----------------------------------------
 vjcomp    	enable		accept
 lqr       	enable		accept
 chap      	disable		deny
 pap       	disable		accept
 acfcomp   	enable		accept
 protocomp 	enable		accept
 pred1     	disable		deny
 proxy     	disable		deny
 msext     	disable		accept
 passwdauth	disable		deny
 PPP ON fbsd> quit all
 # 
 # ^Dexit
 
 Script done on Thu Aug 21 08:38:09 1997
 
 --------------5B661732509D--
 
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Mon Sep 8 14:16:55 PDT 1997 
State-Changed-Why:  
There's a missing "add 0 0 HISADDR" (to create the default route). 
Upgrade to the latest version on http://www.freebsd.org/~brian and 
read the PPP section of the handbook or the man page. 


Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Mon Sep 8 14:16:55 PDT 1997 
Responsible-Changed-Why:  
Ppp's mine 

From: Heinz Thor <thor@ba-loerrach.de>
To: freebsd-gnats-submit@freebsd.org, thor@ba-loerrach.de
Cc:  Subject: Re: misc/4302: user ppp to Windows NT RAS-Port
Date: Tue, 09 Sep 1997 09:26:44 -0700

 Thank You for the response,
 The main problem was, as You told me in a personal response. After I got
 ppp running, I used the shell command and tried ping. This worked on the
 local IP-address, but not on the remote one. With the -auto feature
 iijppp seems to work allright.
 Heinz Thor

From: Brian Somers <brian@Awfulhak.org>
To: thor@deculx.ba-loerrach.de
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/4302: user ppp to Windows NT RAS-Port 
Date: Fri, 23 Jan 1998 14:59:33 +0000

 > 
 > >Number:         4302
 > >Category:       misc
 > >Synopsis:       user ppp to Windows NT RAS-Port
 [.....]
 
 Your problem may be that you're using ``shell'' to get out of ppp.  
 This will freeze ppp until you exit the shell.
 
 The latest version of ppp warns against this and is available on 
 http://www.FreeBSD.org/~brian.  Can you try this version and confirm 
 that everything now works ?
 
 Cheers.
 
 -- 
 Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
       <http://www.Awfulhak.org>
 Don't _EVER_ lose your sense of humour....
 
 
>Unformatted:
