From patchwork Tue Feb 13 20:40:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,4/5] fff-network: rework sysctl's From: Tim Niemeyer X-Patchwork-Id: 792 Message-Id: <20180213204041.17528-4-tim@tn-x.org> To: franken-dev@freifunk.net Date: Tue, 13 Feb 2018 21:40:40 +0100 Just disable autoconf. Some sysctl's are currently not available due some missing kernel features. Maybe some day they reappear. Signed-off-by: Tim Niemeyer --- .../fff/fff-network/files/etc/sysctl.d/50-fff-network.conf | 10 +++++----- src/packages/fff/fff-network/files/usr/sbin/configurenetwork | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/packages/fff/fff-network/files/etc/sysctl.d/50-fff-network.conf b/src/packages/fff/fff-network/files/etc/sysctl.d/50-fff-network.conf index 5c61a73..7fe4725 100644 --- a/src/packages/fff/fff-network/files/etc/sysctl.d/50-fff-network.conf +++ b/src/packages/fff/fff-network/files/etc/sysctl.d/50-fff-network.conf @@ -37,7 +37,7 @@ net.ipv6.conf.default.accept_dad=0 net.ipv6.conf.default.accept_ra=0 net.ipv6.conf.default.accept_redirects=0 net.ipv6.conf.all.accept_dad=0 -net.ipv6.conf.all.accept_ra=1 +net.ipv6.conf.all.accept_ra=0 net.ipv6.conf.all.accept_redirects=0 # Number of Router Solicitations to send until assuming no routers are present. @@ -47,19 +47,19 @@ net.ipv6.conf.all.router_solicitations = 0 # Accept Router Preference in RA? net.ipv6.conf.default.accept_ra_rtr_pref = 0 -net.ipv6.conf.all.accept_ra_rtr_pref = 1 +net.ipv6.conf.all.accept_ra_rtr_pref = 0 # Learn Prefix Information in Router Advertisement net.ipv6.conf.default.accept_ra_pinfo = 0 -net.ipv6.conf.all.accept_ra_pinfo = 1 +net.ipv6.conf.all.accept_ra_pinfo = 0 # Setting controls whether the system will accept Hop Limit settings from a router advertisement net.ipv6.conf.default.accept_ra_defrtr = 0 -net.ipv6.conf.all.accept_ra_defrtr = 1 +net.ipv6.conf.all.accept_ra_defrtr = 0 #router advertisements can cause the system to assign a global unicast address to an interface net.ipv6.conf.default.autoconf = 0 -net.ipv6.conf.all.autoconf = 1 +net.ipv6.conf.all.autoconf = 0 #how many neighbor solicitations to send out per address? net.ipv6.conf.default.dad_transmits = 3 diff --git a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork index cddde19..38d7413 100755 --- a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork +++ b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork @@ -35,6 +35,7 @@ setAutoConf() { local on=$2 echo "# Generated from configurenetwork" > /etc/sysctl.d/51-fff-network-wan.conf + echo "net.ipv6.conf.$iface.accept_ra = $on" >> /etc/sysctl.d/51-fff-network-wan.conf echo "net.ipv6.conf.$iface.accept_ra_defrtr = $on" >> /etc/sysctl.d/51-fff-network-wan.conf echo "net.ipv6.conf.$iface.accept_ra_pinfo = $on" >> /etc/sysctl.d/51-fff-network-wan.conf echo "net.ipv6.conf.$iface.autoconf = $on" >> /etc/sysctl.d/51-fff-network-wan.conf