From ad4477fdf9619d44f8c86320eb068f5bfd9805ab Mon Sep 17 00:00:00 2001 From: wy580477 <98247050+wy580477@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:59:13 +0800 Subject: [PATCH] Update tproxy.md Sometimes nft service fails to start due to "RTNETLINK answers: File exists" error. This commit flushes route table after service stops. --- docs/document/level-2/tproxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/document/level-2/tproxy.md b/docs/document/level-2/tproxy.md index 37e2957..42350bc 100644 --- a/docs/document/level-2/tproxy.md +++ b/docs/document/level-2/tproxy.md @@ -340,7 +340,7 @@ Documentation=man:netfilter-persistent(8) Type=oneshot RemainAfterExit=yes ExecStart=/usr/sbin/netfilter-persistent start ; /usr/sbin/ip route add local default dev lo table 100 ; /usr/sbin/ip rule add fwmark 1 table 100 -ExecStop=/usr/sbin/netfilter-persistent stop ; /usr/sbin/ip route del local default dev lo table 100 ; /usr/sbin/ip rule del table 100 +ExecStop=/usr/sbin/netfilter-persistent stop ; /usr/sbin/ip route flush dev lo table 100; /usr/sbin/ip rule del table 100 [Install] WantedBy=multi-user.target