# Naiveproxy五分钟上手指南 **Published by:** [Liam Zhu](https://paragraph.com/@lstax/) **Published on:** 2022-12-03 **URL:** https://paragraph.com/@lstax/naiveproxy ## Content 准备注册并解析一个域名 https://www.namesilo.com/ https://dash.cloudflare.com/准备一台VPS,至少1 GB RAM服务器部署go version #按提示安装后再进行 go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest ~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive 创建Caddyfile配置:443, xxx.123.xyz #替换域名 tls 123@gmail.com #替换邮箱,申请证书 route { forward_proxy { basic_auth user1 pass1 #用户名和密码 hide_ip hide_via probe_resistance } #支持多用户 forward_proxy { basic_auth user2 pass2 #用户名和密码 hide_ip hide_via probe_resistance } reverse_proxy https://www.bing.com { header_up Host {upstream_hostport} header_up X-Forwarded-Host {host} } } caddy常用指令前台运行caddy:./caddy run后台运行caddy:./caddy start停止caddy:./caddy stop重载配置:./caddy reload客户端推荐 passwall、Shadowrocket ## Publication Information - [Liam Zhu](https://paragraph.com/@lstax/): Publication homepage - [All Posts](https://paragraph.com/@lstax/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@lstax): Subscribe to updates - [Twitter](https://twitter.com/liamzhueth): Follow on Twitter