GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FlowerWrong/tun2socks: Redirect tun flow to socks 5 in golang, support tcp and udp.

BranchesTags
Open more actions menu

Latest commit

 

History

265 Commits
265 Commits

Folders and files

NameName
Last commit message
Last commit date
cmd
cmd
 
 
configure
configure
 
 
dns
dns
 
 
geoip
geoip
 
 
tun2socks
tun2socks
 
 
util
util
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Vagrantfile
Vagrantfile
 
 
config.example.ini
config.example.ini
 
 

Repository files navigation

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

  • For darwin and linux, you should use netstack smart branch.
  • For windows user, you should use netstack master branch.

Support operating system.

  • macOS
  • linux
  • Windows Vista and above support with tap-windows6, download link, please use netstack master branch.
  • 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

  • thanks xjdrew/kone for dns fake mode
  • thanks yinghuocho/gotun2socks for udp <-> socks5 tunnel
  • thanks songgao/water for tun io on many platform
  • thanks google/netstack for tcp/ip stack
  • thanks google/gopacket for pack/unpack ip package
  • thanks miekg/dns for dns parser and server

About

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

Topics

fakednsnetstacksocks5tcpiptun2socksudp

Resources

Readme
Activity

Stars

427 stars

Watchers

17 watching

Forks

104 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.