├── Backup ├── doc.openwrt.cc.zip └── vless+ws+tls+nginx+cdn.json ├── Base64 └── Aries.txt ├── README.md ├── ACL4SSR ├── ACL4SSR.ini └── acl4ssr_with_antiad.ini ├── Clash Mate ├── config.yaml ├── Mihomo.yaml └── config2.yaml └── Code ├── QLOneKeyDependency.sh └── x-ui.sh /Backup/doc.openwrt.cc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanwangokk-1/subscribe/HEAD/Backup/doc.openwrt.cc.zip -------------------------------------------------------------------------------- /Base64/Aries.txt: -------------------------------------------------------------------------------- 1 | dmxlc3M6Ly85NmJlZWE5Yi01NTAzLTRiOWMtODRmNy1iYzVhMTZiNjliYjlAd3d3Lnd0by5vcmc6NDQzP2FscG49aDMmZWQ9MjA0OCZlaD1TZWMtV2ViU29ja2V0LVByb3RvY29sJmVuY3J5cHRpb249bm9uZSZob3N0PWJvYi1iZW56LXVzYy1zcG9rZXNtYW4udHJ5Y2xvdWRmbGFyZS5jb20mcGF0aD0lMkY5NmJlZWE5Yi01NTAzLTRiOWMtODRmNy1iYzVhMTZiNjliYjktdmxlc3Mmc2VjdXJpdHk9dGxzJnNuaT1ib2ItYmVuei11c2Mtc3Bva2VzbWFuLnRyeWNsb3VkZmxhcmUuY29tJnR5cGU9d3MjREUlMjB2bGVzcy13cy10bHM= 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ![Arise's GitHub stats](https://github-readme-stats-ten-gilt.vercel.app/api?username=yuanwangokk-1&count_private=true&show_icons=true&theme=radical&include_all_commits=true) 4 | ![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=yuanwangokk-1&layout=compact&hide=css,scss,shell,html&langs_count=8&show_icons=true&theme=radical) 5 | 6 | 7 | # subscription 8 | 9 | 订阅面板转换链接:https://sub.v1.mk/ 10 | 11 | 前端订阅面板:https://acl4ssr-sub.github.io/ 12 | 13 | 后端订阅链接:https://url.v1.mk 14 | 15 | cloudflare邮箱:yuanwangokk@proton.me 16 | 17 | ===================================================== 18 | 19 | Clash meta 订阅链接: 20 | 21 | ```js 22 | https://catbox.moe/ 23 | ``` 24 | 25 | ```js 26 | https://igdux.top/ 27 | ``` 28 | ```js 29 | https://dpaste.org/ 30 | 31 | https://pastebin.mozilla.org/ 32 | 33 | https://URL/sub?host=[域名]&uuid=[UUID]&path=[路径] 34 | ``` 35 | 36 | SingBox 订阅链接: 37 | 38 | ```js 39 | https://igdux.top/ 40 | 41 | https://dpaste.org/ 42 | 43 | https://pastebin.mozilla.org/ 44 | ``` 45 | 46 | Acl4ssr配置文件: 47 | 48 | ```js 49 | https%3A%2F%2Fraw.githubusercontent.com%2Fyuanwangokk-1%2Fsubscribe%2Frefs%2Fheads%2Fmain%2FACL4SSR%2Facl4ssr_with_antiad.ini 50 | ``` 51 | ```js 52 | https%3A%2F%2Fraw.githubusercontent.com%2Fyuanwangokk-1%2Fsubscribe%2Frefs%2Fheads%2Fmain%2FACL4SSR%2FAWAvenue-Ads-Rule-Clash.yaml 53 | ``` 54 | 55 | ===================================================== 56 | 57 | -------------------------------------------------------------------------------- /ACL4SSR/ACL4SSR.ini: -------------------------------------------------------------------------------- 1 | [custom] 2 | ;不要随意改变关键字,否则会导致出错 3 | ;acl4SSR规则 4 | 5 | ;去广告:支持 6 | ;自动测速:支持 7 | ;微软分流:支持 8 | ;苹果分流:支持 9 | ;增强中国IP段:不支持 10 | ;增强国外GFW:不支持 11 | 12 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/LocalAreaNetwork.list 13 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/UnBan.list 14 | ruleset=🛑 全球拦截,https://github.com/TG-Twilight/AWAvenue-Ads-Rule/raw/refs/heads/main/Filters/AWAvenue-Ads-Rule-Surge-RULE-SET.list 15 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GoogleCN.list 16 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/SteamCN.list 17 | ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Telegram.list 18 | ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyMedia.list 19 | ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyLite.list 20 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaDomain.list 21 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaCompanyIp.list 22 | ruleset=🎯 全球直连,[]GEOIP,CN 23 | ruleset=🐟 漏网之鱼,[]FINAL 24 | 25 | custom_proxy_group=🚀 节点选择`select`[]♻️ 自动选择`[]DIRECT`.* 26 | custom_proxy_group=♻️ 自动选择`url-test`.*`http://www.gstatic.com/generate_204`300,,50 27 | custom_proxy_group=🎯 全球直连`select`[]DIRECT`[]🚀 节点选择`[]♻️ 自动选择 28 | custom_proxy_group=🛑 全球拦截`select`[]REJECT`[]DIRECT 29 | custom_proxy_group=🐟 漏网之鱼`select`[]🚀 节点选择`[]🎯 全球直连`[]♻️ 自动选择`.* 30 | -------------------------------------------------------------------------------- /Clash Mate/config.yaml: -------------------------------------------------------------------------------- 1 | mixed-port: 7890 2 | 3 | # 授权账号密码 4 | # authentication: 5 | # - "user:pwd" 6 | 7 | allow-lan: true 8 | mode: rule 9 | log-level: warning 10 | external-controller: 0.0.0.0:9090 11 | external-ui: ui 12 | secret: "pwd" 13 | 14 | dns: 15 | enabled: true 16 | listen: 0.0.0.0:53 17 | ipv6: true 18 | prefer-h3: true 19 | enhanced-mode: fake-ip 20 | fake-ip-range: 198.18.0.1/16 21 | fake-ip-filter: 22 | - "+.lan" 23 | - "+.local" 24 | default-nameserver: 25 | - 223.5.5.5 26 | - 119.29.29.29 27 | - 1.1.1.1 28 | - 8.8.8.8 29 | nameserver: 30 | - https://1.1.1.1/dns-query 31 | - https://8.8.8.8/dns-query 32 | - tls://one.one.one.one:853 33 | - tls://dns.google:853 34 | - https://one.one.one.one/dns-query 35 | - https://dns.google/dns-query 36 | nameserver-policy: 37 | geosite:cn,private: 38 | - https://223.5.5.5/dns-query 39 | - https://119.29.29.29/dns-query 40 | - tls://doh.pub:853 41 | - tls://dns.alidns.com:853 42 | - https://doh.pub/dns-query 43 | - https://dns.alidns.com/dns-query 44 | 45 | proxy-groups: 46 | - { 47 | name: ♻️ 自动选择, 48 | type: url-test, 49 | use: [proxies], 50 | url: "http://www.gstatic.com/generate_204", 51 | interval: 3600, 52 | } 53 | 54 | proxy-providers: 55 | proxies: 56 | type: http 57 | url: URL # 这里添加clash订阅链接 58 | interval: 86400 59 | path: ./proxies.yaml 60 | 61 | rules: 62 | - DOMAIN-KEYWORD,wogg,DIRECT 63 | - MATCH,♻️ 自动选择 -------------------------------------------------------------------------------- /Code/QLOneKeyDependency.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | # 青龙一键安装脚本 5 | # GitHub仓库: https://github.com/FlechazoPh/QLDependency 6 | 7 | # 安装报错,请提交Issue 8 | 9 | # 有其他需要的依赖,欢迎到源仓库提交Pull Request 10 | 11 | TIME() { 12 | [[ -z "$1" ]] && { 13 | echo -ne " " 14 | } || { 15 | case $1 in 16 | r) export Color="\e[31;1m";; 17 | g) export Color="\e[32;1m";; 18 | b) export Color="\e[34;1m";; 19 | y) export Color="\e[33;1m";; 20 | z) export Color="\e[35;1m";; 21 | l) export Color="\e[36;1m";; 22 | esac 23 | [[ $# -lt 2 ]] && echo -e "\e[36m\e[0m ${1}" || { 24 | echo -e "\e[36m\e[0m ${Color}${2}\e[0m" 25 | } 26 | } 27 | } 28 | echo 29 | echo 30 | echo 31 | TIME l "安装依赖..." 32 | echo 33 | TIME y "安装依赖需要时间,请耐心等待!" 34 | echo 35 | sleep 3 36 | echo 37 | echo 38 | 39 | echo 40 | "当前node版本(如果没有node,请自行安装): " 41 | node -v 42 | 43 | echo 44 | "当前npm版本(如果没有npm,请自行安装): " 45 | npm -v 46 | 47 | npm config set registry https://registry.npmmirror.com 48 | cd /ql 49 | pnpm add -g pnpm 50 | 51 | pnpm install -g 52 | 53 | npm install -g npm png-js date-fns axios crypto-js ts-md5 tslib @types/node requests tough-cookie jsdom download tunnel fs ws form-data 54 | 55 | pnpm install -g js-base64 qrcode-terminal silly-datetime 56 | 57 | pip3 install requests 58 | 59 | cd /ql/scripts/ && apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && npm i && npm i -S ts-node typescript @types/node date-fns axios png-js canvas --build-from-source 60 | cd /ql 61 | apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && cd scripts && npm install canvas --build-from-source 62 | cd /ql 63 | apk add python3 zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev 64 | 65 | echo 66 | TIME g "依赖安装完毕...建议重启 Docker " 67 | 68 | echo 69 | TIME g "有任何问题,请在此仓库提交Issue: https://github.com/FlechazoPh/QLDependency" 70 | echo 71 | exit 0 -------------------------------------------------------------------------------- /Backup/vless+ws+tls+nginx+cdn.json: -------------------------------------------------------------------------------- 1 | 节点搭建 2 | 3 | =========================================================================================================== 4 | #更新软件源 5 | apt update 6 | #启用 BBR TCP 拥塞控制算法 7 | echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf 8 | echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 9 | sysctl -p 10 | 11 | #安装x-ui: 12 | bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 13 | 14 | #安装nginx 15 | apt install nginx 16 | #安装acme: 17 | curl https://get.acme.sh | sh 18 | #添加软链接: 19 | ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh 20 | #切换CA机构: 21 | acme.sh --set-default-ca --server letsencrypt 22 | #申请证书: 23 | acme.sh --issue -d 你的域名 -k ec-256 --webroot /var/www/html 24 | #安装证书: 25 | acme.sh --install-cert -d 你的域名 --ecc --key-file /etc/x-ui/server.key --fullchain-file /etc/x-ui/server.crt --reloadcmd "systemctl force-reload nginx" 26 | =========================================================================================================== 27 | 28 | 配置 nginx# 29 | 配置文件路径:/etc/nginx/nginx.conf 30 | 31 | =========================================================================================================== 32 | user www-data; 33 | worker_processes auto; 34 | pid /run/nginx.pid; 35 | include /etc/nginx/modules-enabled/*.conf; 36 | 37 | events { 38 | worker_connections 1024; 39 | } 40 | 41 | http { 42 | sendfile on; 43 | tcp_nopush on; 44 | tcp_nodelay on; 45 | keepalive_timeout 65; 46 | types_hash_max_size 2048; 47 | 48 | include /etc/nginx/mime.types; 49 | default_type application/octet-stream; 50 | gzip on; 51 | 52 | server { 53 | listen 443 ssl; 54 | 55 | server_name nicename.co; #你的域名 56 | ssl_certificate /etc/x-ui/server.crt; #证书位置 57 | ssl_certificate_key /etc/x-ui/server.key; #私钥位置 58 | 59 | ssl_session_timeout 1d; 60 | ssl_session_cache shared:MozSSL:10m; 61 | ssl_session_tickets off; 62 | ssl_protocols TLSv1.2 TLSv1.3; 63 | ssl_prefer_server_ciphers off; 64 | 65 | location / { 66 | proxy_pass https://bing.com; #伪装网址 67 | proxy_redirect off; 68 | proxy_ssl_server_name on; 69 | sub_filter_once off; 70 | sub_filter "bing.com" $server_name; 71 | proxy_set_header Host "bing.com"; 72 | proxy_set_header Referer $http_referer; 73 | proxy_set_header X-Real-IP $remote_addr; 74 | proxy_set_header User-Agent $http_user_agent; 75 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 76 | proxy_set_header X-Forwarded-Proto https; 77 | proxy_set_header Accept-Encoding ""; 78 | proxy_set_header Accept-Language "zh-CN"; 79 | } 80 | 81 | 82 | location /ray { #分流路径 83 | proxy_redirect off; 84 | proxy_pass http://127.0.0.1:10000; #Xray端口 85 | proxy_http_version 1.1; 86 | proxy_set_header Upgrade $http_upgrade; 87 | proxy_set_header Connection "upgrade"; 88 | proxy_set_header Host $host; 89 | proxy_set_header X-Real-IP $remote_addr; 90 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 91 | } 92 | 93 | location /xui { #xui路径 94 | proxy_redirect off; 95 | proxy_pass http://127.0.0.1:9999; #xui监听端口 96 | proxy_http_version 1.1; 97 | proxy_set_header Host $host; 98 | } 99 | } 100 | 101 | server { 102 | listen 80; 103 | location /.well-known/ { 104 | root /var/www/html; 105 | } 106 | location / { 107 | rewrite ^(.*)$ https://$host$1 permanent; 108 | } 109 | } 110 | } 111 | =========================================================================================================== 112 | 每次修改 nginx 配置文件后必须使用 systemctl reload nginx 命令重新加载配置文件。 113 | -------------------------------------------------------------------------------- /ACL4SSR/acl4ssr_with_antiad.ini: -------------------------------------------------------------------------------- 1 | [custom] 2 | ;不要随意改变关键字,否则会导致出错 3 | ;acl4SSR规则 4 | 5 | ;去广告:支持 6 | ;自动测速:支持 7 | ;微软分流:支持 8 | ;苹果分流:支持 9 | ;增强中国IP段:支持 10 | ;增强国外GFW:支持 11 | 12 | ;设置规则标志位 13 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/LocalAreaNetwork.list 14 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/UnBan.list 15 | ruleset=🛑 广告拦截,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list 16 | ruleset=🍃 应用净化,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanProgramAD.list 17 | ruleset=🆎 AdBlock,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanEasyList.list 18 | ruleset=🆎 AdBlock,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanEasyListChina.list 19 | ruleset=🆎 Anti-AD,https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge.txt 20 | ruleset=🛡️ 隐私防护,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanEasyPrivacy.list 21 | ruleset=📢 谷歌FCM,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/GoogleFCM.list 22 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GoogleCN.list 23 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/SteamCN.list 24 | ruleset=Ⓜ️ 微软云盘,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/OneDrive.list 25 | ruleset=Ⓜ️ 微软服务,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Microsoft.list 26 | ruleset=🍎 苹果服务,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Apple.list 27 | ruleset=📲 电报消息,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Telegram.list 28 | ruleset=🎶 网易音乐,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/NetEaseMusic.list 29 | ruleset=🎮 游戏平台,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Epic.list 30 | ruleset=🎮 游戏平台,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Sony.list 31 | ruleset=🎮 游戏平台,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Steam.list 32 | ruleset=📹 油管视频,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/YouTube.list 33 | ruleset=🎥 奈飞视频,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Netflix.list 34 | ruleset=📺 巴哈姆特,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Bahamut.list 35 | ruleset=📺 哔哩哔哩,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/BilibiliHMT.list 36 | ruleset=📺 哔哩哔哩,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/Bilibili.list 37 | ruleset=🌏 国内媒体,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaMedia.list 38 | ruleset=🌍 国外媒体,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyMedia.list 39 | ruleset=🚀 节点选择,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ProxyGFWlist.list 40 | ;ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaIp.list 41 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaDomain.list 42 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/ChinaCompanyIp.list 43 | ruleset=🎯 全球直连,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Download.list 44 | ;ruleset=🎯 全球直连,[]GEOIP,LAN 45 | ruleset=🎯 全球直连,[]GEOIP,CN 46 | ruleset=🐟 漏网之鱼,[]FINAL 47 | ;设置规则标志位 48 | 49 | ;设置分组标志位 50 | custom_proxy_group=🚀 节点选择`select`[]♻️ 自动选择`[]🔯 故障转移`[]🔮 负载均衡`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换`[]DIRECT 51 | custom_proxy_group=🚀 手动切换`select`.* 52 | custom_proxy_group=♻️ 自动选择`url-test`.*`http://www.gstatic.com/generate_204`300,,50 53 | custom_proxy_group=🔯 故障转移`fallback`.*`http://www.gstatic.com/generate_204`300,,50 54 | custom_proxy_group=🔮 负载均衡`load-balance`.*`http://www.gstatic.com/generate_204`300,,50 55 | custom_proxy_group=📲 电报消息`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇸🇬 狮城节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换`[]DIRECT 56 | custom_proxy_group=📹 油管视频`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇸🇬 狮城节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换`[]DIRECT 57 | custom_proxy_group=🎥 奈飞视频`select`[]🎥 奈飞节点`[]🚀 节点选择`[]♻️ 自动选择`[]🇸🇬 狮城节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换`[]DIRECT 58 | custom_proxy_group=📺 巴哈姆特`select`[]🇨🇳 台湾节点`[]🚀 节点选择`[]🚀 手动切换`[]DIRECT 59 | custom_proxy_group=📺 哔哩哔哩`select`[]🎯 全球直连`[]🇨🇳 台湾节点`[]🇭🇰 香港节点 60 | custom_proxy_group=🌍 国外媒体`select`[]🚀 节点选择`[]♻️ 自动选择`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换`[]DIRECT 61 | custom_proxy_group=🌏 国内媒体`select`[]DIRECT`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🚀 手动切换 62 | custom_proxy_group=📢 谷歌FCM`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇰🇷 韩国节点`[]🚀 手动切换 63 | custom_proxy_group=Ⓜ️ 微软云盘`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇰🇷 韩国节点`[]🚀 手动切换 64 | custom_proxy_group=Ⓜ️ 微软服务`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇰🇷 韩国节点`[]🚀 手动切换 65 | custom_proxy_group=🍎 苹果服务`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇰🇷 韩国节点`[]🚀 手动切换 66 | custom_proxy_group=🎮 游戏平台`select`[]DIRECT`[]🚀 节点选择`[]🇺🇲 美国节点`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇰🇷 韩国节点`[]🚀 手动切换 67 | custom_proxy_group=🎶 网易音乐`select`[]DIRECT`[]🚀 节点选择`[]♻️ 自动选择`(网易|音乐|解锁|Music|NetEase) 68 | custom_proxy_group=🎯 全球直连`select`[]DIRECT`[]🚀 节点选择`[]♻️ 自动选择 69 | custom_proxy_group=🛑 广告拦截`select`[]REJECT`[]DIRECT 70 | custom_proxy_group=🍃 应用净化`select`[]REJECT`[]DIRECT 71 | custom_proxy_group=🆎 AdBlock`select`[]REJECT`[]DIRECT 72 | custom_proxy_group=🆎 Anti-AD`select`[]REJECT`[]DIRECT 73 | custom_proxy_group=🛡️ 隐私防护`select`[]REJECT`[]DIRECT 74 | custom_proxy_group=🐟 漏网之鱼`select`[]🚀 节点选择`[]♻️ 自动选择`[]DIRECT`[]🇭🇰 香港节点`[]🇨🇳 台湾节点`[]🇸🇬 狮城节点`[]🇯🇵 日本节点`[]🇺🇲 美国节点`[]🇰🇷 韩国节点`[]🚀 手动切换 75 | custom_proxy_group=🇭🇰 香港节点`url-test`(港|HK|Hong Kong)`http://www.gstatic.com/generate_204`300,,50 76 | custom_proxy_group=🇯🇵 日本节点`url-test`(日本|川日|东京|大阪|泉日|埼玉|沪日|深日|[^-]日|JP|Japan)`http://www.gstatic.com/generate_204`300,,50 77 | custom_proxy_group=🇺🇲 美国节点`url-test`(美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States)`http://www.gstatic.com/generate_204`300,,150 78 | custom_proxy_group=🇨🇳 台湾节点`url-test`(台|新北|彰化|TW|Taiwan)`http://www.gstatic.com/generate_204`300,,50 79 | custom_proxy_group=🇸🇬 狮城节点`url-test`(新加坡|坡|狮城|SG|Singapore)`http://www.gstatic.com/generate_204`300,,50 80 | custom_proxy_group=🇰🇷 韩国节点`url-test`(KR|Korea|KOR|首尔|韩|韓)`http://www.gstatic.com/generate_204`300,,50 81 | custom_proxy_group=🎥 奈飞节点`select`(NF|奈飞|解锁|Netflix|NETFLIX|Media) 82 | ;设置分组标志位 83 | 84 | enable_rule_generator=true 85 | overwrite_original_rules=true 86 | 87 | ;clash_rule_base=https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/GeneralClashConfig.yml 88 | 89 | ;luck 90 | -------------------------------------------------------------------------------- /Clash Mate/Mihomo.yaml: -------------------------------------------------------------------------------- 1 | # Author:https://github.com/Repcz 2 | # TG:https://t.me/QVQ_Channel 3 | # 4 | # 官方文档:https://wiki.metacubex.one/ 5 | # 6 | # 以 '#' 或 '//' 开头的配置文件行为注释行 7 | # 8 | # Mihomo Version ≥ 1.8.4 9 | # 10 | # 最后更新时间: 2024-10-14 19:00 11 | # 12 | # ================ 13 | 14 | p: &p {type: http, interval: 86400, health-check: {enable: true, url: http://connectivitycheck.gstatic.com/generate_204, interval: 1800, timeout: 5000}} 15 | proxy-providers: 16 | Subscribe: # 在此将 "http://your-service-provider" 替换为你的机场订阅,推荐使用 base64 或者 node list 17 | url: https://url.v1.mk/sub?target=clash&url=https%3A%2F%2Fwvsvlees.sosorg.nyc.mn%2Fsub%3Fhost%3Dvless-vmess.pages.dev%26uuid%3Dba55ef37-c33c-4a8f-aafa-2abc85312863%26path%3D%2F%3Fed%3D2560&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2Fyuanwangokk-1%2Fsubscribe%2Frefs%2Fheads%2Fmain%2FAcl4ssr%2Facl4ssr_with_antiad.ini&emoji=true&list=false&xudp=false&udp=false&tfo=false&expand=true&scv=false&fdn=false&new_name=true 18 | <<: *p 19 | #override: # 修改节点前后缀时,需移除前方的 "#" 符号 20 | #additional-prefix: "节点前缀" 21 | #additional-suffix: "节点后缀" 22 | #Subscribe2: {url: http://your-service-provider, <<: *p} 23 | #Subscribe3: {url: http://your-service-provider, <<: *p} 24 | #Subscribe4: {url: http://your-service-provider, <<: *p} 25 | 26 | mixed-port: 7893 27 | tcp-concurrent: true 28 | allow-lan: true 29 | ipv6: false 30 | log-level: info 31 | unified-delay: true 32 | global-client-fingerprint: chrome 33 | find-process-mode: strict 34 | 35 | geodata-mode: true 36 | geox-url: 37 | geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat" 38 | geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" 39 | mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb" 40 | asn: "https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb" 41 | 42 | profile: 43 | store-selected: true 44 | store-fake-ip: true 45 | 46 | sniffer: 47 | enable: true 48 | sniff: 49 | HTTP: 50 | ports: [80, 8080-8880] 51 | override-destination: true 52 | TLS: 53 | ports: [443, 8443] 54 | QUIC: 55 | ports: [443, 8443] 56 | 57 | tun: 58 | enable: true 59 | stack: mixed 60 | dns-hijack: [any:53] 61 | 62 | dns: 63 | enable: true 64 | ipv6: false 65 | enhanced-mode: fake-ip 66 | listen: :1053 67 | fake-ip-range: 198.18.0.1/16 68 | fake-ip-filter: ['*', '+.lan', '+.local', '+.direct', '+.msftconnecttest.com', '+.msftncsi.com'] 69 | nameserver: [223.5.5.5, 119.29.29.29] 70 | 71 | # 锚点参数 72 | pg: &pg {type: select, proxies: [手动切换, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, DIRECT]} 73 | url-test: &url-test {type: url-test, url: http://connectivitycheck.gstatic.com/generate_204, interval: 300, tolerance: 0, include-all: true} 74 | select: &select {type: select, include-all: true} 75 | fallback: &fallback {type: fallback, url: http://connectivitycheck.gstatic.com/generate_204, interval: 300, include-all: true} 76 | load-balance: &load-balance {type: load-balance, strategy: consistent-hashing, url: http://connectivitycheck.gstatic.com/generate_204, interval: 300, include-all: true} 77 | c: &c {type: http, behavior: classical, format: text, interval: 86400} 78 | 79 | proxy-groups: 80 | 81 | - {name: 手动切换, type: select, include-all: true, proxies: [香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, DIRECT], icon: https://github.com/clash-verge-rev/clash-verge-rev/raw/main/src-tauri/icons/icon.png} 82 | - {name: 国外网站, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png} 83 | - {name: 国际媒体, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png} 84 | - {name: 苹果服务, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple_1.png} 85 | - {name: 微软服务, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png} 86 | - {name: 谷歌服务, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png} 87 | - {name: 电报消息, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png} 88 | - {name: 推特消息, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Twitter.png} 89 | - {name: AI, <<: *pg, icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png} 90 | - {name: 游戏平台, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png} 91 | - {name: Emby, <<: *pg, include-all: true, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Emby.png} 92 | - {name: 广告拦截, type: select, proxies: [REJECT, DIRECT], icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Advertising.png} 93 | - {name: 兜底分流, <<: *pg, icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png} 94 | - {name: 香港节点, <<: *url-test, filter: "(?i)🇭🇰|香港|(\b(HK|Hong)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png} 95 | - {name: 美国节点, <<: *url-test, filter: "(?i)🇺🇸|美国|洛杉矶|圣何塞|(\b(US|United States)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png} 96 | - {name: 狮城节点, <<: *url-test, filter: "(?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png} 97 | - {name: 日本节点, <<: *url-test, filter: "(?i)🇯🇵|日本|东京|(\b(JP|Japan)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png} 98 | - {name: 台湾节点, <<: *url-test, filter: "(?i)🇨🇳|🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)", icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png} 99 | 100 | rule-providers: 101 | AD: {<<: *c, path: ./rules/AD.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Reject.list} 102 | Apple: {<<: *c, path: ./rules/Apple.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Apple.list} 103 | YouTube: {<<: *c, path: ./rules/YouTube.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/YouTube.list} 104 | Google: {<<: *c, path: ./rules/Google.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Google.list} 105 | Telegram: {<<: *c, path: ./rules/Telegram.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Telegram.list} 106 | Twitter: {<<: *c, path: ./rules/Twitter.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Twitter.list} 107 | Steam: {<<: *c, path: ./rules/Steam.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Steam.list} 108 | Epic: {<<: *c, path: ./rules/Epic.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Epic.list} 109 | AI: {<<: *c, path: ./rules/AI.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/AI.list} 110 | Emby: {<<: *c, path: ./rules/Emby.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Emby.list} 111 | Spotify: {<<: *c, path: ./rules/Spotify.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Spotify.list} 112 | Bahamut: {<<: *c, path: ./rules/Bahamut.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Bahamut.list} 113 | Netflix: {<<: *c, path: ./rules/Netflix.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Netflix.list} 114 | Disney: {<<: *c, path: ./rules/Disney.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/Disney.list} 115 | PrimeVideo: {<<: *c, path: ./rules/PrimeVideo.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/PrimeVideo.list} 116 | HBO: {<<: *c, path: ./rules/HBO.list, url: https://github.com/Repcz/Tool/raw/X/Clash/Rules/HBO.list} 117 | 118 | rules: 119 | - RULE-SET,AD,广告拦截 120 | - RULE-SET,AI,AI 121 | - RULE-SET,Apple,苹果服务 122 | - RULE-SET,YouTube,谷歌服务 123 | - RULE-SET,Google,谷歌服务 124 | - RULE-SET,Telegram,电报消息 125 | - RULE-SET,Twitter,推特消息 126 | - RULE-SET,Steam,游戏平台 127 | - RULE-SET,Epic,游戏平台 128 | - RULE-SET,Emby,Emby 129 | - RULE-SET,Spotify,国际媒体 130 | - RULE-SET,Bahamut,国际媒体 131 | - RULE-SET,Netflix,国际媒体 132 | - RULE-SET,Disney,国际媒体 133 | - RULE-SET,PrimeVideo,国际媒体 134 | - RULE-SET,HBO,国际媒体 135 | - GEOSITE,onedrive,微软服务 136 | - GEOSITE,github,微软服务 137 | - GEOSITE,microsoft,微软服务 138 | - GEOSITE,gfw,国外网站 139 | - GEOIP,lan,DIRECT 140 | - GEOIP,CN,DIRECT 141 | - MATCH,兜底分流 142 | -------------------------------------------------------------------------------- /Code/x-ui.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | red='\033[0;31m' 4 | green='\033[0;32m' 5 | yellow='\033[0;33m' 6 | plain='\033[0m' 7 | 8 | cur_dir=$(pwd) 9 | 10 | # check root 11 | [[ $EUID -ne 0 ]] && echo -e "${red}错误:${plain} 必须使用root用户运行此脚本!\n" && exit 1 12 | 13 | # check os 14 | if [[ -f /etc/redhat-release ]]; then 15 | release="centos" 16 | elif cat /etc/issue | grep -Eqi "debian"; then 17 | release="debian" 18 | elif cat /etc/issue | grep -Eqi "ubuntu"; then 19 | release="ubuntu" 20 | elif cat /etc/issue | grep -Eqi "centos|red hat|redhat"; then 21 | release="centos" 22 | elif cat /proc/version | grep -Eqi "debian"; then 23 | release="debian" 24 | elif cat /proc/version | grep -Eqi "ubuntu"; then 25 | release="ubuntu" 26 | elif cat /proc/version | grep -Eqi "centos|red hat|redhat"; then 27 | release="centos" 28 | else 29 | echo -e "${red}未检测到系统版本,请联系脚本作者!${plain}\n" && exit 1 30 | fi 31 | 32 | arch=$(arch) 33 | 34 | if [[ $arch == "i386" || $arch == "i686" ]]; then 35 | arch="386" 36 | elif [[ $arch == "x86_64" || $arch == "x64" || $arch == "amd64" ]]; then 37 | arch="amd64" 38 | elif [[ $arch == "aarch64" || $arch == "arm64" ]]; then 39 | arch="arm64" 40 | elif [[ $arch == "s390x" ]]; then 41 | arch="s390x" 42 | else 43 | arch="amd64" 44 | echo -e "${red}检测架构失败,使用默认架构: ${arch}${plain}" 45 | fi 46 | 47 | echo "架构: ${arch}" 48 | 49 | if [ $(getconf WORD_BIT) != '32' ] && [ $(getconf LONG_BIT) != '64' ]; then 50 | echo "本软件不支持 32 位系统(x86),请使用 64 位系统(x86_64),如果检测有误,请联系作者" 51 | exit -1 52 | fi 53 | 54 | os_version="" 55 | 56 | # os version 57 | if [[ -f /etc/os-release ]]; then 58 | os_version=$(awk -F'[= ."]' '/VERSION_ID/{print $3}' /etc/os-release) 59 | fi 60 | if [[ -z "$os_version" && -f /etc/lsb-release ]]; then 61 | os_version=$(awk -F'[= ."]+' '/DISTRIB_RELEASE/{print $2}' /etc/lsb-release) 62 | fi 63 | 64 | if [[ x"${release}" == x"centos" ]]; then 65 | if [[ ${os_version} -le 6 ]]; then 66 | echo -e "${red}请使用 CentOS 7 或更高版本的系统!${plain}\n" && exit 1 67 | fi 68 | elif [[ x"${release}" == x"ubuntu" ]]; then 69 | if [[ ${os_version} -lt 16 ]]; then 70 | echo -e "${red}请使用 Ubuntu 16 或更高版本的系统!${plain}\n" && exit 1 71 | fi 72 | elif [[ x"${release}" == x"debian" ]]; then 73 | if [[ ${os_version} -lt 8 ]]; then 74 | echo -e "${red}请使用 Debian 8 或更高版本的系统!${plain}\n" && exit 1 75 | fi 76 | fi 77 | 78 | install_base() { 79 | if [[ x"${release}" == x"centos" ]]; then 80 | yum install wget curl tar -y 81 | else 82 | apt-get update 83 | apt install wget curl tar -y 84 | fi 85 | } 86 | 87 | #This function will be called when user installed x-ui out of sercurity 88 | config_after_install() { 89 | echo -e "${yellow}出于安全考虑,安装/更新完成后需要强制修改端口与账户密码${plain}" 90 | read -p "确认是否继续? [y/n]: " config_confirm 91 | if [[ x"${config_confirm}" == x"y" || x"${config_confirm}" == x"Y" ]]; then 92 | read -p "请设置您的账户名(如未填写则随机8位字符): " config_account 93 | [[ -z $config_account ]] && config_account=$(date +%s%N | md5sum | cut -c 1-8) 94 | echo -e "${yellow}您的账户名将设定为:${config_account}${plain}" 95 | read -p "请设置您的账户密码(如未填写则随机8位字符): " config_password 96 | [[ -z $config_password ]] && config_password=$(date +%s%N | md5sum | cut -c 1-8) 97 | echo -e "${yellow}您的账户密码将设定为:${config_password}${plain}" 98 | read -p "请设置面板访问端口(如未填写则随机端口号): " config_port 99 | [[ -z $config_port ]] && config_port=$(shuf -i 2000-65535 -n 1) 100 | until [[ -z $(ss -ntlp | awk '{print $4}' | sed 's/.*://g' | grep -w "$port") ]]; do 101 | if [[ -n $(ss -ntlp | awk '{print $4}' | sed 's/.*://g' | grep -w "$port") ]]; then 102 | echo -e "${red} $config_port ${plain} 端口已经其他程序占用,请更换面板端口号" 103 | read -p "请设置面板访问端口(如未填写则随机端口号): " config_port 104 | [[ -z $config_port ]] && config_port=$(shuf -i 2000-65535 -n 1) 105 | fi 106 | done 107 | echo -e "${yellow}您的面板访问端口将设定为:${config_port}${plain}" 108 | echo -e "${yellow}确认设定,设定中${plain}" 109 | /usr/local/x-ui/x-ui setting -username ${config_account} -password ${config_password} 110 | echo -e "${yellow}账户密码设定完成${plain}" 111 | /usr/local/x-ui/x-ui setting -port ${config_port} 112 | echo -e "${yellow}面板端口设定完成${plain}" 113 | else 114 | config_port=$(/usr/local/x-ui/x-ui setting -show | sed -n 4p | awk -F ": " '{print $2}') 115 | echo -e "${red}已取消, 所有设置项均为默认设置, 请及时修改${plain}" 116 | fi 117 | } 118 | 119 | install_x-ui() { 120 | systemctl stop x-ui 121 | cd /usr/local/ 122 | 123 | if [ $# == 0 ]; then 124 | last_version=$(curl -Ls "https://api.github.com/repos/sing-web/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') 125 | if [[ ! -n "$last_version" ]]; then 126 | echo -e "${red}检测 x-ui 版本失败,可能是超出 Github API 限制,请稍后再试,或手动指定 x-ui 版本安装${plain}" 127 | exit 1 128 | fi 129 | echo -e "检测到 x-ui 最新版本:${last_version},开始安装" 130 | wget -N --no-check-certificate -O /usr/local/x-ui-linux-${arch}.tar.gz https://github.com/sing-web/x-ui/releases/download/${last_version}/x-ui-linux-${arch}.tar.gz 131 | if [[ $? -ne 0 ]]; then 132 | echo -e "${red}下载 x-ui 失败,请确保你的服务器能够下载 Github 的文件${plain}" 133 | exit 1 134 | fi 135 | else 136 | last_version=$1 137 | url="https://github.com/sing-web/x-ui/releases/download/${last_version}/x-ui-linux-${arch}.tar.gz" 138 | echo -e "开始安装 x-ui $1" 139 | wget -N --no-check-certificate -O /usr/local/x-ui-linux-${arch}.tar.gz ${url} 140 | if [[ $? -ne 0 ]]; then 141 | echo -e "${red}下载 x-ui $1 失败,请确保此版本存在${plain}" 142 | exit 1 143 | fi 144 | fi 145 | 146 | if [[ -e /usr/local/x-ui/ ]]; then 147 | rm /usr/local/x-ui/ -rf 148 | fi 149 | 150 | tar zxvf x-ui-linux-${arch}.tar.gz 151 | rm x-ui-linux-${arch}.tar.gz -f 152 | cd x-ui 153 | chmod +x x-ui bin/xray-linux-${arch} 154 | cp -f x-ui.service /etc/systemd/system/ 155 | wget --no-check-certificate -O /usr/bin/x-ui https://raw.githubusercontent.com/sing-web/x-ui/main/x-ui_CN.sh 156 | chmod +x /usr/local/x-ui/x-ui.sh 157 | chmod +x /usr/bin/x-ui 158 | config_after_install 159 | #echo -e "如果是全新安装,默认网页端口为 ${green}54321${plain},用户名和密码默认都是 ${green}admin${plain}" 160 | #echo -e "请自行确保此端口没有被其他程序占用,${yellow}并且确保 54321 端口已放行${plain}" 161 | # echo -e "若想将 54321 修改为其它端口,输入 x-ui 命令进行修改,同样也要确保你修改的端口也是放行的" 162 | #echo -e "" 163 | #echo -e "如果是更新面板,则按你之前的方式访问面板" 164 | #echo -e "" 165 | systemctl daemon-reload 166 | systemctl enable x-ui 167 | systemctl start x-ui 168 | 169 | systemctl stop warp-go >/dev/null 2>&1 170 | wg-quick down wgcf >/dev/null 2>&1 171 | ipv4=$(curl -s4m8 ip.p3terx.com -k | sed -n 1p) 172 | ipv6=$(curl -s6m8 ip.p3terx.com -k | sed -n 1p) 173 | systemctl start warp-go >/dev/null 2>&1 174 | wg-quick up wgcf >/dev/null 2>&1 175 | echo -e "${green}x-ui ${last_version}${plain} 安装完成,面板已启动" 176 | echo -e "" 177 | echo -e "x-ui 管理脚本使用方法: " 178 | echo -e "----------------------------------------------" 179 | echo -e "x-ui - 显示管理菜单 (功能更多)" 180 | echo -e "x-ui start - 启动 x-ui 面板" 181 | echo -e "x-ui stop - 停止 x-ui 面板" 182 | echo -e "x-ui restart - 重启 x-ui 面板" 183 | echo -e "x-ui status - 查看 x-ui 状态" 184 | echo -e "x-ui enable - 设置 x-ui 开机自启" 185 | echo -e "x-ui disable - 取消 x-ui 开机自启" 186 | echo -e "x-ui log - 查看 x-ui 日志" 187 | echo -e "x-ui update - 更新 x-ui 面板" 188 | echo -e "x-ui install - 安装 x-ui 面板" 189 | echo -e "x-ui uninstall - 卸载 x-ui 面板" 190 | echo -e "----------------------------------------------" 191 | echo "" 192 | if [[ -n $ipv4 ]]; then 193 | echo -e "${yellow}面板IPv4访问地址为:${plain} ${green}http://$ipv4:$config_port ${plain}" 194 | fi 195 | if [[ -n $ipv6 ]]; then 196 | echo -e "${yellow}面板IPv6访问地址为:${plain} ${green}http://[$ipv6]:$config_port ${plain}" 197 | fi 198 | echo -e "请自行确保此端口没有被其他程序占用,${yellow}并且确保${plain} ${red} $config_port ${plain} ${yellow}端口已放行${plain}" 199 | } 200 | 201 | echo -e "${green}开始安装${plain}" 202 | install_base 203 | install_x-ui $1 -------------------------------------------------------------------------------- /Clash Mate/config2.yaml: -------------------------------------------------------------------------------- 1 | # mihomo (Clash Meta) 懒人配置 2 | # 版本 V1.15-241205 3 | # https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33 4 | # https://obdo.cc/meta 5 | # 作者: 笨蛋ovo (bdovo.cc) 6 | # Telegram: https://t.me/baka_not_baka 7 | # 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel 8 | # 修改自官方示例规则 https://wiki.metacubex.one/example/#meta 9 | # 转载请保留此注释 10 | # 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解 11 | # 虚空终端 (Clash Meta) Docs 地址: https://wiki.metacubex.one 12 | # 不理解的地方不要乱动,如果你是小白,请按下 `Ctrl + F` 搜索 `基础配置`,只修改此部分 13 | 14 | # true 是启用 15 | # false 是禁用 16 | 17 | # 分组 18 | pr: 19 | &pr { 20 | type: select, 21 | proxies: 22 | [ 23 | 节点选择, 24 | 香港, 25 | 台湾, 26 | 日本, 27 | 新加坡, 28 | 美国, 29 | 其它地区, 30 | 全部节点, 31 | 自动选择, 32 | DIRECT, 33 | ], 34 | } 35 | # 延迟检测 URL 36 | p: &p 37 | type: http 38 | # 自动更新订阅时间,单位为秒 39 | interval: 3600 40 | health-check: 41 | enable: true 42 | url: https://cp.cloudflare.com 43 | # 节点连通性检测时间,单位为秒 44 | interval: 300 45 | # 节点超时延迟,单位为毫秒 46 | timeout: 1000 47 | # 节点自动切换差值,单位为毫秒 48 | tolerance: 100 49 | 50 | # 基础配置 51 | # -------------------------------------------------- 52 | # 如果你是小白,那么你只需要修改分割线以内的内容 53 | # 其他部分保持不动即可 54 | 55 | # 也可以把分割线以内的内容粘贴到您使用代理工具的「覆写」功能,然后在覆写中进行修改 56 | # 使用覆写时可以直接将此配置文件作为订阅链接进行订阅 57 | # https://gist.githubusercontent.com/liuran001/5ca84f7def53c70b554d3f765ff86a33/raw/c1d33956db7097252b88a6c06ed76f32526747c4/config.yaml 58 | 59 | # 如果你需要使用大于两个机场,在下方 `use` 处添加 `订阅三` (名字可以自己取),然后在 `proxy-providers` 照例添加订阅链接即可 60 | # 反之,如果你只需要使用一个,那么将 `订阅二` 前添加 `#` 进行注释即可 61 | 62 | # 订阅名,记得修改成自己的 63 | # 添删订阅在这里和下方订阅链接依葫芦画瓢就行 64 | use: &use 65 | # 如果不希望自动切换请将下面两行注释对调 66 | # type: select 67 | type: url-test 68 | use: 69 | - Aries 70 | # - 本地配置 71 | 72 | # 订阅链接 73 | # 对于订阅来说,path 为选填项,但建议启用 74 | # 本地配置可以只填 path 75 | proxy-providers: 76 | Aries: 77 | <<: *p 78 | # path: ./proxy_provider/Aries.yaml 79 | url: "https://url.v1.mk/sub?target=clash&url=https%3A%2F%2Fwvsvlees.sosorg.nyc.mn%2Fsub%3Fhost%3Dvless-vmess.pages.dev%26uuid%3Dba55ef37-c33c-4a8f-aafa-2abc85312863%26path%3D%2F%3Fed%3D2560&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2Fyuanwangokk-1%2Fsubscribe%2Frefs%2Fheads%2Fmain%2FAcl4ssr%2Facl4ssr_with_antiad.ini&emoji=true&list=false&xudp=false&udp=false&tfo=false&expand=true&scv=false&fdn=false&new_name=true" 80 | # 如需要为该订阅组节点添加前缀,取消下面两行注释 81 | # override: 82 | # additional-prefix: "[Aries]" 83 | 84 | 85 | # 本地配置: 86 | # <<: *p 87 | # path: ./proxy_provider/本地配置.yaml 88 | # 如需要为该订阅组节点添加前缀,取消下面两行注释 89 | # override: 90 | # additional-prefix: "[本地配置]" 91 | 92 | # 小白请不要继续随意修改以下设置 93 | # 若需修改请参阅文档 https://wiki.metacubex.one 94 | # -------------------------------------------------- 95 | 96 | # 规则订阅 97 | rule-providers: 98 | # 秋风广告拦截规则 99 | # https://awavenue.top 100 | # 由于 Anti-AD 误杀率高,本项目已在 1.11-241024 版本更换秋风广告规则 101 | AWAvenue-Ads: 102 | type: http 103 | behavior: domain 104 | format: yaml 105 | # path可为空(仅限clash.meta 1.15.0以上版本) 106 | path: ./rule_provider/AWAvenue-Ads.yaml 107 | url: "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/refs/heads/main/Filters/AWAvenue-Ads-Rule-Clash.yaml" 108 | interval: 600 109 | 110 | mode: rule 111 | # ipv6 支持 112 | ipv6: true 113 | log-level: info 114 | # 允许局域网连接 115 | allow-lan: true 116 | # socks5/http 端口 117 | mixed-port: 7890 118 | # Meta 内核特性 https://wiki.metacubex.one/config/general 119 | # 统一延迟 120 | # 更换延迟计算方式,去除握手等额外延迟 121 | unified-delay: true 122 | # TCP 并发 123 | # 同时对所有ip进行连接,返回延迟最低的地址 124 | tcp-concurrent: true 125 | # 外部控制端口 126 | external-controller: :9090 127 | 128 | geodata-mode: true 129 | 130 | # Geo 数据库下载地址 131 | # 使用 FastGit 代理 (https://fgit.cf) 132 | # 源地址 https://github.com/MetaCubeX/meta-rules-dat 133 | # 可以更换镜像站但不要更换其他数据库,可能导致无法启动 134 | geox-url: 135 | geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat" 136 | geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" 137 | mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb" 138 | 139 | # 进程匹配模式 140 | # 路由器上请设置为 off 141 | # always 开启,强制匹配所有进程 142 | # strict 默认,由 Clash 判断是否开启 143 | # off 不匹配进程,推荐在路由器上使用此模式 144 | find-process-mode: strict 145 | 146 | # 缓解移动设备耗电问题 147 | # https://github.com/vernesong/OpenClash/issues/2614 148 | keep-alive-interval: 1800 149 | 150 | # 全局客户端指纹 151 | global-client-fingerprint: random # 随机指纹 152 | 153 | # 缓存 154 | profile: 155 | store-selected: true 156 | store-fake-ip: true 157 | 158 | # 自动同步时间以防止时间不准导致无法正常联网 159 | ntp: 160 | enable: true 161 | # 是否同步至系统时间,需要 root/管理员权限 162 | write-to-system: false 163 | server: time.apple.com 164 | port: 123 165 | interval: 30 166 | 167 | # 域名嗅探 168 | sniffer: 169 | enable: true 170 | sniff: 171 | TLS: 172 | ports: [443, 8443] 173 | HTTP: 174 | ports: [80, 8080-8880] 175 | override-destination: true 176 | 177 | # tun 模式 178 | tun: 179 | enable: false # enable 'true' 180 | stack: system # or 'gvisor' 181 | dns-hijack: 182 | - "any:53" 183 | - "tcp://any:53" 184 | auto-route: true 185 | auto-detect-interface: true 186 | 187 | # dns 设置 188 | # 已配置 ipv6 189 | dns: 190 | enable: true 191 | listen: :1053 192 | ipv6: true 193 | # 路由器个人建议使用 redir-host 以最佳兼容性 194 | # 其他设备可以使用 fake-ip 195 | enhanced-mode: redir-host 196 | fake-ip-range: 28.0.0.1/8 197 | fake-ip-filter: 198 | - '*' 199 | - '+.lan' 200 | - '+.local' 201 | default-nameserver: 202 | - 223.5.5.5 203 | - 119.29.29.29 204 | - 114.114.114.114 205 | - '[2402:4e00::]' 206 | - '[2400:3200::1]' 207 | nameserver: 208 | - 'tls://8.8.4.4#dns' 209 | - 'tls://1.0.0.1#dns' 210 | - 'tls://[2001:4860:4860::8844]#dns' 211 | - 'tls://[2606:4700:4700::1001]#dns' 212 | proxy-server-nameserver: 213 | - https://doh.pub/dns-query 214 | nameserver-policy: 215 | "geosite:cn,private": 216 | - https://doh.pub/dns-query 217 | - https://dns.alidns.com/dns-query 218 | "geosite:!cn,!private": 219 | - "tls://dns.google" 220 | - "tls://cloudflare-dns.com" 221 | 222 | # 多入站端口设置 223 | # listeners: 224 | # - name: hk 225 | # type: mixed 226 | # port: 12991 227 | # proxy: 香港 228 | 229 | # - name: tw 230 | # type: mixed 231 | # port: 12992 232 | # proxy: 台湾 233 | 234 | # - name: sg 235 | # type: mixed 236 | # port: 12993 237 | # proxy: 新加坡 238 | 239 | proxies: 240 | # - name: "WARP" 241 | # type: wireguard 242 | # server: engage.cloudflareclient.com 243 | # port: 2408 244 | # ip: "172.16.0.2/32" 245 | # ipv6: "2606::1/128" # 自行替换 246 | # private-key: "private-key" # 自行替换 247 | # public-key: "public-key" # 自行替换 248 | # udp: true 249 | # reserved: "abba" # 自行替换 250 | # mtu: 1280 251 | # dialer-proxy: "WARP前置" 252 | # remote-dns-resolve: true 253 | # dns: 254 | # - https://dns.cloudflare.com/dns-query 255 | 256 | proxy-groups: 257 | # 使用 WARP 的用户需要手动在下方的 proxies 字段内添加 WARP 258 | # 例如 [WARP, 全部节点, 自动选择, 香港, 台湾, 日本, 新加坡, 美国, 其它地区, DIRECT], 259 | - { 260 | name: 节点选择, 261 | type: select, 262 | proxies: 263 | [全部节点, 自动选择, 香港, 台湾, 日本, 新加坡, 美国, 其它地区, DIRECT], 264 | } 265 | # 这里的 dns 指海外解析 dns 走的节点,一般跟随节点选择即可 266 | - { name: dns, <<: *pr } 267 | # WARP 配置链式出站 268 | # - { name: WARP前置, <<: *pr, exclude-type: "wireguard" } 269 | 270 | - { name: 广告拦截, type: select, proxies: [REJECT, DIRECT, 节点选择] } 271 | - { name: 境外AI, <<: *pr } 272 | # Apple 推荐走全局直连 273 | - { name: Apple, <<: *pr } 274 | - { name: Google, <<: *pr } 275 | - { name: Telegram, <<: *pr } 276 | - { name: Twitter, <<: *pr } 277 | - { name: Pixiv, <<: *pr } 278 | - { name: ehentai, <<: *pr } 279 | # 下面两个看需求启用,打开之后会代理全站流量,可能导致部分版权视频反而无法播放或视频播放速度缓慢 280 | # 下面 rules 两条也要启用 281 | # - {name: 哔哩哔哩, <<: *pr} 282 | # - {name: 哔哩东南亚, <<: *pr} 283 | - { name: 巴哈姆特, <<: *pr } 284 | - { name: YouTube, <<: *pr } 285 | - { name: NETFLIX, <<: *pr } 286 | - { name: TikTok, <<: *pr } 287 | - { name: Spotify, <<: *pr } 288 | - { name: Github, <<: *pr } 289 | - { name: Steam, <<: *pr } 290 | - { name: OneDrive, <<: *pr } 291 | - { name: 微软服务, <<: *pr } 292 | - { 293 | name: 国内, 294 | type: select, 295 | proxies: 296 | [ 297 | DIRECT, 298 | 节点选择, 299 | 香港, 300 | 台湾, 301 | 日本, 302 | 新加坡, 303 | 美国, 304 | 其它地区, 305 | 全部节点, 306 | 自动选择, 307 | ], 308 | } 309 | # 其他就是所有规则没匹配到的 310 | # 可以理解为 ACL4SSR 配置里的 漏网之鱼 311 | # 换言之,其他走代理就是绕过中国大陆地址,不走就是 GFWList 模式 312 | - { name: 其他, <<: *pr } 313 | 314 | # 分隔,下面是地区分组 315 | - { name: 香港, <<: *use, filter: "(?i)港|hk|hongkong|hong kong" } 316 | - { name: 台湾, <<: *use, filter: "(?i)台|tw|taiwan" } 317 | - { name: 日本, <<: *use, filter: "(?i)日本|jp|japan" } 318 | - { name: 美国, <<: *use, filter: "(?i)美|us|unitedstates|united states" } 319 | - { name: 新加坡, <<: *use, filter: "(?i)(新|sg|singapore)" } 320 | - { 321 | name: 其它地区, 322 | <<: *use, 323 | filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*", 324 | } 325 | - { name: 全部节点, <<: *use } 326 | - { name: 自动选择, <<: *use, tolerance: 2, type: url-test } 327 | 328 | rules: 329 | # 若需禁用 QUIC 请取消注释 QUIC 两条规则 330 | # 防止 YouTube 等使用 QUIC 导致速度不佳, 禁用 443 端口 UDP 流量(不包括国内) 331 | 332 | # - AND,(AND,(DST-PORT,443),(NETWORK,UDP)),(NOT,((GEOSITE,cn))),REJECT # quic 333 | - RULE-SET,AWAvenue-Ads,广告拦截 334 | # - GEOSITE,biliintl,哔哩东南亚 335 | # - GEOSITE,bilibili,哔哩哔哩 336 | 337 | - GEOSITE,CATEGORY-AI-CHAT-!CN,境外AI 338 | - GEOSITE,apple,Apple 339 | - GEOSITE,apple-cn,Apple 340 | - GEOSITE,ehentai,ehentai 341 | - GEOSITE,github,Github 342 | - GEOSITE,twitter,Twitter 343 | - GEOSITE,youtube,YouTube 344 | - GEOSITE,google,Google 345 | - GEOSITE,google-cn,Google # Google CN 不走代理会导致香港等地区节点 Play Store 异常 346 | - GEOSITE,telegram,Telegram 347 | - GEOSITE,netflix,NETFLIX 348 | - GEOSITE,tiktok,TikTok 349 | - GEOSITE,bahamut,巴哈姆特 350 | - GEOSITE,spotify,Spotify 351 | - GEOSITE,pixiv,Pixiv 352 | - GEOSITE,steam@cn,DIRECT 353 | - GEOSITE,steam,Steam 354 | - GEOSITE,onedrive,OneDrive 355 | - GEOSITE,microsoft,微软服务 356 | - GEOSITE,geolocation-!cn,其他 357 | # - AND,(AND,(DST-PORT,443),(NETWORK,UDP)),(NOT,((GEOIP,CN))),REJECT # quic 358 | - GEOIP,google,Google 359 | - GEOIP,netflix,NETFLIX 360 | - GEOIP,telegram,Telegram 361 | - GEOIP,twitter,Twitter 362 | - GEOSITE,CN,国内 363 | - GEOIP,CN,国内 364 | # 绕过局域网地址 365 | - IP-CIDR,10.0.0.0/8,DIRECT 366 | - IP-CIDR,172.16.0.0/12,DIRECT 367 | - IP-CIDR,192.168.0.0/16,DIRECT 368 | - IP-CIDR,100.64.0.0/10,DIRECT 369 | - IP-CIDR,127.0.0.0/8,DIRECT 370 | - MATCH,其他 --------------------------------------------------------------------------------