Skip to content

Install from Source

Jason Lyu edited this page Apr 4, 2022 · 6 revisions

Dependencies

Make sure the following dependencies are installed:

  • Go 1.18+
  • git
  • make

Install

Simply use go install

go install github.com/xjasonlyu/tun2socks/v2@latest

Build

Clone the project source code.

https://github.com/xjasonlyu/tun2socks.git

Build and install the tun2socks binary.

make tun2socks
sudo cp ./build/tun2socks /usr/local/bin

Or build for all architectures.

make all-arch
Clone this wiki locally