Menu

Tree [1bc170] master /
 History

HTTPS access


File Date Author Commit
 cmd 2018-02-26 flowerwrong flowerwrong [e46bab] remove app.Exit method, use app.Stop
 configure 2018-01-26 flowerwrong flowerwrong [ec57d3] add tcp read timeout to fix https://github.com/...
 dns 2018-01-27 FlowerWrong FlowerWrong [fb2bde] remove clear dns expired table
 geoip 2017-12-04 flowerwrong flowerwrong [1448b1] add geolite2 country data License
 tun2socks 2018-02-27 Contextualist Contextualist [1dc1e8] endpoint: Remove unnessasary wake up and accept
 util 2018-01-30 FlowerWrong FlowerWrong [84576c] fix IsBrokenPipe for read error
 .gitignore 2018-01-27 FlowerWrong FlowerWrong [0e5e1d] need to fix stoptun2socks api
 Dockerfile 2018-01-30 FlowerWrong FlowerWrong [18aa27] add Dockerfile
 Makefile 2018-01-24 flowerwrong flowerwrong [741252] add build static library for windows
 README.md 2018-01-25 flowerwrong flowerwrong [c5844c] better log and fix readme doc for c static api
 config.example.ini 2018-02-26 FlowerWrong FlowerWrong [970db7] update config file

Read Me

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

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.