xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 404 forks source link

auto device setup #284

Closed acheong08 closed 7 months ago

acheong08 commented 10 months ago

For the lazy folks.

Adds

  -auto-setup
        Auto setup TUN device (Linux only)

to the command line options.

acheong08 commented 10 months ago

Not sure how to do it for Windows/MacOS

xjasonlyu commented 10 months ago

It's an excellent feature! I wanted to do it long time ago. Thanks 😊

acheong08 commented 10 months ago

I'm a bit confused by the windows example (since I don't use it)

What is <IF NUM> in

route add 0.0.0.0 mask 0.0.0.0 192.168.123.1 if <IF NUM> metric 5

?

acheong08 commented 10 months ago

Don't have a Windows or MacOS device. Requires testing.