容器化快速部署 v2ray shadowsocks-rust openvpn warp 等服务,使用 haproxy 作为 tcp 路由,nginx 作为 http 路由,内置 certbot 自动申请证书,以实现代理和 web 服务共享端口。
ss 和 openvpn 共享 443 端口的意义不大,如果需要,可以停止使用 haproxy 的 tls 终止,并根据 sni 特征分流即可。
- 512MB RAM
- Ubuntu / Debian / Arch / Fedora / CentOS
- 拥有一个域名,并解析到服务器 IP
- 确保 VPS 的 80 和 443 端口是开放的
curl -fsSL https://raw.githubusercontent.com/PandaRyshan/ladder/main/setup.sh | bashV2Ray 配置在 ladder 目录下的 info.txt 内。
增加 rules 规则,按 inboundTag 拦截所有请求并转发,例如:
"outbounds": [
{
"tag": "my-remote-server",
"protocol": "vmess",
"settings": {
"vnext": [
"address": "my-remote-server.com",
"port": 443,
"users": [{"xxxxxx-xxxxxx-xxxxxx-xxxxxx"}]
]
},
"streamSettings": {
"network": "tcp",
"security": "tls"
}
}
]
"routing": {
"rules": [
{
"type": "field",
"inboundTag": ["tcp"]
"outboundTag": "my-remote-server"
}
]
}setup.sh 脚本中包含简单的管理功能,可以根据编号使用相应功能。
- V2Ray: V2Ray 代理服务 + DNS
- HAProxy: TCP 路由
- SWAG: HTTP 路由 + Web + CertBot
- Cloudflare-WARP: Cloudflare 提供的 socks5 代理
- OpenVPN:安全加密方式的 VPN
- guide.v2fly.org
- v2fly.org
- v2ray.com
- haproxy manual
- haproxy.com
- ocserv manual
- openvpn howto
- openvpn ref
- 科学上网 | 左耳朵耗子
- add quic support for haproxy
- add help