tun2socks Code
Redirect tun flow to socks 5 in golang, support tcp and udp.
Brought to you by:
weimilianqiao
File | Date | Author | Commit |
---|---|---|---|
cmd | 2018-02-26 |
![]() |
[e46bab] remove app.Exit method, use app.Stop |
configure | 2018-01-26 |
![]() |
[ec57d3] add tcp read timeout to fix https://github.com/... |
dns | 2018-01-27 |
![]() |
[fb2bde] remove clear dns expired table |
geoip | 2017-12-04 |
![]() |
[1448b1] add geolite2 country data License |
tun2socks | 2018-02-27 |
![]() |
[1dc1e8] endpoint: Remove unnessasary wake up and accept |
util | 2018-01-30 |
![]() |
[84576c] fix IsBrokenPipe for read error |
.gitignore | 2018-01-27 |
![]() |
[0e5e1d] need to fix stoptun2socks api |
Dockerfile | 2018-01-30 |
![]() |
[18aa27] add Dockerfile |
Makefile | 2018-01-24 |
![]() |
[741252] add build static library for windows |
README.md | 2018-01-25 |
![]() |
[c5844c] better log and fix readme doc for c static api |
config.example.ini | 2018-02-26 |
![]() |
[970db7] update config file |
# 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
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.
See c api wiki.
Windows build need to install git + tdm-gcc.