NaiveProxy: Chrome's network stack as a proxy, the naive+https link and server setup

NaiveProxy is a proxy client made from Chromium's network code: it opens HTTP/2 (or HTTP/3) CONNECT tunnels to an ordinary web server, so its TLS handshake and HTTP/2 behaviour are those of Chrome. On the server, Caddy with the forwardproxy plugin shows strangers a normal website and lets in only requests with the right password. The first packets of each tunnel are padded to blur their sizes.

Updated

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

  1. Jan 2018

    The project starts

    klzgrad opens the NaiveProxy repository: a proxy made from Chromium's own network stack.

  2. 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.

  3. 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.

  4. 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-concurrency opens 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 padding header (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 padding header, 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.

Example
naive+https://alice:s3cretPass@proxy.example.com:443#Home-Naive
The same server as a sing-box 1.13 outbound
{
  "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_auth user 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:

Terminal
xcaddy build --with github.com/caddyserver/forwardproxy=github.com/klzgrad/forwardproxy@naive

Point 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.

Caddyfile, from the NaiveProxy README
{
  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

Compare these programs

Sources

How we write and check

In Veli

NaiveProxy in Veli: not supported

Veli doesn't connect NaiveProxy: it doesn't open naive+https:// links, and such lines in a subscription are left out. What it does open is VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC, WireGuard, AmneziaWG and OpenVPN.

Questions

Is there a NaiveProxy client for Android and iOS?

On Android: NekoBox, husi and Exclave, named in the NaiveProxy README, and sing-box 1.13 or newer. On iPhone and iPad, sing-box 1.13 and newer has the outbound on Apple platforms.

Does NaiveProxy run on OpenWrt?

Yes, the project builds for OpenWrt, and its wiki keeps the support status.

Is NaiveProxy blocked?

No published study shows NaiveProxy servers blocked as a class. In the 2022 wave against TLS proxies in China, GFW Report had no reports about it, and a 2024 study still recognised a third of its flows. A server's address can be blocked like any other.

NaiveProxy or Trojan?

Both hide in TLS on port 443 behind a website. Trojan clients imitate a browser with libraries such as uTLS, NaiveProxy uses Chrome's code itself and pads and multiplexes; in the 2024 USENIX study that meant 33% of flows detected against 74% for Trojan over TLS.

Can NaiveProxy use a self-signed certificate?

It shouldn't: sing-box's documentation says a self-signed certificate changes the traffic's behaviour and defeats the design. Use a domain with a public certificate, which Caddy gets by itself.

Why does NaiveProxy need Caddy?

The server has to look like a normal website and turn into a proxy only for requests with the password. Caddy with klzgrad's forwardproxy does both and adds the padding layer; HAProxy setups exist too.