From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 11 18:31:05 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 542D816A5F6; Mon, 11 Sep 2006 18:31:05 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FB7D43D4C; Mon, 11 Sep 2006 18:31:04 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from thin.berklix.org (localhost [127.0.0.1]) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id k8BIUupH047172; Mon, 11 Sep 2006 20:30:56 +0200 (CEST) (envelope-from jhs@thin.berklix.org) Received: (from jhs@localhost) by thin.berklix.org (8.12.11/8.12.11/Submit) id k8BIUcNJ047171; Mon, 11 Sep 2006 20:30:38 +0200 (CEST) (envelope-from jhs) Date: Mon, 11 Sep 2006 20:30:38 +0200 (CEST) Message-Id: <200609111830.k8BIUcNJ047171@thin.berklix.org> To: hackers@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix C Net Consultancy, Munich/Muenchen Fcc: sent-mail User-agent: EXMH http://beedub.com/exmh/ on FreeBSD http://freebsd.org X-URL: http://berklix.com/~jhs/cv/ X-Fallback: jhs@mail.brierdr.com, jhs@freebsd.org, jhs@berklix.net Cc: Gary Jennejohn , brian@Awfulhak.org, Julian Stacey Subject: ppp cmmand port listens on ipv6 only if kernel has X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 18:31:05 -0000 Hackers, (cc Brian@a. who's maybe expert, from examples seen in share :-) I'm not clear if this is a bug or a config error: It seems though my /usr/sbin/ppp was moving traffic to & from internet, it was only listening for commands (not data) on ipv6, not ipv4, thus I could not type commands like dial & drop, unless instead of running ppp -auto instead I invoked ppp manually in foreground on localhost. Detail: I have 2 alternate firewall/ gateways connected to world via DSL. Each ran 4.10-Release OK. I raised one to 6.1-Release. With a 6.1 Release custom kernel compiled with options INET6 & /etc/ppp/ppp.conf with set server +12345 mypasswd sockstat -l showed only: USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root ppp 1020 9 tcp6 *:12345 *:* (& no 2nd line for ipv4), & so from my internal host, this failed: pppctl -p mypasswd dsl:12345 & in fact even on my host named dsl, this failed telnet localhost 12345 So I built a new kernel without INET6 & then sockstat -l showed root ppp 972 9 tcp4 *:12345 *:* & that works OK, I can finally manually control my PPP link up & down via pppctl -p mypasswd dsl:12345 On my 4.10 host which has a kernel with both options INET options INET6 (as also has 4.10 GENERIC), that has always worked OK, & sockstat -l shows root ppp 512 9 tcp46 *:21389 *:* & pppctl -p mypasswd dsl:12345 works OK. Questions: - Did I misconfigure something ? - Does ppp on 6.1 perhaps not now listen on ipv4 if INET6 is in kernel ? (Unfortunate if so, as INET6 in in GENERIC kernel) - Should ppp have an extra flag added, forcing "Do listen on ipv4" ? - Is this a bug ? Should I file a send-pr ? Did I misconfig something ? Julian -- Julian Stacey. BSD Unix C Net Consultancy, Munich/Muenchen http://berklix.com Mail Ascii, not HTML. Ihr Rauch = mein allergischer Kopfschmerz.