On this page
Facts
What it is
HTTPS forward proxy; the client is Chromium's network stack
Since, by
2018, klzgrad
Transport
HTTP/2 CONNECT over TLS on TCP; HTTP/3 optional
Encryption
TLS from Chromium (BoringSSL)
To the network it looks like
Chrome opening an HTTPS site on your domain
Usual port
443
Comes as
naive+https:// link, or naive's own config.json
License
BSD-3-Clause, as Chromium
Latest release
naiveproxy v154.0.8037.49-5, October 22, 2026
In Veli
Not supported
Versions and history
- Jan 2018
The project starts
klzgrad opens the NaiveProxy repository: a proxy made from Chromium's own network stack.
- Jan 2019
First release, v71
Version numbers follow Chrome's from here on: v71.0.3578.98-1 is built on Chrome 71. The README asks users to stay on the latest release so the fingerprint matches current Chrome.
- May 2020
forwardproxy fork for Caddy
klzgrad's fork of Caddy's forwardproxy plugin adds the NaiveProxy padding layer, so one Caddy binary serves both the website and the proxy.
- Feb 2026
sing-box 1.13 outbound
sing-box gets a NaiveProxy outbound built on Chromium's code, with HTTP/2 or QUIC, on Apple platforms, Android, Windows and some Linux builds.
How NaiveProxy works
The README draws it as [browser → naive client] → censor → [frontend → naive server] → Internet. The client is the naive program, which listens as a local SOCKS or HTTP proxy. For each connection it sends an HTTP/2 CONNECT request to your server inside one TLS connection, exactly as Chrome talks to an HTTPS proxy. The server is a web server that routes by the authorization header: with the right user and password the request becomes a tunnel, without them it is an ordinary visit to a website.
- Chrome's fingerprint. The ClientHello and HTTP/2 behaviour come from Chrome's own code, not from an imitation of it, so they change when Chrome changes. An old build drifts away from current Chrome, hence the advice to stay on the latest release.
- One connection, many tunnels. Tunnels share an HTTP/2 connection, as tabs do in a browser.
--insecure-concurrencyopens more connections, and the program's own help warns that this makes tunnelling easier to detect. - Padding. The first 8 reads and writes of each tunnel get a 3-byte header and 0–255 random zero bytes, to flatten the size peaks of common handshakes. CONNECT requests carry a random
paddingheader (16–32 characters, 30–62 in the reply), and RST_STREAM frames are dressed up as HEADERS. - Padding is agreed. It is on only when both sides send the
paddingheader, so a naive client also works through a plain HTTP/2 proxy, and a browser can use a naive server. - Probe resistance. With
probe_resistance, Caddy stops answering “407 Proxy Authentication Required” to requests without valid credentials and behaves as a plain web server.
The naive+https:// link
NaiveProxy itself takes a proxy address: https://user:pass@example.com, or quic://… for HTTP/3. The naive+ prefix comes from a community format that clients adopted so such links can stand in a subscription next to others; a client strips naive+ and passes the rest to naive or to its own core.
naive+https://alice:s3cretPass@proxy.example.com:443#Home-Naive{
"type": "naive",
"tag": "proxy",
"server": "proxy.example.com",
"server_port": 443,
"username": "alice",
"password": "s3cretPass",
"tls": { "enabled": true, "server_name": "proxy.example.com" }
}In tls only server_name, certificate, certificate_path and ech are taken; "quic": true switches to HTTP/3. On Windows libcronet.dll must lie next to sing-box.exe.
- naive+https: HTTP/2 over TLS. naive+quic: HTTP/3 over QUIC, so over UDP.
- alice:s3cretPass: the
basic_authuser and password of the server, percent-encoded. - proxy.example.com:443: your domain with a real certificate; the port can be left out when it is 443.
- extra-headers: extra HTTP headers for each request, percent-encoded and separated by CRLF.
- sni, insecure-concurrency: read by NekoBox; other clients may ignore them.
- padding=true: found in older links from the original proposal. Padding is now agreed by the two sides on their own, and NekoBox doesn't read this field.
- #Home-Naive: the display name.
Setting up the server
The server is Caddy built with klzgrad's fork of forwardproxy, either a ready binary from the fork or your own build:
xcaddy build --with github.com/caddyserver/forwardproxy=github.com/klzgrad/forwardproxy@naivePoint a domain at the VPS, put real pages into the site folder and start Caddy with a Caddyfile like the one below; Caddy gets a certificate for the domain by itself. HAProxy can stand in front instead, the project wiki has a setup for it.
{
order forward_proxy before file_server
}
:443, proxy.example.com {
tls admin@example.com
forward_proxy {
basic_auth alice s3cretPass
hide_ip
hide_via
probe_resistance
}
file_server {
root /var/www/html
}
}:443 must come first. hide_ip and hide_via keep Caddy from adding the Forwarded and Via headers; file_server is what everyone without the password sees.
What a censor sees
A TLS connection to your domain on port 443 with Chrome's ClientHello, then HTTP/2 and a valid certificate. A probe without credentials gets the website, and with probe resistance there is no 407 to give the proxy away. What stays visible: the server's address and domain, how much traffic flows and when, and a long-lived connection to a little-known site.
In October 2022, when over a hundred users in China reported their TLS-based proxy servers blocked (Trojan, Xray, V2Ray, VLESS, gRPC), GFW Report's summary on net4people (issue 129) said it had received no report of NaiveProxy being blocked. That is an absence of reports, not a measurement.
Diwen Xue and colleagues included NaiveProxy in their USENIX Security 2024 study of TLS inside TLS, run at an ISP: the classifier caught 33% of its flows, against 70–88% for TLS proxies without padding or multiplexing and 51% for XTLS Vision. Their conclusion is that padding and multiplexing raise the cost but can't remove the extra round trips and bursts of a handshake inside a tunnel.
Weak spots named by the project and by sing-box: extra parallel connections and self-signed certificates change the traffic's behaviour and defeat the design, and an old client no longer looks like current Chrome. We found no published study of NaiveProxy servers being blocked by a national filter; like any server, its address can be blocked.
Clients and platforms
- naive: the project's own client for Windows, Linux, macOS and OpenWrt, working as a local SOCKS or HTTP proxy.
- Android: NekoBox, husi and Exclave, as named in the README.
- sing-box 1.13 and newer: a built-in outbound on Apple platforms, Android, Windows and some Linux builds.
- v2rayN: listed in the README as a third-party integration.
- Xray: has no NaiveProxy, so Xray-based apps don't open it.
Strengths and weaknesses
Strengths
- TLS and HTTP/2 come from Chrome's own code, not an imitation
- Strangers and probes see an ordinary website on Caddy
- Padded and multiplexed: 33% of flows caught in a 2024 study, 74% for Trojan
- HTTP/3 over QUIC as an option where UDP passes
Weaknesses
- Needs your own domain, a real certificate and Caddy built with a plugin
- The client must follow Chrome releases to keep the fingerprint current
- Few apps: not in Xray, and sing-box needs Chromium's cronet library
- Self-signed certificates and extra connections spoil the disguise
Where it works
Programs and servers from our comparison tables that list this protocol.
Clients
- v2rayN
- NekoRay
- sing-box
- PassWall
- PassWall 2
Servers and panels
- S-UI
- Hiddify Manager
Sources
- NaiveProxy repository and padding specification
- NaiveProxy: command line options (USAGE.txt)
- forwardproxy for Caddy, NaiveProxy fork
- sing-box docs: NaiveProxy outbound
- NekoBox source: naive+https link parser
- net4people/bbs #129: blocking of TLS-based tools in China (2022)
- USENIX Security 2024: Fingerprinting obfuscated proxy traffic (Xue et al.)