hmgle/graftcp
A flexible tool for redirecting a program's TCP, UDP, and DNS traffic to SOCKS5 or HTTP proxies. observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13
- age_days: 3067
- days_rel: 50
- days_push: 8
- n_releases_24m: 4
Adoption not part of the score
2561 stars · 202 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
graftcp is a Linux command-line tool that redirects TCP, UDP, and DNS traffic of arbitrary processes to SOCKS5 or HTTP proxies using ptrace syscall tracing, without relying on LD_PRELOAD. It works even on statically linked binaries like Go programs, and supports proxy selection modes, blacklists, and embedded DNS-over-TCP forwarding.
Use cases
- route a program's traffic through a SOCKS5 proxy without configuring it
- proxy statically linked Go binaries that proxychains can't handle
- redirect DNS queries through a proxy to avoid DNS leaks
- force specific processes through an HTTP proxy on Linux
- selectively proxy traffic while blacklisting some IPs to connect direct
When to choose
- you need to proxy statically linked binaries or programs that ignore LD_PRELOAD
- you want per-process proxying on Linux without a system-wide VPN
- you need UDP and DNS proxying alongside TCP through SOCKS5
When to avoid
- you need proxying on macOS or Windows, since graftcp is Linux-only
- you want transparent system-wide traffic redirection rather than per-process
- you need a GUI proxy client
Facets
cli-tool · maturity active
proxy networking security cli networking privacy developer-tools security cli socks5 http-proxy ptrace proxychains-alternative dns-proxy udp-proxy traffic-redirection command-line linux
1 source
- readme: https://github.com/hmgle/graftcp · fetched 2026-08-28 · 64a9f104281e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hmgle/graftcp | main | 97 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem