SkillAgentSearch skills...

Tun2socks

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

Install / Use

/learn @FlowerWrong/Tun2socks
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

README

How to use it? more

# install golang 1.10+, because 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 -h
sudo go run cmd/main.go -v
sudo go run cmd/main.go -c=config.ini

Note

Support operating system.

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

Related Skills

View on GitHub
GitHub Stars429
CategoryCustomer
Updated3mo ago
Forks105

Languages

Go

Security Score

82/100

Audited on Dec 24, 2025

No findings