xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack

Home Page:https://github.com/xjasonlyu/tun2socks/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] missing "--tun-post-down" option

aa51513 opened this issue · comments

Description

After starting tun2socks, I used the "--tun-post-up" option to adjust the routing table,

but now I have a problem, I can't find the hook to restore the routing table after the process is closed,

I think "--tun -post-down" option is very necessary

Is this feature related to a specific bug?

no

Do you have a specific solution in mind?

add "--tun-post-down" option

@xjasonlyu This would be very helpful to keep a clean state. Else when the interface comes back up it will run post-up twice

sounds good