From owner-freebsd-net@freebsd.org Tue Jun 18 08:59:40 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4005515B1CC2 for ; Tue, 18 Jun 2019 08:59:40 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 582336AB43 for ; Tue, 18 Jun 2019 08:59:39 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id EEE894E64B; Tue, 18 Jun 2019 01:59:37 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-net@freebsd.org Subject: Re: Eliminating IPv6 (?) In-Reply-To: <20190618082951.GA84864@straasha.imrryr.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19733.1560848377.1@segfault.tristatelogic.com> Date: Tue, 18 Jun 2019 01:59:37 -0700 Message-ID: <19734.1560848377@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 582336AB43 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-5.94 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tristatelogic.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.75)[ip: (-7.22), ipnet: 69.62.128.0/17(-3.61), asn: 14051(-2.84), country: US(-0.06)]; MX_GOOD(-0.01)[cached: mx1.tristatelogic.com]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; RCVD_COUNT_TWO(0.00)[2]; SUBJECT_HAS_QUESTION(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jun 2019 08:59:40 -0000 In message <20190618082951.GA84864@straasha.imrryr.org>, Viktor Dukhovni wrote: >Agreed. I find it takes very little effort to not have IPv6 get >in my way, and with that taken care of, it is then occasionally >even useful. If this thread boils down to annoyance about localhost >resolving to both "::1" and "127.0.0.1" then use "127.0.0.1" instead >of "localhost" in any configuration files where that's what you >mean. I quite certainly have had, of late, and since my "upgrade" to 12.0, two specific and very annoying problems that both seemed at first to possibly derive from various applications mistakenly attempting to connect to "localhost" via its IPv6 address in preference to its IPv4 address. With a little help from my friends I've now resolved both issues, and as it turned out, neither problem had a single bloody thing to do with IPv6. So that's good news. But I didn't know that until the end. While the plot was still unfolding with respect to both of these issues, I was effectively forced to consider that all of this unwanted IPv6 stuff might be the source of these (originally rather mysterious) problems. As the old saying goes, I would rather have been sailing. Anyway, as I had previously mentioned, various suggestions and recommendations that I found online had suggest one or another subset of the following /etc/rc.conf lines as a way of eliminating IPv6 from the game board: ipv6_network_interfaces="none" ip6addrctl_enable="NO" ip6addrctl_policy="ipv4_prefer" ipv6_activate_all_interfaces="NO" Would it not be both easy and wise to have -one- thing that could be placed into /etc/rc.conf that would imply all of these others? That would require near zero engineering effort, yes? Regards, rfg