diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2017-11-07 18:11:11 +0100 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2017-11-07 18:11:11 +0100 |
commit | bb356a8ef9cf51b01a6c7edf3a9eda864daee200 (patch) | |
tree | d3f232daa6bc5d30e2ea4051936e287a653a3f15 | |
parent | 265c646a5b6f6e8199d7915ae45783a6da143807 (diff) | |
download | chd_openwrt-bb356a8ef9cf51b01a6c7edf3a9eda864daee200.zip chd_openwrt-bb356a8ef9cf51b01a6c7edf3a9eda864daee200.tar.gz chd_openwrt-bb356a8ef9cf51b01a6c7edf3a9eda864daee200.tar.bz2 |
dev : don't accept dad from other misconfigured routers
-rwxr-xr-x | build-openwrt-dev.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build-openwrt-dev.sh b/build-openwrt-dev.sh index e7c5390..672a068 100755 --- a/build-openwrt-dev.sh +++ b/build-openwrt-dev.sh @@ -100,7 +100,7 @@ fi cd "$BUILD_DIR/" || exit 5 [ -d extra_files/ ] && rm -r extra_files/ -mkdir -p extra_files/etc/config extra_files/etc/dropbear +mkdir -p extra_files/etc/{config,dropbear,sysctl.d} ############################### # Prepare Openwrt config file # @@ -126,7 +126,10 @@ nobody:*:0:0:99999:7::: dnsmasq:x:0:0:99999:7::: EOF -cat > extra_files/etc/rc.local <<EOF +# TODO dhcp.cfg02411c.quietdhcp=1 +# TODO : rc.local is not +x, make rc.initconf work without +x +# TODO : fix tranlation JS bugs (network page) + Vue &a39;ensemble + # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. @@ -224,6 +227,10 @@ cat > extra_files/etc/firewall.user <<EOF ip6tables -A input_wan_rule -s fe80::/10 -d fe80::/10 -p tcp -m tcp --dport 22 -m comment --comment "CHD-allow-ssh-maj-routeur" -j ACCEPT EOF +cat > extra_files/etc/sysctl.d/dad.conf <<EOF +net.ipv6.conf.eth1.accept_dad=0 +EOF + ####################### # Build Openwrt image # ####################### |