/x-ui-scripts

This repository contains some useful scripts for x-ui and 3x-ui.

Primary LanguageShellMIT LicenseMIT

x-ui-scripts

This repository contains some useful scripts for x-ui and 3x-ui.

Scripts

Manual Build 3x-ui

bash <(curl -sSL https://raw.githubusercontent.com/hamid-gh98/x-ui-scripts/main/build_3x-ui.sh)

Install Warp (on socks5 proxy) for 3x-ui

bash <(curl -sSL https://raw.githubusercontent.com/hamid-gh98/x-ui-scripts/main/install_warp_proxy.sh)

options

  • -y => Accept default values
  • -f => Force reinstall Warp Socks5 Proxy (WireProxy)

commands

  • warp u => Uninstall Warp
  • warp a => Change Warp Account Type (free, plus, etc.)
  • warp y => Turn on/off WireProxy

Notes

  • To use IPv4 for routing warp:
    1. Go to Panel > Settings > Xray Configurations > Complete Template
    2. Find the object with tag WARP in outbounds:
      {
        "tag": "WARP",
        "protocol": "socks",
        "settings": {
          "servers": [
            {
              "address": "127.0.0.1",
              "port": 40000
            }
          ]
        }
      }
    3. Replace it with the following json object:
      {
        "tag": "WARP-socks5",
        "protocol": "socks",
        "settings": {
          "servers": [
            {
              "address": "127.0.0.1",
              "port": 40000
            }
          ]
        }
      },
      {
        "tag":"WARP",
        "protocol":"freedom",
        "proxySettings":{
          "tag":"WARP-socks5"
        },
        "settings":{
          "domainStrategy":"UseIPv4"
        }
      }
  • To use IPv6 for routing warp:
    • Follow the same steps as for IPv4, replacing UseIPv4 with UseIPv6