From owner-freebsd-stable@freebsd.org Thu Oct 26 10:18:18 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AAFDBE44A9A for ; Thu, 26 Oct 2017 10:18:18 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 429C8742A3 for ; Thu, 26 Oct 2017 10:18:17 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id v9QAI2hP030275 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2017 12:18:03 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: mike@sentex.net Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id v9QAHqro026773; Thu, 26 Oct 2017 17:17:52 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: ppp routing bug ? To: Mike Tancsa , FreeBSD-STABLE Mailing List References: From: Eugene Grosbein Message-ID: <59F1B650.5070107@grosbein.net> Date: Thu, 26 Oct 2017 17:17:52 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: Yes, score=5.5 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 3.3 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Flag: YES X-Spam-Level: ***** X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 10:18:18 -0000 On 26.10.2017 04:10, Mike Tancsa wrote: > On 10/25/2017 4:54 PM, Mike Tancsa wrote: >> While testing out our nanobsd RELENG11 images, I noticed a strange >> routing issue. Using a standard pppoe config that has been working fine >> on RELENG8,9,10 I am getting bogus routing entries. >> having the commands in ppp.linkup >> >> pppoe: >> add 192.168.134.2/32 HISADDR >> add 192.168.134.3/32 HISADDR >> add 192.168.134.4/32 HISADDR >> add 192.168.134.5/32 HISADDR > > Upping the logs with debug > > > ppp[60212]: tun0: Command: pppoe: add 192.168.134.2/32 HISADDR > ppp[60212]: tun0: Debug: wrote 124: cmd = Add, dst = 192.168.134.2, > gateway = 64.7.128.7 > > The gateway is correct. Seems right, but its not installing it right. > > > > > It also borkes on the ipv6 addr which I have disabled > > ppp[60212]: tun0: Warning: ff02::: Change route failed: errno: Value too > large to be stored in data type > ppp[60212]: tun0: Debug: deflink: DescriptorRead: read 14/2048 from 1 > ppp[60212]: tun0: Debug: proto_LayerPull: unknown -> 0xc021 > ppp[60212]: tun0: Debug: link_PullPacket: Despatch proto 0xc021 > > > Any ideas ? Are you sure that: 1) your ppp(8) binary is in sync with the kernel in the Nanobsd build ? Generally that would be /usr/sbin/ppp but in your case I'd check twice if this is the case. 2) your /sbin/route and /usr/bin/netstat are in sync too? Try using "route -n monitor" in the background to see what "ppp" really sends to the kernel. Try using "mpd5" instead of "ppp" to make PPPoE connection and see if it runs into same problem.