/tun2socks

Redirect tun flow to socks 5 in golang, support tcp and udp.

Primary LanguageGo

README

How to use it?

# install golang 1.9+, becase of sync.Map
cp config.example.ini config.ini
# edit it for free
sudo go run cmd/main.go --config=config.ini

Support operating system.

  • macOS
  • linux
  • windows 10 support with tap-windows6
  • Raspberry Pi support
  • android support with root

Hot reload config with USR2 signal. Not support windows.

Support route, udp.proxy, proxy, pattern and rule, see config.example.ini.

sudo kill -s USR2 $PID

NOTE: go run not support kill command signal.

TODO

  • ipv6 support
  • set and reset dns server to 127.0.0.1 automatically on windows, Raspberry Pi and android with shell

Thanks