How whyvl/wireproxy works
Project type and purpose
• This is a Go‐based, userspace WireGuard client daemon (wireproxy) that exposes:
• SOCKS5 and HTTP proxy servers
• TCP “client” and “server” tunnels
• A health/metrics HTTP endpoint
• It does _not_ create a network interface; it keeps everything in userspace and routes proxy or tunnel traffic through a WireGuard peer.
File structure
• cmd/wireproxy/main.go: CLI entrypoint
• config.go / config_test.go: configuration loading & validation
• wireguard.go: userspace WireGuard session management
• net.go / routine.go: core networking logic, routing packets into tunnels & proxies
• http.go: HTTP proxy & health/metrics endpoint
• util.go: shared helpers
• Dockerfile, Makefile, systemd/ and rc.d/ folders: packaging/deployment
• tests & GitHub Actions workflows: CI, linting, build, container publishing
README for additional insights
• Describes feature set: “TCP static routing,” “SOCKS5/HTTP proxy,” health endpoints
• Explains CLI flags, sample config file sections (Interface, Peer, Socks5, http, TCPClientTunnel, TCPServerTunnel, STDIOTunnel, health endpoints)