From owner-freebsd-questions@freebsd.org Wed Aug 26 04:35:47 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AD269C2AF7 for ; Wed, 26 Aug 2015 04:35:47 +0000 (UTC) (envelope-from maillist@bsdjunk.com) Received: from fallback5.mail.ru (fallback5.mail.ru [94.100.181.253]) by mx1.freebsd.org (Postfix) with ESMTP id E2235B65 for ; Wed, 26 Aug 2015 04:35:46 +0000 (UTC) (envelope-from maillist@bsdjunk.com) Received: from smtp5.mail.ru (smtp5.mail.ru [94.100.179.24]) by fallback5.mail.ru (mPOP.Fallback_MX) with ESMTP id AD3B48E35D42 for ; Wed, 26 Aug 2015 07:33:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=izmb7QaBD+0HjbDgjoMO8lJVIrz+jrKoDgwA7fGQL7c=; b=ZfpZ4Ohkc0JStnm3gjlobCQJRl2OVC0AkGJmX8BeuTUp77v8ErMPAA3mLwUMdpP/a41em6UKuucYhhn3WZl4ieohVy4/Nc5yFXDHh0Tg/EHbnWoxL/N9TiriWvhjVzXhX8EOBkIKOt45DgXTRtzd2HEvSHkj8q/9mv1edYYi4Mk=; Received: from [187.150.131.128] (port=57284 helo=[192.168.1.77]) by smtp5.mail.ru with esmtpa (envelope-from ) id 1ZUSPC-0001zK-1Y for freebsd-questions@freebsd.org; Wed, 26 Aug 2015 07:33:46 +0300 Subject: Re: Disabling IPv6 in FreeBSD 10.2 To: freebsd-questions@freebsd.org References: <55DCCF61.9080301@schwerberg.com> From: Chris Petrik Message-ID: <55DD41A4.1010702@bsdjunk.com> Date: Tue, 25 Aug 2015 23:33:40 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DCCF61.9080301@schwerberg.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Mras: Ok X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 04:35:47 -0000 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@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"