Flush route table after nft service stops (#281)

* Update tproxy.md

Sometimes nft service fails to start due to "RTNETLINK answers: File exists" error.

This commit flushes route table after service stops.

* Update tproxy.md
pull/282/head
wy580477 2022-06-28 21:40:09 +08:00 committed by GitHub
parent 6d04c95a7b
commit 03b3716c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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