Disabling IPv6 in FreeBSD 10.2

Damien Fleuriot ml at my.gd
Wed Aug 26 08:57:54 UTC 2015


On 26 August 2015 at 06:33, Chris Petrik <maillist at bsdjunk.com> wrote:

> On 08/25/15 15:26, Jason Schwerberg wrote:
>
>> 10.2-RELEASE
>> FreeBSD bsd.junaos.com 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed
>> Aug 12 15:26:37 UTC 2015
>>
>> I've already added the following lines to my rc.conf:
>> ipv6_network_interfaces="none"
>> ipv6_activate_all_interfaces="NO"
>>
>> but certain connections are still trying to use IPv6, namely 'jwhois':
>>
>> $ truss jwhois google.com
>> ...
>> __sysctl(0x7fffffffe740,0x4,0x0,0x7fffffffe7c0,0x0,0x0) = 0 (0x0)
>> __sysctl(0x7fffffffe740,0x4,0x80147b300,0x7fffffffe7c0,0x0,0x0) = 0 (0x0)
>> socket(PF_INET6,0x10000002,17)                   = 4 (0x4)
>> connect(4,{ AF_INET6 [2001:502:8c25:1000::74]:1 },28) ERR#65 'No route to
>> host'
>> ...
>>
>> How can I disable ipv6 in FreeBSD 10.2?
>>
>> ---
>> This email has been checked for viruses by Avast antivirus software.
>> https://www.avast.com/antivirus
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> freebsd-questions-unsubscribe at freebsd.org"
>>
>
> Add WITHOUT_IPV6= to /etc/src.conf (create it if it doesn't exist) and
> rebuild the world
> And remove the INET6 from the kernel config.
>
> Is what I got from your "How do I disable ipv6 in FreeBSD"
>
>
A word of caution to those who wish to remove IPv6 support entirely.

Some daemons, net/relayd comes to mind, actually *require* IPv6 support
in-kernel, and will refuse to start if you remove it.


More information about the freebsd-questions mailing list