diff options
author | Simon Rettberg | 2018-03-26 15:16:18 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-03-26 15:16:18 +0200 |
commit | a6c817c7f3198494271e20d3f946c67bcb634af1 (patch) | |
tree | de768341222cbcf95e234944f165047ce1775426 | |
parent | [rfs-stage32] setup_partitions: Use properly quoted arguments + arrays (diff) | |
download | mltk-a6c817c7f3198494271e20d3f946c67bcb634af1.tar.gz mltk-a6c817c7f3198494271e20d3f946c67bcb634af1.tar.xz mltk-a6c817c7f3198494271e20d3f946c67bcb634af1.zip |
[rfs-stage32] network: set arp_filter to 1 to prevent ARP flux
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-early_network_triggers | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-early_network_triggers b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-early_network_triggers index 1e999da6..64ea853e 100755 --- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-early_network_triggers +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-early_network_triggers @@ -25,5 +25,9 @@ if route -n | grep -q -E '^0\.0\.0\.0.*U.*G'; then systemctl start network-gateway.target & fi +# In case we have multiple NICs per subnet, don't send arp +# replies on all NICs +echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter + exit 0 |