Socks二级代理分流解锁

494次阅读
没有评论

共计 2601 个字符,预计需要花费 7 分钟才能阅读完成。

流媒体解锁用 SG

AI 类和 tiktok 用 us,如下:

实现 HK 节点解锁 GPT、Tiktok、ClaudeAI、Google Gemini 以及 Netflix、Disney、HBO 等流媒体

{
  "log": {
    "access": "/usr/local/x-ui/bin/access.log",
    "error": "/usr/local/x-ui/bin/error.log",
    "loglevel": "warning",
    "dnsLog": false
  },
  "api": {
    "tag": "api",
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ]
  },
  "inbounds": [
  {
      "listen": "127.0.0.1",
      "port": 30000,
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
}
      },
    {
      "tag": "api",
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {"address": "127.0.0.1"}
    }
  ],
  "outbounds": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {"domainStrategy": "UseIP"}
    },
    {
      "tag": "bageforclaw",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "xxxx",
            "port": xxxx,
            "users": [
              {
                "user": "xxxx",
                "pass": "xxxx",
                "level": 0
              }
            ]
          }
        ]
      }
    },
    {
      "tag": "wapforclaw",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "xxxx",
            "port":xxxx,
            "users": [
              {
                "user": "xxxx",
                "pass": "xxxx",
                "level": 0
              }
            ]
          }
        ]
      }
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}}
  ],
  "policy": {
    "levels": {
      "0": {
        "statsUserDownlink": true,
        "statsUserUplink": true
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true,
      "statsOutboundDownlink": true,
      "statsOutboundUplink": true
    }
  },
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "type": "field",
        "inboundTag": ["api"],
        "outboundTag": "api"
      },
      {
        "type": "field",
        "outboundTag": "bageforclaw",
        "domain": [
          "geosite:primevideo",
"geosite:google-gemini",
          "geosite:openai",
          "ai.com",
          "chatgpt.com",
          "chat.com",
          "oaistatic.com",
          "oaiusercontent.com",
          "openai.com",
          "sora.com",
          "gemini.google.com",
          "geosite:tiktok",
          "byteoversea.com",
          "muscdn.com",
          "musical.ly",
          "tik-tokapi.com",
          "tiktok.com",
          "tiktokcdn-eu.com",
          "tiktokcdn-us.com",
          "tiktokcdn.com",
          "tiktokd.net",
          "tiktokd.org",
          "tiktokv.com",
          "tiktokv.eu",
          "tiktokv.us",
          "tiktokw.eu",
          "tiktokw.us",
          "ttlivecdn.com",
          "ttwstatic.com",
          "p16-tiktokcdn-com.akamaized.net",
          "claude.ai",
          "anthropic.com",
          "ai.google.dev",
          "alkalimakersuite-pa.clients6.google.com",
          "makersuite.google.com"
        ],
        "domain_suffix": [
          "bard.google.com",
          "gemini.google.com",
          "generativeai.google",
          "proactivebackend-pa.googleapis.com",
          "apis.google.com"
        ],
        "domain_keyword": [
          "colab",
          "developerprofiles",
          "generativelanguage"
        ]
      },
      {
        "type": "field",
        "outboundTag": "wapforclaw",
        "domain": [
          "geosite:netflix",
          "geosite:disney",
          "fast.com",
          "netflix.ca",
          "netflix.com",
          "netflix.net",
          "netflixinvestor.com",
          "netflixtechblog.com",
          "nflxext.com",
          "nflximg.com",
          "nflximg.net",
          "nflxsearch.net",
          "nflxso.net",
          "nflxvideo.net",
          "geosite:spotify",
          "geosite:HBO"
        ],
        "domain_suffix": [
          "netflix.com"
        ]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "ip": ["geoip:private"]
      },
      {
        "type": "field",
        "outboundTag": "blocked",
        "protocol": ["bittorrent"]
      }
    ]
  },
  "stats": {}}

正文完
 0
Suleto
版权声明:本站原创文章,由 Suleto 于2024-12-28发表,共计2601字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)