Socks5 入口,WARP(ZeroTrust) 出口:利用 Xray 搭建优化连接的中转

1. Xray

1. 安装 Xray

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

2. 配置 Xray

vim /usr/local/etc/xray/config.json

自行修改配置

{
  "log": {
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "listen": "0.0.0.0",
      "port": 30000,
      "protocol": "shadowsocks",
      "settings": {
        "method": "none",
        "password": "password"
      },
      "tag": "ria-socks-in"
    },
    {
      "listen": "0.0.0.0",
      "port": 20000,
      "protocol": "shadowsocks",
      "settings": {
        "method": "none",
        "password": "password"
      },
      "tag": "tpc-socks-in"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "proxySettings": {
        "tag": "freedomout"
      }
    },
    {
       "protocol": "socks",
       "settings": {
         "servers": [
           {
             "address": "127.0.0.1",
             "port": 40000
           }
         ]
       },
       "tag": "warp-proxy"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": ["tpc-socks-in"],
        "outboundTag": "warp-proxy"
      },
      {
        "type": "field",
        "inboundTag": ["ria-socks-in"],
        "outboundTag": "freedomout"
      }
    ],
     "strategy": "rules"
  }
}

设置完之后开放对应的端口,然后重启服务:

systemctl restart xray

2. Cloudflare WARP (ZeroTrust)

    1. 安装WARP

    curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
    
    vim /etc/apt/sources.list.d/cloudflare-client.list

    将bookworm改为你对应的系统的代号,此处使用Debian 12举例

    deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://packages.cloudflare.com/cloudflared/ bookworm main
    apt-get update
    apt-get install cloudflare-warp

    2. 创建新用户

    adduser username
    usermod -aG sudo username
    

    3. 注册组织

    sudo -u username warp-cli registration new YOUR_TEAM_NAME
    sudo -u username warp-cli registration token "your access token"

    4. 连接WARP

    warp-cli connect

    暂无评论

    发送评论 编辑评论

    
    				
    |´・ω・)ノ
    ヾ(≧∇≦*)ゝ
    (☆ω☆)
    (╯‵□′)╯︵┴─┴
     ̄﹃ ̄
    (/ω\)
    ∠( ᐛ 」∠)_
    (๑•̀ㅁ•́ฅ)
    →_→
    ୧(๑•̀⌄•́๑)૭
    ٩(ˊᗜˋ*)و
    (ノ°ο°)ノ
    (´இ皿இ`)
    ⌇●﹏●⌇
    (ฅ´ω`ฅ)
    (╯°A°)╯︵○○○
    φ( ̄∇ ̄o)
    ヾ(´・ ・`。)ノ"
    ( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
    (ó﹏ò。)
    Σ(っ °Д °;)っ
    ( ,,´・ω・)ノ"(´っω・`。)
    ╮(╯▽╰)╭
    o(*////▽////*)q
    >﹏<
    ( ๑´•ω•) "(ㆆᴗㆆ)
    😂
    😀
    😅
    😊
    🙂
    🙃
    😌
    😍
    😘
    😜
    😝
    😏
    😒
    🙄
    😳
    😡
    😔
    😫
    😱
    😭
    💩
    👻
    🙌
    🖕
    👍
    👫
    👬
    👭
    🌚
    🌝
    🙈
    💊
    😶
    🙏
    🍦
    🍉
    😣
    Source: github.com/k4yt3x/flowerhd
    颜文字
    Emoji
    小恐龙
    花!
    上一篇