This guide walks you through deploying a complete NaïveProxy setup: a Caddy-based server on a remote host and a local client that exposes a SOCKS5 proxy. By the end your browser traffic will travel through an authenticated HTTPS tunnel that looks identical to regular Chrome activity.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/klzgrad/naiveproxy/llms.txt
Use this file to discover all available pages before exploring further.
- Server Setup
- Client Setup
The recommended server-side stack is Caddy built with the NaïveProxy fork of the
forwardproxy plugin. This single binary handles TLS termination, serves real web content to unauthenticated visitors (active-probing resistance), and forwards authenticated proxy requests with padding.Install xcaddy
xcaddy is the official tool for building Caddy with custom plugins. Install it with:
Build Caddy with the naive forwardproxy plugin
Build a Caddy binary that includes the NaïveProxy fork of Alternatively, download a pre-built binary from the forwardproxy releases page.
forwardproxy:Create a Caddyfile
Create a
Caddyfile in the same directory as your caddy binary. Replace user, pass, me@example.com, and example.com with your own values::443 must appear first in the site address list for this Caddyfile to work correctly. The probe_resistance directive instructs Caddy to serve ordinary web content to any request that lacks valid credentials, preventing active probing of the proxy’s existence. See the Caddy TLS docs for certificate customization options, and the HAProxy setup wiki if you prefer HAProxy as a frontend.Run Caddy
Grant Caddy permission to bind to privileged ports, then start it:Caddy will automatically obtain a TLS certificate from Let’s Encrypt for
example.com. See also the Systemd unit example for running Caddy as a persistent background service.What’s Next
- Advanced configuration — see parameter usage for all
naiveflags including--insecure-concurrency,--tunnel-timeout,--idle-timeout, and log options. - Server alternatives — the HAProxy setup guide documents using HAProxy as a frontend instead of Caddy.
- Understand the internals — read How It Works to understand what makes this traffic hard to detect.