From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D0F101389E2 for ; Tue, 30 Dec 2014 03:27:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C0A2E0993; Tue, 30 Dec 2014 03:27:53 +0000 (UTC) Received: from Riaqn-RamNode.riaqn.com (ramnode.riaqn.com [167.88.115.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D951DE096B for ; Tue, 30 Dec 2014 03:27:47 +0000 (UTC) Received: from Riaqn-ThinkPad (unknown [111.186.1.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by Riaqn-RamNode.riaqn.com (Postfix) with ESMTPSA id 6413B1C3C4109 for ; Tue, 30 Dec 2014 11:27:43 +0800 (CST) From: Zesen Qian To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Disable IPv6 on specific interface Date: Tue, 30 Dec 2014 11:27:34 +0800 Message-ID: <87zja5g6l5.fsf@riaqn.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 61af3fca-b98a-420d-a4cc-d69bf67fcbef X-Archives-Hash: 0e6ca707b140163289f1e20fe195d0a2 Hello list, Sorry for hijacking Rich's thread, resend here. I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=3D1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named "net.ipv6.conf.enp4s0", which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. --=20 Zesen Qian (=E9=92=B1=E6=B3=BD=E6=A3=AE)