Disabling IPv6 in FreeBSD 10.2

Jason Schwerberg jason at schwerberg.com
Tue Aug 25 20:26:14 UTC 2015


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



More information about the freebsd-questions mailing list