From: Michael Shigorin <mike@altlinux.org> To: sysadmins@lists.altlinux.org Subject: Re: [Sysadmins] etcnet & ipv6 Date: Thu, 5 Jan 2017 23:52:18 +0300 Message-ID: <20170105205218.GR12646@imap.altlinux.org> (raw) In-Reply-To: <55c8b2cf-95f9-ed3f-72fa-f30cd6bd60d2@complife.ru> On Thu, Jan 05, 2017 at 09:14:29PM +0100, Michael A. Kangin wrote: > > Вопрос - кто накручивает, как запретить? > Ну себе и отвечу Может, FR развесишь? > накручивает походу ядро, а запрещать через 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 > > Но лучше бы конечно тоже переменную на это приделать. -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info
next prev parent reply other threads:[~2017-01-05 20:52 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 2017-01-05 20:52 ` Michael Shigorin [this message] 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=20170105205218.GR12646@imap.altlinux.org \ --to=mike@altlinux.org \ --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