From owner-freebsd-net@FreeBSD.ORG Thu Sep 14 13:44:38 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 871BC16A403; Thu, 14 Sep 2006 13:44:38 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6536943D55; Thu, 14 Sep 2006 13:44:37 +0000 (GMT) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (localhost [127.0.0.1]) by flat.berklix.org (8.13.1/8.13.1) with ESMTP id k8EDiTk8092841; Thu, 14 Sep 2006 15:44:29 +0200 (CEST) (envelope-from jhs@flat.berklix.org) Received: (from jhs@localhost) by flat.berklix.org (8.13.1/8.13.1/Submit) id k8EDiI42092840; Thu, 14 Sep 2006 15:44:18 +0200 (CEST) (envelope-from jhs) Date: Thu, 14 Sep 2006 15:44:18 +0200 (CEST) Message-Id: <200609141344.k8EDiI42092840@flat.berklix.org> To: net@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix C Net Consultancy, Munich/Muenchen 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 command port does not listens on ipv4 unless no INET6 in kernel X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 13:44:38 -0000 Hi Net@ people, I posted this to hackers@ Mon, 11 Sep 2006 20:30:38 +0200 (CEST) & got no response. I've fixed typos in subject & body. Hopefuly net@ is more appropriate & can respond please :-) ------- (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 *:12345 *:* & 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.