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 E7F701389E2 for ; Tue, 30 Dec 2014 09:39:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4118E0931; Tue, 30 Dec 2014 09:39:54 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C573E07E0 for ; Tue, 30 Dec 2014 09:39:53 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id ex7so23731771wid.12 for ; Tue, 30 Dec 2014 01:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=lAUhR+HSVErv9Zt64I3TPQEk6bd7H/5zX2li9oe5hec=; b=xdBZI7unpVBY83G5p1EDIZ6oJitR7XUfU+xFp84eIBMtbOb2ZyenPAtu+NbTJflCVc E9QzlXAoy+cmZHdL989yjdbmyv7kUz87M05ESZan/pemh4TYMC27WUSRUZDqxFt0rF0E OrjPD2iY219RlzQ6ZKjmRPtpRI3ZHF+w1/YSUack2czT7BSs+6nu/RBt12eoubf5xIJR yZCPLMRBhjQizahT53bngcBCf8vBlLsWEpCF8oXuQo4+fxoTU2w19oahYyRlhwrzjyvE sNzFq2vXTgpurYy1qGkiEiT84xQgYNUzOYIytwbfQzcxvLTpQblIaKVGDlIEy8janU6p Q7Mw== X-Received: by 10.180.218.39 with SMTP id pd7mr105682052wic.21.1419932392293; Tue, 30 Dec 2014 01:39:52 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPSA id wz5sm53167784wjc.29.2014.12.30.01.39.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Dec 2014 01:39:51 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Disable IPv6 on specific interface Date: Tue, 30 Dec 2014 09:39:35 +0000 User-Agent: KMail/1.13.7 (Linux/3.17.7-gentoo; KDE/4.14.3; x86_64; ; ) References: <87zja5g6l5.fsf@riaqn.com> In-Reply-To: <87zja5g6l5.fsf@riaqn.com> 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: multipart/signed; boundary="nextPart3267901.tQAfYqfI2V"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201412300939.45311.michaelkintzios@gmail.com> X-Archives-Salt: 30946c9b-242e-4e91-94be-0791686d7aff X-Archives-Hash: fc2c52d6378fcb7862659d383126dcad --nextPart3267901.tQAfYqfI2V Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tuesday 30 Dec 2014 03:27:34 Zesen Qian wrote: > 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. Unless the kernel knows of the enp4s0 interface and therefore lists it unde= r=20 sysctl, I can't see how it can be disabled. You could try disabling IPv6=20 altogether in the kernel, but this may not be what you want to achieve. Alternatively, have a look with modinfo in the module options in the unlike= ly=20 chance that the module has some option which disables IPv6 functionality. =2D-=20 Regards, Mick --nextPart3267901.tQAfYqfI2V Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJUonLhAAoJELAdA+zwE4Yej8MH/AyihjClX5ZfoH2HDsVO0zWL nxv7XYca3X9BCuzKVPaysMebpZrKDKBn7+NX3SWL0Y/lsys/5dPaJkWIqP3x/LjR q3b8874dmcSVJ3IZY+1Q8MMTfnbF5us3NLXt+iv26v1dC+Oa8S347K7ApdX+V9uO 2faVV3eMxm1bXP6O5/tFjX4Ym1Ubn8gIAcNYjnjIvPV5KoUMdi+nIc1aKTGJ2hRT IeESPULe3P29NWW5kLrolSclDltBFSymGWJpGR3vHkmt7eS0+lIIHFGT1h2ZI33m 9/BT0jJqg/caKgbP39PsP/NzF/AaygC+aKnDEcfmwQ24oTd6NBxJWArAB0XSD8c= =idoS -----END PGP SIGNATURE----- --nextPart3267901.tQAfYqfI2V--