-
install golang as here
- get forwardproxy with naïve fork ( naïve standalone version here )
git clone -b naive https://github.com/klzgrad/forwardproxy
- get caddy2 custom build tool
xcaddy
go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
- compile caddy with module (with naive forwardproxy + dns cloudflare)
~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy=$PWD/forwardproxy --with github.com/caddy-dns/cloudflare
- caddy is located pwd
./caddy version ./caddy list-modules which caddy mv ./caddy /usr/bin/caddy
- pre build release download:
here - https://github.com/bibugo/caddy2-with-cloudflare-naive/releases
- naive config in caddy’s config.json
{ "handle": [ { "handler": "forward_proxy", "auth_user": "username", "auth_pass": "password", "hide_ip": true, "hide_via": true, "probe_resistance": { "domain": "" } } ] }