Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 08:35:23 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        freebsd-questions@freebsd.org, freebsd-net@freebsd.org
Subject:   Re: Eliminating IPv6 (?)
Message-ID:  <201906191535.x5JFZNMo018745@gndrsh.dnsmgr.net>
In-Reply-To: <6975.1560827403@segfault.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> I do not wish to begin any religious war here.  I understand that IPv6
> can be a sensitive and sometimes even emotional issue for many people.
> Speaking only for myself, and only for the present moment, I can say
> that for me, IPv6 represents only an annoyance and a very sizable
> distraction.  At present, I don't use it and have absolutely no need
> to do so.  I would thus like to simplify my life by eliminating it from
> my (12.0-RELEASE) system, so that I  won't even have to think about it,
> or wonder about it, e.g. when I am configuring my firewall, my daemons,
> etc.
> 
> I have tried searching for instructions on how to do this online, but
> the suggestions and recommendations for how to do this vary widely.
> There does not seem to be any "standard" set of recommendations for
> how to simply turn off all IPv6 for a given system, short of rebuilding
> the kernel, from scratch, with proper options to eliminate IPv6 support
> in the kernel entirely.
> 
> I finally settled on trying to add the following options to my /etc/rc.conf
> file:
> 
> ipv6_network_interfaces="none"
> ip6addrctl_enable="NO"
> ip6addrctl_policy="ipv4_prefer"
> ipv6_activate_all_interfaces="NO"
> 
> These seem to have worked only marginally.
> 
> After a fresh reboot, my loopback interface (lo0) for example is still
> configured to have -both- IPv4 -and- IPv6 addresses... and routes...
> associated with it.
> 
> How can I turn off IPv6 entirely without rebuilding the kernel?

I too do not need IPv6 in many many many places, and this is
the option I choose to disable it, a kernel recompile is the
only complete and effective "knob" to get IPV6 out of your
system.  Once it is gone from the kernel all the other stuff
recognises this and just deals with it without any other
tweaking.

> Regards,
> rfg
> 
> 
> P.S.  Please, please, please, refrain from giving me a sermon about how
> I am an idiot and/or about how IPv6 is going to save mankind and/or the
> galaxy as we know it.  I am pro choice, and I don't really wish to have
> IPv6 rammed down my throat before I am ready to swallow.  I don't need it,
> don't use it, and for me, life is much simpler without it for now.

No sermon here, I fully support your position, and am very glad to
see that bz@ continues to assert that we need to maintain the
INET and INET6 compile options (for some day we may be able to
remove V4, but it also has the added benifit in that we can build
V4 only, v6 only, or (insert your prefered higher power) forbid,
no INET at all!

-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906191535.x5JFZNMo018745>