Skip to content
Snippets Groups Projects
Select Git revision
  • 134e54f12e7b4721e9d5a9a42420763409f36788
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-06-25
  • experimental-2025-06-25-base
  • experimental-2025-06-24
  • experimental-2025-06-24-base
  • experimental-2025-06-22
  • experimental-2025-06-22-base
  • v2023.2.5-ffs0.1
  • experimental-2025-06-08
  • experimental-2025-06-08-base
  • experimental-2025-06-06
  • experimental-2025-06-06-base
  • experimental-2025-05-27
  • experimental-2025-05-27-base
  • experimental-2025-05-18
  • experimental-2025-05-18-base
  • experimental-2025-05-15
  • experimental-2025-05-15-base
  • experimental-2025-05-13
  • experimental-2025-05-13-base
  • experimental-2025-05-08
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() {