-
-
Notifications
You must be signed in to change notification settings - Fork 472
Home
Jason Lyu edited this page Apr 1, 2022
·
13 revisions
Welcome to the official Wiki page for xjasonlyu/tun2socks.
- Download precompiled binary from Releases
tun2socks --device tun://tun0 --proxy socks5://1.2.3.4:1080
Usage of tun2socks:
-config string
YAML format configuration file
-device string
Use this device [driver://]name
-fwmark int
Set firewall MARK (Linux only)
-interface string
Use network INTERFACE (Linux/MacOS only)
-loglevel string
Log level [debug|info|warning|error|silent] (default "info")
-mtu int
Set device maximum transmission unit (MTU)
-proxy string
Use this proxy [protocol://]host[:port]
-stats string
HTTP statistic server listen address
-token string
HTTP statistic server auth token
-udp-timeout int
Set timeout for each UDP session
-version
Show version information and quit
This software is released under the GPL-3.0 open-source license.