Skip to content

PandaRyshan/ladder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

228 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

容器化快速部署 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 | bash

查看 V2Ray 配置

V2Ray 配置在 ladder 目录下的 info.txt 内。

v2ray 转发配置示例

增加 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 脚本中包含简单的管理功能,可以根据编号使用相应功能。

组件

参考

Todo

  • add quic support for haproxy
  • add help

About

Quick start of v2ray via docker compose and shell script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors