Skip to content
Snippets Groups Projects
Select Git revision
  • c1a43adec5e9d2496239d9aab77dc619b24936ab
  • v3.3 default protected
  • experimental protected
  • nrb/airmax-test
  • nrb/ro-flash-nanostation-airmax
  • nrb/add-node-whisperer
  • v3.2 protected
  • v3.1 protected
  • nrb-domains
  • v3.0 protected
  • nrb/dns-cache
  • v2.9 protected
  • feature/addMikrotikwAP
  • v2.8 protected
  • v2.5.1 protected
  • v2.7 protected
  • v2.6 protected
  • v2.5 protected
  • v2.4 protected
  • cpe510
  • nrb/gluon-master-cpe510
  • v3.2.1+2024-12-15
  • v3.2+2024-12-04
  • v3.1+2024-07-08
  • v2.9+2023-05-13
  • v2.9+2023-05-12
  • v2.9+2023-05-10
  • v2.8+2023-03-05
  • v2.7+2022-12-03
  • v2.6+2022-09-06
  • v2.5+2022-05-07
  • v2.5+2022-05-05
  • v2.4+2022-02-26
  • v2.3+2021-06-03
  • v2.3+2021-04-30
  • v2.2+2021-04-16
  • v2.2+2020-04-16
  • v2.1+2020-12-11
  • v2.1+2020-11-17
  • v2.0+2020-09-26
  • v2.0+2020-06-28
41 results

modules

Blame
  • 0073-kernel-disable-accept_ra-by-default.patch 1.30 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Thu, 12 Apr 2018 22:14:56 +0200
    Subject: kernel: disable accept_ra by default
    
    Our commands setting accept_ra to 0 on all interfaces got lost in the
    transition to procd. This remained unnoticed for a long time, as we also
    enable forwarding on all interfaces, which prevents RA handling by default.
    
    Restore the commands, while also fixing a possible race condition in the
    old version.
    
    Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
    
    diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl
    index 8722126a6612d67a3f615166a7fbec146207e97f..a236a0194b665ff56c8330930bfd44709d1b0d3d 100755
    --- a/package/base-files/files/etc/init.d/sysctl
    +++ b/package/base-files/files/etc/init.d/sysctl
    @@ -26,6 +26,14 @@ apply_defaults() {
     		net.ipv6.ip6frag_high_thresh="$frag_high_thresh" \
     		net.netfilter.nf_conntrack_frag6_low_thresh="$frag_low_thresh" \
     		net.netfilter.nf_conntrack_frag6_high_thresh="$frag_high_thresh"
    +
    +	# first set default, then all interfaces to avoid races with appearing interfaces
    +	if [ -d /proc/sys/net/ipv6/conf ]; then
    +		echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra
    +		for iface in /proc/sys/net/ipv6/conf/*/accept_ra; do
    +			echo 0 > "$iface"
    +		done
    +	fi
     }
     
     start() {