VPS YxVM购买链接

https://yxvm.com/aff.php?aff=204

 

域名购买链接Namesilo

https://www.namesilo.com/?rid=edea480fi

 

域名解析Cloudflare

https://www.cloudflare.com

 

更新VPS命令

sudo apt update && sudo apt upgrade -y

安装下载和解压工具

apt install wget tar

 

安装go-lang

wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz && export PATH=$PATH:/usr/local/go/bin

 

查看Go

go version

 

编译Naiveproxy

go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest

安装Naiveproxy

~/go/bin/xcaddy build –with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive

 

Caddyfile内容

:443, xxx.ashboy.com #你的域名
tls example@example.com #你的邮箱
route {
forward_proxy {
basic_auth username password #用户名和密码
hide_ip
hide_via
probe_resistance
}
reverse_proxy https://example.com { #伪装网址
header_up Host {upstream_hostport}
}
}

 

前台运行Caddy

./caddy run

 

关闭Caddy

ctrl+c

 

后台运行Caddy

./caddy start

 

V2rayN参数

{
“listen”: “socks://127.0.0.1:1080”,
“proxy”: “https://user:pass@example.com”
}

相关导航

暂无评论

暂无评论...