From owner-freebsd-questions@freebsd.org Wed Jun 19 15:42:32 2019 Return-Path: Delivered-To: freebsd-questions@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 C325E15BC879; Wed, 19 Jun 2019 15:42:32 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 02BD46BA68; Wed, 19 Jun 2019 15:42:31 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x5JFgSIS018771; Wed, 19 Jun 2019 08:42:28 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x5JFgQQ2018770; Wed, 19 Jun 2019 08:42:26 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201906191542.x5JFgQQ2018770@gndrsh.dnsmgr.net> Subject: Re: Eliminating IPv6 (?) In-Reply-To: To: Eugene Grosbein Date: Wed, 19 Jun 2019 08:42:26 -0700 (PDT) CC: "Ronald F. Guilmette" , freebsd-questions@freebsd.org, freebsd-net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 02BD46BA68 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.33 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; IP_SCORE(0.04)[ip: (0.15), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.05), country: US(-0.06)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.54)[0.544,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_SPAM_LONG(0.94)[0.942,0]; NEURAL_HAM_SHORT(-0.09)[-0.086,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jun 2019 15:42:32 -0000 > 18.06.2019 10:10, Ronald F. Guilmette wrote: > > > How can I turn off IPv6 entirely without rebuilding the kernel? > > You cannot. GENERIC kernel specifically enables IPv6 support and you need to disable it at compile time. > And if you do, you better rebuild the world too using WITHOUT_INET6=yes in the /etc/src.conf > or else some utilities compiled with INET6 by default will query kernel > for IPv6-specific data (like routing entries) and complain that your kernel does not know about it. I have not seen these issues, can you give a specific example that fails? A netstat -rn on a v4 only kernel simple reports the v4 table, and iirc a netstat -rn6 returns a "Protocol not supported error" as should all other things. > World built WITHOUT_INET6 has no such rough edges. I find that actually causes me more issues, as then my netstat -rn6 returns a hard error due to: case '6': #ifdef INET6 af = AF_INET6; #else errx(1, "IPv6 support is not compiled in"); #endif -- Rod Grimes rgrimes@freebsd.org