From 9656539d48c827171a7931ad9bdb42d9826a32e5 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Wed, 13 Dec 2023 14:24:46 +0100 Subject: [PATCH] Ignore routes when nexthop link is down --- shadowsocks-libev/files/shadowsocks.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shadowsocks-libev/files/shadowsocks.conf b/shadowsocks-libev/files/shadowsocks.conf index c9aedd2de0..f02474433d 100644 --- a/shadowsocks-libev/files/shadowsocks.conf +++ b/shadowsocks-libev/files/shadowsocks.conf @@ -52,6 +52,9 @@ net.ipv4.tcp_mtu_probing = 0 # Default conntrack is too small net.netfilter.nf_conntrack_max = 131072 +net.ipv4.conf.all.ignore_routes_with_linkdown = 1 +net.ipv4.conf.default.ignore_routes_with_linkdown = 1 + net.ipv4.tcp_ecn = 2 #net.ipv4.tcp_sack = 0 #net.ipv4.tcp_dsack = 0