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.mdpull/282/head
parent
6d04c95a7b
commit
03b3716c2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue