awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
xjasonlyu avatar

xjasonlyu/tun2socks

0
View on GitHub↗
4,910 stars·587 forks·Go·mit·22 viewsgithub.com/xjasonlyu/tun2socks/wiki↗

Tun2socks

tun2socks is a connectivity utility that functions as a transparent proxy client and Layer 3 network gateway. It routes system network traffic through a SOCKS5 proxy using a virtual tunnel interface and provides the ability to tunnel IPv4 traffic over IPv6 or vice versa.

The project implements a userspace TCP/IP stack to intercept raw IP packets and translate them for transmission to remote proxy servers. It supports multiple proxy protocols, including HTTP, SOCKS4, SOCKS5, and Shadowsocks, allowing application traffic to be redirected without per-app configuration.

The software includes capabilities for Layer 3 packet forwarding, enabling it to act as a gateway for other devices on a local network. It also provides controls for tuning TCP send and receive buffer sizes to balance network throughput and memory usage.

Features

  • Virtual Network Tunnels - Implements a virtual network interface to intercept system traffic and redirect it through a transparent proxy.
  • Transparent Network Proxies - Intercepts and routes all system network traffic transparently through SOCKS5 or HTTP proxies using a virtual interface.
  • Layer 3 Packet Forwarders - Acts as a Layer 3 network gateway to route IPv4 and IPv6 traffic between local devices.
  • Local Proxy Gateways - Functions as a local proxy gateway that forwards traffic from other local devices through a SOCKS5 proxy.
  • Network Traffic Routing - Routes network traffic from other devices on the local network by acting as a Layer 3 gateway.
  • SOCKS5 Proxy Tunneling Clients - Translates intercepted network packets into SOCKS5 protocol to tunnel all device traffic through a remote proxy.
  • Transparent Proxying - Redirects application traffic to HTTP, SOCKS, or Shadowsocks proxies without requiring per-app configuration.
  • Virtual Network Interfaces - Creates a software-defined virtual network interface to intercept system-wide IP packets.
  • Userspace Stacks - Implements a userspace TCP/IP stack to intercept raw IP packets and prepare them for proxy forwarding.
  • IPv6 Network Stacks - A network utility that tunnels IPv4 traffic over IPv6 or vice versa to ensure cross-protocol compatibility.
  • Multi-Protocol Proxy Clients - Supports multiple proxy protocols including HTTP, SOCKS4, SOCKS5, and Shadowsocks for flexible traffic routing.
  • Traffic Routing Proxies - Directs device network packets through a Shadowsocks proxy to bypass restrictions.
  • Tunneling Protocols - Implements encapsulation of IPv4 packets within IPv6 headers and vice versa to traverse incompatible network environments.
  • Protocol Translation Tunnels - Tunneling IPv4 traffic over IPv6 or vice versa to maintain connectivity across different internet protocol versions.

Star history

Star history chart for xjasonlyu/tun2socksStar history chart for xjasonlyu/tun2socks

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does xjasonlyu/tun2socks do?

tun2socks is a connectivity utility that functions as a transparent proxy client and Layer 3 network gateway. It routes system network traffic through a SOCKS5 proxy using a virtual tunnel interface and provides the ability to tunnel IPv4 traffic over IPv6 or vice versa.

What are the main features of xjasonlyu/tun2socks?

The main features of xjasonlyu/tun2socks are: Virtual Network Tunnels, Transparent Network Proxies, Layer 3 Packet Forwarders, Local Proxy Gateways, Network Traffic Routing, SOCKS5 Proxy Tunneling Clients, Transparent Proxying, Virtual Network Interfaces.

Which projects share features with xjasonlyu/tun2socks?

Projects with overlapping indexed features include: go-gost/gost — Gost is a Go-based network tunnel and multi-protocol proxy server. It functions as a gateway for routing TCP and UDP… hq450/fancyss — Fancyss is a network utility designed to function as a Shadowsocks proxy gateway. It operates as a transparent proxy… daeuniverse/dae — dae is a high-performance Linux network tool that functions as an eBPF transparent proxy. It intercepts and redirects… juewuy/shellcrash — ShellCrash is a shell-based network proxy manager and DNS and routing controller. It functions as a transparent proxy… ginuerzh/gost — gost is a multi-protocol proxy tunnel and secure tunneling server designed to route network traffic through encrypted… shadowsocks/shadowsocks-ios — Shadowsocks-iOS is a proxy client for iOS devices that implements the Shadowsocks protocol to tunnel network traffic…

Projects sharing features with Tun2socks

These projects share indexed features with Tun2socks. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • go-gost/gostgo-gost avatar

    go-gost/gost

    6,972View on GitHub↗

    Gost is a Go-based network tunnel and multi-protocol proxy server. It functions as a gateway for routing TCP and UDP traffic, creating secure network tunnels between remote endpoints, and acting as a DNS proxy server to resolve domain name queries. The project is distinguished by its ability to implement multi-hop proxy chaining, which links multiple network nodes in a sequence to route traffic through specific paths. It also provides transparent proxying by integrating with virtual network interfaces to intercept system-level traffic without requiring manual client configuration. The system

    Godnsdtlsgolang
    View on GitHub↗6,972
  • hq450/fancysshq450 avatar

    hq450/fancyss

    13,325View on GitHub↗

    Fancyss is a network utility designed to function as a Shadowsocks proxy gateway. It operates as a transparent proxy manager that intercepts and routes network traffic at the gateway level, allowing for centralized management of internet access across all connected devices without requiring individual client-side configurations. The system employs policy-based routing and rule-based traffic filtering to direct data through specific network paths. It maintains multiple server connections simultaneously, utilizing failover-aware connection pooling to automatically switch traffic to healthy node

    Shellarmkoolgamemerlin
    View on GitHub↗13,325
  • daeuniverse/daedaeuniverse avatar

    daeuniverse/dae

    5,876View on GitHub↗

    dae is a high-performance Linux network tool that functions as an eBPF transparent proxy. It intercepts and redirects packets at the kernel level to route internet traffic based on domains, IP addresses, and process names. The project distinguishes itself by modifying TLS handshakes to simulate browser signatures, which prevents server-side detection of proxy traffic. It also implements a full-cone network address translation gateway to maintain stable bidirectional connections and utilizes a latency-based node selector to automatically route traffic through the fastest available proxy nodes.

    Godaeebpfgolang
    View on GitHub↗5,876
  • juewuy/shellcrashjuewuy avatar

    juewuy/ShellCrash

    12,934View on GitHub↗

    ShellCrash is a shell-based network proxy manager and DNS and routing controller. It functions as a transparent proxy gateway that intercepts local traffic and DNS requests to route data through a proxy server. The system manages the deployment and upgrading of proxy binaries, such as sing-box and mihomo, within a shell environment. It includes a web-based management interface and traffic dashboard for visualizing network activity and modifying routing rules. The project provides capabilities for network traffic routing, including UDP proxy support, local traffic bypasses for domestic IP add

    Shell
    View on GitHub↗12,934
Compare all 30 related projects→