X-UI开启SOCKS5代理套WARP

安装WARP的wireproxy模式,并开启Scoks5模式。

{
  "inbounds": [
    {
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "tag": "blocked"
    },
    {
      "protocol": "socks",
      "tag": "ChatGPT",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "port": 40000
          }
        ]
      }
    }
  ],
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "inboundTag": ["api"],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": ["geoip:private"],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "protocol": ["bittorrent"],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "domain": ["openai.com", "ai.com"],
        "outboundTag": "ChatGPT",
        "type": "field"
      }
    ]
  },
  "stats": {
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  }
}

第二个示例

{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "socks",
      "tag": "warp",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "port": 4000
          }
        ]
      }
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "handshake": 10,
        "connIdle": 100,
        "uplinkOnly": 2,
        "downlinkOnly": 3,
        "statsUserUplink": true,
        "statsUserDownlink": true,
        "bufferSize": 10240
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "outboundTag": "gpt",
        "domain": [
          "openai.com",
          "ai.com"
        ],
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      },
      {
        "outboundTag": "direct",
        "type": "field"
      }
    ]
  },
  "stats": {}
}

转自https://blog.rnaan.com/post/6

# 后端搭建程序  魔改版X-UI 脚本
## 进入ssh后,输入下列命令 (如是centos系统,请把apt换成yum,其他系统参照系统命令)

apt -y install curl && bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

## 运行按照提示安装,脚本的管理命令是x-ui,带web管理界面



# warp 流媒体解锁脚本

## 进入ssh后,输入下列命令 (如是centos系统,请把apt换成yum,其他系统参照系统命令)

apt -y install wget cron && wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh

## 安装内置的 wireproxy 模式(按键13) 或 cloudflare client 模式 (按键5),设置 warp 解锁 (按键11)用脚本模式自动刷新解锁IP,然后自行设置节点程序 x-ui或其他 的解锁配置

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注