From owner-freebsd-questions@freebsd.org Wed Aug 26 08:57:54 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 043D399AFC2 for ; Wed, 26 Aug 2015 08:57:54 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 894A7644 for ; Wed, 26 Aug 2015 08:57:53 +0000 (UTC) (envelope-from ml@my.gd) Received: by lbcbn3 with SMTP id bn3so115423942lbc.2 for ; Wed, 26 Aug 2015 01:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=GwNgKTFnPxbuq0dGzTnYUeZ0wjtIlb68ROGsDc8MSYY=; b=FpDXJVkHPlcVvhylLCDH37j+Ep9qv23jHofGRmCWPQ1E5vqWTvgEXnFJyRj5HLUEK1 76lfpIG3PrZoQh/paJm98jjdN6oXqK8bktB3Qa3EZRmhKwJ9brPfipsEoPpfUEGlRgHL cHBvhSLZVblkCC8wvbxWh3zuDGfzcU3kGjjOlDERXQlzf/OWxSClbNXlLLwS5ciOEbyJ R1itq3yLah28LzAUWAtpKVr5zGjjaVV5ELWKLPUIRogJVODCPsX5zFOpvqm14biO53it Pn34vnAZ8fg/wJPrECMf7T9/rJjspqQaOVgLGH17BrBldsP3+vKubahQoTMkXNTYbKbT 4Y/w== X-Gm-Message-State: ALoCoQmvDnkR6UHsmduISguzSi8dATxAdgLOAqVFoH4z3Fii1Xyw1IGJtdXc1ZsnW/K3s+pSgkeM MIME-Version: 1.0 X-Received: by 10.152.178.133 with SMTP id cy5mr29894003lac.42.1440578112351; Wed, 26 Aug 2015 01:35:12 -0700 (PDT) Received: by 10.112.60.34 with HTTP; Wed, 26 Aug 2015 01:35:12 -0700 (PDT) In-Reply-To: <55DD41A4.1010702@bsdjunk.com> References: <55DCCF61.9080301@schwerberg.com> <55DD41A4.1010702@bsdjunk.com> Date: Wed, 26 Aug 2015 10:35:12 +0200 Message-ID: Subject: Re: Disabling IPv6 in FreeBSD 10.2 From: Damien Fleuriot To: Chris Petrik , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 08:57:54 -0000 On 26 August 2015 at 06:33, Chris Petrik 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@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" > > 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.