Disabling IPv6 in FreeBSD 10.2

Chris Petrik maillist at bsdjunk.com
Wed Aug 26 04:35:47 UTC 2015


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"


More information about the freebsd-questions mailing list