Skip to content

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

Notifications You must be signed in to change notification settings

weimilianqiao/tun2socks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

How to use it? more

# install golang 1.9+, becase of sync.Map
go get -u -v github.com/FlowerWrong/tun2socks
cd tun2socks
go get ./...

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 Vista and above support with tap-windows6, download link
  • 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.

As a static library

See c api wiki.

Windows build need to install git + tdm-gcc.

TODO

  • gui
  • ipv6 support

Thanks

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.6%
  • C 2.1%
  • Other 1.3%