notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details on branch 2026Q3
tun2socks Tunnel TCP/UDP traffic through a SOCKS5/HTTP proxy via TUN interface
2.6.0_1 net on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.6.0_1Version of this port present on the latest quarterly branch.
Maintainer: dasun4@pm.me search for ports maintained by this maintainer
Port Added: 2026-07-10 08:24:41
Last Update: 2026-07-10 08:00:52
Commit Hash: c328c3d
License: MIT
WWW:
https://github.com/xjasonlyu/tun2socks
Description:
tun2socks creates a TUN network interface that tunnels TCP and UDP traffic through a SOCKS5, HTTP, Shadowsocks, or Relay proxy. It is powered by gVisor's userspace TCP/IP stack and supports gateway mode for transparent proxying of other devices on the network. Features include IPv4/IPv6 support, multiple proxy protocols with authentication, a REST API for runtime statistics, and cross-platform compatibility with Linux, macOS, FreeBSD, OpenBSD, and Windows.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (4 items)
Collapse this list.
  1. bin/tun2socks
  2. /usr/local/share/licenses/tun2socks-2.6.0_1/catalog.mk
  3. /usr/local/share/licenses/tun2socks-2.6.0_1/LICENSE
  4. /usr/local/share/licenses/tun2socks-2.6.0_1/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • tun2socks>0:net/tun2socks
To install the port:
cd /usr/ports/net/tun2socks/ && make install clean
To add the package, run one of these commands:
  • pkg install net/tun2socks
  • pkg install tun2socks
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: tun2socks
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1782851820 SHA256 (xjasonlyu-tun2socks-v2.6.0_GH0.tar.gz) = 348d13eff97beb6d08e0379727e89f9a4571bf61ed5f7327a3fcc3767e9c5942 SIZE (xjasonlyu-tun2socks-v2.6.0_GH0.tar.gz) = 374193

Expand this list (50 items)

Collapse this list.

SHA256 (ajg-form-v1.5.1_GH0.tar.gz) = 085e8e98cf63d39241c6ba815b9a71d38808c3fadb6b522feb7fab6d123c44c7 SIZE (ajg-form-v1.5.1_GH0.tar.gz) = 14946 SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152 SHA256 (docker-go-units-v0.5.0_GH0.tar.gz) = db0a1d3e4deaa52401423bf76cce0a5100cf2e51db3c33cf3c70b7953c7d6234 SIZE (docker-go-units-v0.5.0_GH0.tar.gz) = 12243 SHA256 (go-chi-chi-v5.2.1_GH0.tar.gz) = c66789b45e00def4339a65bfe0f7d8ac6895bfa0bdc5f15e4f9d901ec64ac880 SIZE (go-chi-chi-v5.2.1_GH0.tar.gz) = 87036 SHA256 (go-chi-cors-v1.2.1_GH0.tar.gz) = d3fa42948b4b365db19c9a6639090c6869b968fa8c5ecb9635dce1a9bf4cf8d8 SIZE (go-chi-cors-v1.2.1_GH0.tar.gz) = 8827 SHA256 (go-chi-render-v1.0.3_GH0.tar.gz) = 4458232c0a5b600bd64d2b48bc90a8469fcd520e070bd390bbe5e43431999495 SIZE (go-chi-render-v1.0.3_GH0.tar.gz) = 6165 SHA256 (go-gost-relay-v0.5.0_GH0.tar.gz) = b8c4f37fe815f8f8767fd731976f7157a3cd565f133bd590fb494eb011d7ef54 SIZE (go-gost-relay-v0.5.0_GH0.tar.gz) = 5077 SHA256 (go-yaml-yaml-v3.0.1_GH0.tar.gz) = cf05411540d3e6ef8f1fd88434b34f94cedaceb540329031d80e23b74540c4e5 SIZE (go-yaml-yaml-v3.0.1_GH0.tar.gz) = 91173 SHA256 (golang-crypto-v0.38.0_GH0.tar.gz) = e143842797aa961fa3d62472a7b78233ac83ea3bc55d59f019daf3f559e20977 SIZE (golang-crypto-v0.38.0_GH0.tar.gz) = 2157751 SHA256 (golang-net-v0.40.0_GH0.tar.gz) = 1bc71dac542f6b56acda25d9833243c9221ce902193504c114676503ac0e3c51 SIZE (golang-net-v0.40.0_GH0.tar.gz) = 1503810 SHA256 (golang-sys-v0.33.0_GH0.tar.gz) = 16370146c98a69f76b09e7b67ec93d7e259e45d85808aeb9a453a4bbff865287 SIZE (golang-sys-v0.33.0_GH0.tar.gz) = 1528783 SHA256 (golang-time-v0.11.0_GH0.tar.gz) = ec26daa712b0c9660b64ea2ec5f241144b7a8c414b85938c6adbbab69c712126 SIZE (golang-time-v0.11.0_GH0.tar.gz) = 12471 SHA256 (google-btree-v1.1.3_GH0.tar.gz) = ecb1f97cff16ce5b18a12ed31728a82a8e0df0c0181febf2b9c39dd3ed362ffd SIZE (google-btree-v1.1.3_GH0.tar.gz) = 19772 SHA256 (google-gvisor-eede7a881b20_GH0.tar.gz) = 0a3cc5b6156e5719916995a4e3f0d8e03cae30a2e0ad6d0818a7afc107762667 SIZE (google-gvisor-eede7a881b20_GH0.tar.gz) = 3457176 SHA256 (google-shlex-e7afc7fbc510_GH0.tar.gz) = 87f77e98720add261add169e386cbdcc894e2635dca299bc4119dc417ea321ca SIZE (google-shlex-e7afc7fbc510_GH0.tar.gz) = 7342 SHA256 (google-uuid-v1.6.0_GH0.tar.gz) = ee63376b5675376c60e055ed66e5f3651ccc703bd580c022b8ad00cea309252d SIZE (google-uuid-v1.6.0_GH0.tar.gz) = 20896 SHA256 (gorilla-schema-v1.4.1_GH0.tar.gz) = 5ba1ae2586add03cbbe9ca0f4669c37fd257b196f6e3d2f41dc98cc99efb802b SIZE (gorilla-schema-v1.4.1_GH0.tar.gz) = 28615 SHA256 (gorilla-websocket-v1.5.3_GH0.tar.gz) = 707f217e9a46c516c289b71c45a4e51b11b5e0fcec54c1fbfecde47b8a001799 SIZE (gorilla-websocket-v1.5.3_GH0.tar.gz) = 54884 SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398 SHA256 (stretchr-testify-v1.9.0_GH0.tar.gz) = ee651d4d4427d55096007190398102383498e6b5cf97ea9e89ad6e72b4115fbb SIZE (stretchr-testify-v1.9.0_GH0.tar.gz) = 108663 SHA256 (uber-go-atomic-v1.11.0_GH0.tar.gz) = cfe258c20d71ac4dbf0f716a23ed00c332b7f281180651e2a67ad40a8b0772cc SIZE (uber-go-atomic-v1.11.0_GH0.tar.gz) = 24299 SHA256 (uber-go-automaxprocs-v1.6.0_GH0.tar.gz) = fb750295e270f668502fb139ff626bf5209033c7893b29521238cd04502e55cf SIZE (uber-go-automaxprocs-v1.6.0_GH0.tar.gz) = 24465 SHA256 (uber-go-multierr-v1.11.0_GH0.tar.gz) = 8aa599cf7de733306cf8770f854f8a38e6c819b1ae4296f15e44b1e7c6698f34 SIZE (uber-go-multierr-v1.11.0_GH0.tar.gz) = 16900 SHA256 (uber-go-zap-v1.27.0_GH0.tar.gz) = 62860771a138097535da9053f75d1da1a9e57f98263ead698ce493e0c9670652 SIZE (uber-go-zap-v1.27.0_GH0.tar.gz) = 271384 SHA256 (wireguard-wireguard-go-f333402bd9cb_GH0.tar.gz) = 3b75081cff9a0dc70131487731d487b4de52d7b898ddfe4c2eba9ed6f800a4a2 SIZE (wireguard-wireguard-go-f333402bd9cb_GH0.tar.gz) = 116148

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. go125 : lang/go125
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
net_tun2socks
USES:
go:modules
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/xjasonlyu/tun2socks/tar.gz/v2.6.0?dummy=/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.6.0_1
10 Jul 2026 08:00:52
commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.12 / 1.26.5

Number of commits found: 1