Skip to content

qist/xray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
github-actions[bot]
Mar 30, 2025
623aa30 · Mar 30, 2025
Jan 10, 2025
Dec 24, 2024
Jun 7, 2024
Mar 30, 2025
Apr 4, 2023
Oct 12, 2024
May 13, 2022
Dec 1, 2022
Dec 8, 2022
Mar 16, 2023
Feb 24, 2025

Repository files navigation

xray

xray 支持 trojan trojan-go v2ray 相关协议 以后只维护xray

客户端安装

规则

rule-providers:
  reject:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/reject.txt"
    path: ./profiles/rules/reject.yaml
    interval: 86400

  rejectcidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/rejectcidr.txt"
    path: ./profiles/rules/rejectcidr.yaml
    interval: 86400

  icloud:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/icloudcn.txt"
    path: ./profiles/rules/icloudcn.yaml
    interval: 86400

  apple:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/applecn.txt"
    path: ./profiles/rules/applecn.yaml
    interval: 86400

  win-spy:
    type: http
    behavior: domain
    format: text
    url: "https://rules.swsixtwo.top/clash/Ruleset/win-spy.txt"
    path: ./profiles/rules/win-spy.txt
    interval: 86400

  win-update:
    type: http
    behavior: domain
    format: text
    url: "https://rules.swsixtwo.top/clash/Ruleset/win-update.txt"
    path: ./profiles/rules/win-update.txt
    interval: 86400

  win-extra:
    type: http
    behavior: domain
    format: text
    url: "https://rules.swsixtwo.top/clash/Ruleset/win-extra.txt"
    path: ./profiles/rules/win-extra.txt
    interval: 86400

  googlel:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/google.txt"
    path: ./profiles/rules/google.yaml
    interval: 86400

  proxy:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/proxy.txt"
    path: ./profiles/rules/proxy.yaml
    interval: 86400

  direct:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/direct.txt"
    path: ./profiles/rules/direct.yaml
    interval: 86400

  private:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/private.txt"
    path: ./profiles/rules/private.yaml
    interval: 86400

  privatecn:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/privatecn.txt"
    path: ./profiles/rules/privatecn.yaml
    interval: 86400

  gfw:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/gfw.txt"
    path: ./profiles/rules/gfw.yaml
    interval: 86400

  tld-not-cn:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/tld-not-cn.txt"
    path: ./profiles/rules/tld-not-cn.yaml
    interval: 86400

  Foreignmedia:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/Foreignmedia.txt"
    interval: 86400
    path: ./profiles/rules/Foreignmedia.yaml

  Netflix:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/Netflix.txt"
    interval: 86400
    path: ./profiles/rules/Netflix.yaml

  telegramcidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/telegramcidr.txt"
    path: ./profiles/rules/telegramcidr.yaml
    interval: 86400

  proxy-ip-cidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/proxy-ip-cidr.txt"
    path: ./profiles/rules/proxy-ip-cidr.yaml
    interval: 86400

  lancidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/lancidr.txt"
    path: ./profiles/rules/lancidr.yaml
    interval: 86400

  applications:
    type: http
    behavior: classical
    url: "https://rules.swsixtwo.top/clash/Ruleset/applications.txt"
    path: ./profiles/rules/applications.yaml
    interval: 86400

  domain-proxy-cidr:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/domain-proxy-cidr.txt"
    path: ./profiles/rules/domain-proxy-cidr.yaml
    interval: 86400

  ip-proxy-cidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/ip-proxy-cidr.txt"
    path: ./profiles/rules/ip-proxy-cidr.yaml
    interval: 86400

  cncidr:
    type: http
    behavior: ipcidr
    url: "https://rules.swsixtwo.top/clash/Ruleset/cncidr.txt"
    path: ./profiles/rules/cncidr.yaml
    interval: 86400

  allcidr:
    type: http
    behavior: ipcidr
    format: text
    url: "https://rules.swsixtwo.top/clash/Ruleset/all_cn_cidr.txt"
    path: ./profiles/rules/all_cn_cidr.txt
    interval: 86400

  allipv6cidr:
    type: http
    behavior: ipcidr
    format: text
    url: "https://rules.swsixtwo.top/clash/Ruleset/all_cn_ipv6.txt"
    path: ./profiles/rules/all_cn_ipv6.txt
    interval: 86400

  tvb:
    type: http
    behavior: domain
    url: "https://rules.swsixtwo.top/clash/Ruleset/tvb.txt"
    path: ./profiles/rules/tvb.ymal
    interval: 86400
# 规则
rules:
  - RULE-SET,applications,DIRECT
  - RULE-SET,private,DIRECT
  - RULE-SET,privatecn,DIRECT
  - RULE-SET,reject,🛑 广告拦截
  - RULE-SET,rejectcidr,🛑 广告拦截
  - GEOSITE,category-ads-all,🛑 广告拦截
  - RULE-SET,lancidr,DIRECT,no-resolve
  - RULE-SET,allcidr,DIRECT,no-resolve
  - RULE-SET,allipv6cidr,DIRECT,no-resolve
  - RULE-SET,cncidr,DIRECT,no-resolve
  - RULE-SET,icloud,🍏 苹果
  - RULE-SET,apple,🍏 苹果
  - RULE-SET,win-spy,Ⓜ️ 微软
  - RULE-SET,win-update,Ⓜ️ 微软
  - RULE-SET,win-extra,Ⓜ️ 微软
  - RULE-SET,googlel,🐓 谷歌
  - RULE-SET,tvb,tvb
  - RULE-SET,Foreignmedia,🌍 国外媒体
  - RULE-SET,Netflix,🎥 NETFLIX
  - RULE-SET,proxy,✈️ 墙外网站
  - RULE-SET,gfw,✈️ 墙外网站
  - RULE-SET,tld-not-cn,✈️ 墙外网站
  - RULE-SET,telegramcidr,✈️ 墙外网站
  - GEOSITE,geolocation-!cn,✈️ 墙外网站
  - RULE-SET,domain-proxy-cidr,✈️ 墙外网站
  - RULE-SET,ip-proxy-cidr,✈️ 墙外网站,no-resolve
  - GEOSITE,!cn,✈️ 墙外网站
  - GEOIP,!CN,✈️ 墙外网站,no-resolve
  - RULE-SET,direct,DIRECT
  - GEOSITE,cn,DIRECT
  - GEOIP,private,DIRECT
  - GEOIP,CN,DIRECT
  - RULE-SET,proxy-ip-cidr,✈️ 墙外网站,no-resolve
  - MATCH,🐟 其他网站
nohup socat TCP4-LISTEN:80,reuseaddr,fork TCP4:192.168.3.99:80 >> socat.log 2>&1 &
nohup socat TCP4-LISTEN:443,reuseaddr,fork TCP4:192.168.3.99:443 >> socat.log 2>&1 &
nohup socat -T 600 UDP4-LISTEN:443,reuseaddr,fork UDP4:192.168.3.99:443 >> socat.log 2>&1 &