ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Michael A. Kangin" <mak@complife.ru>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] etcnet & ipv6
Date: Thu, 5 Jan 2017 21:14:29 +0100
Message-ID: <55c8b2cf-95f9-ed3f-72fa-f30cd6bd60d2@complife.ru> (raw)
In-Reply-To: <8a37012a-41ce-3f51-f7c5-080f41aea997@complife.ru>

On 01/05/2017 07:25 PM, Michael A. Kangin wrote:

> Вопрос - кто накручивает, как запретить?

Ну себе и отвечу
накручивает походу ядро, а запрещать через sysctl.
у RHEL есть специальная на этот случай переменная IPV6_AUTOCONF, и 
работает она там (/etc/sysconfig/network-scripts/ifup-ipv6) вот так вот:

/sbin/sysctl -e -w 
net.ipv6.conf.$SYSCTLDEVICE.accept_ra=$ipv6_local_auto >/dev/null 2>&1
/sbin/sysctl -e -w 
net.ipv6.conf.$SYSCTLDEVICE.accept_redirects=$ipv6_local_auto >/dev/null 
2>&1
/sbin/sysctl -e -w net.ipv6.conf.$SYSCTLDEVICE.autoconf=$ipv6_local_auto 
 >/dev/null 2>&1

Т.е., для похожего эффекта можно создать в /etc/net/interfaces/$IFNAME 
файлик sysctl.conf с содержимым:

accept_ra=0
autoconf=0
ipv6_accept_redirects=0

Но лучше бы конечно тоже переменную на это приделать.


  reply	other threads:[~2017-01-05 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-05 18:25 Michael A. Kangin
2017-01-05 20:14 ` Michael A. Kangin [this message]
2017-01-05 20:52   ` Michael Shigorin
2017-01-06 16:05       ` Michael A. Kangin
2017-01-06 20:37         ` Alexey Shabalin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55c8b2cf-95f9-ed3f-72fa-f30cd6bd60d2@complife.ru \
    --to=mak@complife.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git