v2ray-rules-dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,适用于 V2Ray、Xray-core、mihomo(Clash-Meta)、hysteria、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, applicable to V2Ray, Xray-core, mihomo(Clash-Meta), hysteria, Trojan-Go and leaf.
Top Related Projects
Community managed domain list
搜集、整理、维护 Surge / Quantumult (X) / Shadowrocket / Surfboard / clash (Premium) 实用规则。
提供多款 Shadowrocket 规则,带广告过滤功能。用于 iOS 未越狱设备选择性地自动翻墙。
SSR 去广告ACL规则/SS完整GFWList规则/Clash规则碎片,Telegram频道订阅地址
Quick Overview
Loyalsoldier/v2ray-rules-dat is a project that provides enhanced rule sets and domain lists for V2Ray, a popular platform for building proxies to bypass network restrictions. It offers regularly updated, comprehensive lists of domains, IP addresses, and routing rules to improve V2Ray's performance and effectiveness in various network environments.
Pros
- Frequently updated rule sets and domain lists
- Comprehensive coverage of popular websites and services
- Easy integration with V2Ray configuration
- Community-driven project with active maintenance
Cons
- Requires manual updates or additional scripts for automatic updates
- May include unnecessary rules for some users' specific needs
- Potential for false positives or negatives in domain categorization
- Dependency on external sources for some rule sets
Getting Started
To use Loyalsoldier/v2ray-rules-dat with V2Ray:
- Download the latest release files from the GitHub repository.
- Update your V2Ray configuration to include the downloaded rule sets.
- Add the following to your V2Ray configuration file:
{
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"outboundTag": "proxy",
"domain": [
"geosite:category-ads-all",
"geosite:cn"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:private",
"geosite:apple-cn",
"geosite:google-cn"
]
}
]
}
}
- Restart V2Ray to apply the new configuration.
For automatic updates, consider setting up a cron job or scheduled task to download the latest rule sets periodically.
Competitor Comparisons
Community managed domain list
Pros of domain-list-community
- More comprehensive domain list with broader coverage
- Community-driven approach allows for frequent updates and contributions
- Integrated with the official V2Ray project, ensuring compatibility
Cons of domain-list-community
- Less focused on specific rule sets for different regions or use cases
- May require more manual configuration for optimal performance
- Larger file size due to extensive domain listings
Code Comparison
v2ray-rules-dat:
include:category-ads-all
include:category-porn
domain:example.com
full:www.example.com
domain-list-community:
# Domain list for Category
include:category-ads
include:category-social-media
domain:example.org
regexp:^(www\.)?example\.(com|net)$
The code snippets show that v2ray-rules-dat uses a more straightforward approach with specific categories and domain types, while domain-list-community employs a more flexible system with regular expressions and broader category inclusions.
Both repositories serve as valuable resources for V2Ray users, with v2ray-rules-dat offering a more curated and optimized experience, while domain-list-community provides a comprehensive and community-driven approach to domain categorization.
搜集、整理、维护 Surge / Quantumult (X) / Shadowrocket / Surfboard / clash (Premium) 实用规则。
Pros of SS-Rule-Snippet
- More comprehensive rule sets covering various scenarios and platforms
- Includes Surge-specific configurations and optimizations
- Offers more granular control over traffic routing
Cons of SS-Rule-Snippet
- Less frequent updates compared to v2ray-rules-dat
- Larger file sizes due to more extensive rule sets
- May require more manual configuration and tweaking
Code Comparison
SS-Rule-Snippet:
DOMAIN-SUFFIX,googleapis.cn,🍎 Only
DOMAIN-SUFFIX,mzstatic.com,🍎 Only
DOMAIN-SUFFIX,akadns.net,🍎 Only
DOMAIN-SUFFIX,icloud.com,🍎 Only
DOMAIN-SUFFIX,icloud-content.com,🍎 Only
v2ray-rules-dat:
apple.com
icloud.com
cdn-apple.com
apple-cloudkit.com
apple-mapkit.com
The code snippets show different approaches to rule definition. SS-Rule-Snippet uses more specific DOMAIN-SUFFIX rules with associated actions, while v2ray-rules-dat employs a simpler domain list format.
Both repositories aim to provide rule sets for traffic routing and filtering in various proxy tools, but they differ in their focus, update frequency, and rule structure. Users should choose based on their specific needs, preferred proxy software, and desired level of customization.
提供多款 Shadowrocket 规则,带广告过滤功能。用于 iOS 未越狱设备选择性地自动翻墙。
Pros of Shadowrocket-ADBlock-Rules
- Specifically designed for Shadowrocket, offering optimized performance for iOS devices
- Includes a wider range of rule categories, including adult content blocking and social media filters
- More frequent updates, ensuring up-to-date blocking of new ad domains and trackers
Cons of Shadowrocket-ADBlock-Rules
- Limited compatibility with other proxy tools, primarily focused on Shadowrocket
- Less granular control over rule selection compared to v2ray-rules-dat
- Smaller community and fewer contributors, potentially leading to slower issue resolution
Code Comparison
Shadowrocket-ADBlock-Rules:
DOMAIN-SUFFIX,googleapis.cn,🍎 Only
DOMAIN-SUFFIX,mzstatic.com,🍎 Only
DOMAIN-SUFFIX,akadns.net,🍎 Only
v2ray-rules-dat:
apple.com
icloud.com
cdn-apple.com
apple-cloudkit.com
The code snippets show different approaches to rule definition. Shadowrocket-ADBlock-Rules uses more specific domain matching with additional proxy information, while v2ray-rules-dat employs a simpler domain list format.
SSR 去广告ACL规则/SS完整GFWList规则/Clash规则碎片,Telegram频道订阅地址
Pros of ACL4SSR
- More comprehensive rule sets, including specialized lists for different purposes
- Frequent updates and active community contributions
- Includes additional tools and scripts for rule management
Cons of ACL4SSR
- May be overly complex for users seeking simpler configurations
- Some rule sets might be region-specific, potentially less relevant for global users
- Larger file sizes due to extensive rule coverage
Code Comparison
v2ray-rules-dat:
geoip:cn
geoip:private
domain:example.com
ACL4SSR:
[Rule]
DOMAIN-SUFFIX,example.com,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT
GEOIP,CN,DIRECT
Both repositories provide rule sets for network traffic management, but ACL4SSR offers more detailed and customizable configurations. v2ray-rules-dat focuses on simplicity and efficiency, while ACL4SSR provides a wider range of options for advanced users. The code comparison shows that ACL4SSR uses a more structured format with explicit rule types, whereas v2ray-rules-dat employs a more concise syntax. Users should choose based on their specific needs and technical expertise.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
ç®ä»
V2Ray è·¯ç±è§åæ件å 强çï¼å¯ä»£æ¿ V2Ray å®æ¹ geoip.dat
å geosite.dat
ï¼éç¨äº V2RayãXray-coreãmihomoãhysteriaãTrojan-Goãleafãä½¿ç¨ GitHub Actions å京æ¶é´æ¯å¤©æ©ä¸ 6 ç¹èªå¨æ建ï¼ä¿è¯è§åææ°ã
è§åæ件çææ¹å¼
geoip.dat
- éè¿ä»åº @Loyalsoldier/geoip çæ
- é»è®¤ä½¿ç¨ MaxMind GeoLite2 Country CSV æ°æ®çæå个å½å®¶åå°åºç GeoIP æ件ãææå¯ä¾ä½¿ç¨çå½å®¶åå°åº geoip ç±»å«ï¼å¦
geoip:cn
ï¼ä¸¤ä½è±æåæ¯è¡¨ç¤ºå½å®¶æå°åºï¼ï¼è¯·æ¥çï¼https://www.iban.com/country-codes - ä¸å½å¤§é (
geoip:cn
) IPv4 å°åæ°æ®èåäº IPIP.net å @gaoyifan/china-operator-ip - ä¸å½å¤§é (
geoip:cn
) IPv6 å°åæ°æ®èåäº MaxMind GeoLite2 å @gaoyifan/china-operator-ip - æ°å¢ç±»å«ï¼æ¹ä¾¿æç¹æ®éæ±çç¨æ·ä½¿ç¨ï¼ï¼
geoip:cloudflare
geoip:cloudfront
geoip:facebook
geoip:fastly
geoip:google
geoip:netflix
geoip:telegram
geoip:twitter
å¸æå®å¶
geoip.dat
æ件ï¼éè¦éç¨äºå ¶ä»ä»£ç软件ç GeoIP æ ¼å¼æ件ï¼æ¥çé¡¹ç® @Loyalsoldier/geoipã
geosite.dat
- åºäº @v2fly/domain-list-community/data æ°æ®ï¼éè¿ä»åº @Loyalsoldier/domain-list-custom çæ
- å å
¥å¤§éä¸å½å¤§éååãApple ååå Google ååï¼
- @felixonmars/dnsmasq-china-list/accelerated-domains.china.conf å å
¥å°
geosite:china-list
ågeosite:cn
ç±»å«ä¸ - @felixonmars/dnsmasq-china-list/apple.china.conf å å
¥å°
geosite:geolocation-!cn
ç±»å«ä¸ï¼å¦å¸ææ¬æ件ä¸ç Apple ååç´è¿ï¼è¯·åèä¸é¢ geosite ç Routing é ç½®æ¹å¼ï¼ - @felixonmars/dnsmasq-china-list/google.china.conf å å
¥å°
geosite:geolocation-!cn
ç±»å«ä¸ï¼å¦å¸ææ¬æ件ä¸ç Google ååç´è¿ï¼è¯·åèä¸é¢ geosite ç Routing é ç½®æ¹å¼ï¼
- @felixonmars/dnsmasq-china-list/accelerated-domains.china.conf å å
¥å°
- å å
¥ GFWList ååï¼
- åºäº @gfwlist/gfwlist æ°æ®ï¼éè¿ä»åº @cokebar/gfwlist2dnsmasq çæ
- å å
¥å°
geosite:gfw
ç±»å«ä¸ï¼ä¾ä¹ æ¯äº PAC 模å¼å¹¶å¸æä½¿ç¨ GFWList çç¨æ·ä½¿ç¨ - åæ¶å å
¥å°
geosite:geolocation-!cn
ç±»å«ä¸
- å å
¥ EasyList å EasyListChina 广åååï¼éè¿ @AdblockPlus/EasylistChina+Easylist.txt è·å并å å
¥å°
geosite:category-ads-all
ç±»å«ä¸ - å å
¥ AdGuard DNS Filter 广åååï¼éè¿ @AdGuard/DNS-filter è·å并å å
¥å°
geosite:category-ads-all
ç±»å«ä¸ - å å
¥ Peter Lowe 广ååéç§è·è¸ªååï¼éè¿ @PeterLowe/adservers è·å并å å
¥å°
geosite:category-ads-all
ç±»å«ä¸ - å å
¥ Dan Pollock 广åååï¼éè¿ @DanPollock/hosts è·å并å å
¥å°
geosite:category-ads-all
ç±»å«ä¸ - å å
¥ Windows æä½ç³»ç»ç¸å
³çç³»ç»å级åéç§è·è¸ªååï¼
- åºäº @crazy-max/WindowsSpyBlocker æ°æ®
- [æ
ç¨] Windows æä½ç³»ç»ä½¿ç¨çéç§è·è¸ªåå @crazy-max/WindowsSpyBlocker/hosts/spy.txt å å
¥å°
geosite:win-spy
ç±»å«ä¸ - [æ
ç¨] Windows æä½ç³»ç»ä½¿ç¨çç³»ç»å级åå @crazy-max/WindowsSpyBlocker/hosts/update.txt å å
¥å°
geosite:win-update
ç±»å«ä¸ - [æ
ç¨] Windows æä½ç³»ç»éå çéç§è·è¸ªåå @crazy-max/WindowsSpyBlocker/hosts/extra.txt å å
¥å°
geosite:win-extra
ç±»å«ä¸ - å ³äºè¿ä¸ä¸ªç±»å«ç使ç¨æ¹å¼ï¼è¯·åèä¸é¢ geosite ç Routing é ç½®æ¹å¼
- å¯æ·»å èªå®ä¹ç´è¿ã代çå广åååï¼ç±äºä¸æ¸¸ååå表æ´æ°ç¼æ
¢æ缺失æäºååï¼æ以å¼å
¥éè¦æ·»å çååå表ã
hidden åæ¯
éçä¸ä¸ªæ件direct.txt
ãproxy.txt
åreject.txt
ï¼åå«åæ¾èªå®ä¹çéè¦æ·»å çç´è¿ã代çã广åååï¼æç»åå«å å ¥å°geosite:cn
ãgeosite:geolocation-!cn
ågeosite:category-ads-all
ç±»å«ä¸ - å¯ç§»é¤èªå®ä¹ç´è¿ã代çå广åååï¼ç±äºä¸æ¸¸ååå表åå¨éè¦è¢«ç§»é¤çååï¼æ以å¼å
¥éè¦ç§»é¤çååå表ã
hidden åæ¯
éçä¸ä¸ªæ件direct-need-to-remove.txt
ãproxy-need-to-remove.txt
åreject-need-to-remove.txt
ï¼åå«åæ¾èªå®ä¹çéè¦ä»direct-list
ï¼ç´è¿ååå表ï¼ãproxy-list
ï¼ä»£çååå表ï¼åreject-list
ï¼å¹¿ååååè¡¨ï¼ ç§»é¤çåå
è§åæ件ä¸è½½å°å
å¦ææ æ³è®¿é®åå
raw.githubusercontent.com
ï¼å¯ä»¥ä½¿ç¨ç¬¬äºä¸ªå°åcdn.jsdelivr.net
ã å¦ææ æ³è®¿é®ååcdn.jsdelivr.net
ï¼å¯ä»¥å°å ¶æ¿æ¢ä¸ºfastly.jsdelivr.net
ã*.sha256sum ä¸ºæ ¡éªæ件ã
- geoip.datï¼
- geosite.datï¼
- ç´è¿ååå表 direct-list.txtï¼
- 代çååå表 proxy-list.txtï¼
- 广åååå表 reject-list.txtï¼
- @felixonmars/dnsmasq-china-list ä»åºæ¶éçå¨ä¸å½å¤§éå¯ç´è¿çååå表 china-list.txtï¼
- Apple å¨ä¸å½å¤§éå¯ç´è¿çååå表 apple-cn.txtï¼
- Google å¨ä¸å½å¤§éå¯ç´è¿çååå表 google-cn.txtï¼
- GFWList ååå表 gfw.txtï¼
- Windows æä½ç³»ç»ä½¿ç¨çéç§è·è¸ªååå表 win-spy.txtï¼
- Windows æä½ç³»ç»ä½¿ç¨çç³»ç»å级ååå表 win-update.txtï¼
- Windows æä½ç³»ç»ä½¿ç¨çéå éç§è·è¸ªååå表 win-extra.txtï¼
è§åæ件使ç¨æ¹å¼
geoip.dat
ç¹å»æ¥çå¨ V2Ray å Xray-core ä¸ç使ç¨æ¹æ³
éè¦å
ä¸è½½ geoip.dat
æ ¼å¼æ件ï¼å¹¶æ¾ç½®å¨ç¨åºç®å½å
ã
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "Direct",
"ip": [
"geoip:cn",
"geoip:private",
"ext:cn.dat:cn",
"ext:private.dat:private",
"ext:geoip-only-cn-private.dat:cn",
"ext:geoip-only-cn-private.dat:private"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"ip": [
"geoip:us",
"geoip:jp",
"geoip:facebook",
"geoip:telegram",
"ext:geoip-asn.dat:facebook",
"ext:geoip-asn.dat:telegram"
]
}
]
}
ç¹å»æ¥çå¨ mihomo ä¸ç使ç¨æ¹æ³
geodata-mode: true
geox-url:
geoip: "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
ç¹å»æ¥çå¨ hysteria ä¸ç使ç¨æ¹æ³
éè¦å
ä¸è½½ geoip.dat
æ ¼å¼æ件ï¼å¹¶æ¾ç½®å¨ hysteria ç¨åºç®å½å
ã
direct(geoip:cn)
proxy(geoip:telegram)
proxy(geoip:us)
ç¹å»æ¥çå¨ Trojan-Go ä¸ç使ç¨æ¹æ³
éè¦å
ä¸è½½ geoip.dat
æ ¼å¼æ件ï¼å¹¶æ¾ç½®å¨ Trojan-Go ç¨åºç®å½å
ã
"router": {
"enabled": true,
"bypass": ["geoip:cn"],
"proxy": ["geoip:telegram", "geoip:us"],
"block": ["geoip:jp"],
"default_policy": "proxy",
"geoip": "./geoip.dat"
}
geosite.dat
è· V2Ray å®æ¹ geosite.dat
é
ç½®æ¹å¼ç¸åãç¸æ¯å®æ¹ geosite.dat
æ件ï¼æ¬é¡¹ç®ç¹æçç±»å«ï¼
geosite:china-list
ï¼å å« @felixonmars/dnsmasq-china-list/accelerated-domains.china.conf æ件éçååï¼ä¾æç¹æ® DNS åæµéæ±çç¨æ·ä½¿ç¨ãgeosite:apple-cn
ï¼å å« @felixonmars/dnsmasq-china-list/apple.china.conf æ件éçååï¼ä¾å¸æ Apple ååç´è¿ï¼ä¸èµ°ä»£çï¼çç¨æ·ä½¿ç¨ãgeosite:google-cn
ï¼å å« @felixonmars/dnsmasq-china-list/google.china.conf æ件éçååï¼ä¾å¸æ Google ååç´è¿ï¼ä¸èµ°ä»£çï¼çç¨æ·ä½¿ç¨ã- [æ
ç¨]
geosite:win-spy
ï¼å å« @crazy-max/WindowsSpyBlocker/hosts/spy.txt æ件éçååï¼ä¾å¸æå±è½ Windows æä½ç³»ç»éç§è·è¸ªååçç¨æ·ä½¿ç¨ã - [æ
ç¨]
geosite:win-update
ï¼å å« @crazy-max/WindowsSpyBlocker/hosts/update.txt æ件éçååï¼ä¾å¸æå±è½ Windows æä½ç³»ç»èªå¨å级çç¨æ·ä½¿ç¨ã - [æ
ç¨]
geosite:win-extra
ï¼å å« @crazy-max/WindowsSpyBlocker/hosts/extra.txt æ件éçååï¼ä¾å¸æå±è½ Windows æä½ç³»ç»éå éç§è·è¸ªååçç¨æ·ä½¿ç¨ã
â ï¸ æ³¨æï¼å¨ Routing é ç½®ä¸ï¼ç±»å«è¶é åï¼ä¸ï¼ï¼ä¼å 级è¶é«ï¼æ以
geosite:apple-cn
ågeosite:google-cn
è¦æ¾ç½®å¨geosite:geolocation-!cn
åï¼ä¸ï¼é¢æè½çæã
é«çº§ç¨æ³
v2fly/domain-list-community é¡¹ç® data ç®å½ä¸æäºå表éçè§åä¼è¢«æ è®°è¯¸å¦ @cn
ç attributeï¼å¦ä¸æ示ï¼ï¼æ为该ååå¨ä¸å½å¤§éææ¥å
¥ç¹ï¼å¯ç´è¿ã
steampowered.com.8686c.com @cn
steamstatic.com.8686c.com @cn
对äºç© Steam å½åºæ¸¸æï¼æ³è¦ç´è¿çç¨æ·ï¼å¯ä»¥è®¾ç½®ç±»å« geosite:steam@cn
为ç´è¿ï¼æä¸ºå° steam å表å
ææ被æ è®°äº @cn
attribute çè§åï¼ååï¼è®¾ç½®ä¸ºç´è¿ãåçï¼ç±äº category-games å表å
å«äº steam
ãea
ãblizzard
ãepicgames
å nintendo
ç常è§ç游æååãè®¾ç½®ç±»å« geosite:category-games@cn
为ç´è¿ï¼å³å¯èç大éæå¡å¨æµéã
â ï¸ æ³¨æï¼å¨ Routing é ç½®ä¸ï¼ç±»å«è¶é åï¼ä¸ï¼ï¼ä¼å 级è¶é«ï¼æ以
geosite:category-games@cn
çææ带æ@cn
attribute çè§åé½è¦æ¾ç½®å¨geosite:geolocation-!cn
åï¼ä¸ï¼é¢æè½çæã
category-games
å表å çè§åï¼ååï¼å¯è½ä¼æçæ¼ï¼è¯·çæè§åå½ä¸æ åµãå¦åç°éæ¼ï¼æ¬¢è¿å°é¡¹ç® v2fly/domain-list-community æ issue åé¦ã
é ç½®åèä¸é¢ ððð
ç½ååæ¨¡å¼ Routing é ç½®æ¹å¼ï¼
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "Reject",
"domain": ["geosite:category-ads-all"]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": [
"geosite:private",
"geosite:apple-cn",
"geosite:google-cn",
"geosite:tld-cn",
"geosite:category-games@cn"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": ["geosite:geolocation-!cn"]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": ["geosite:cn"]
},
{
"type": "field",
"outboundTag": "Proxy",
"network": "tcp,udp"
}
]
}
é»ååæ¨¡å¼ Routing é ç½®æ¹å¼ï¼
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "Reject",
"domain": ["geosite:category-ads-all"]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": ["geosite:gfw"]
},
{
"type": "field",
"outboundTag": "Proxy",
"ip": ["geoip:telegram"]
},
{
"type": "field",
"outboundTag": "Direct",
"network": "tcp,udp"
}
]
}
DNS é ç½®æ¹å¼ï¼
"dns": {
"hosts": {
"dns.google": "8.8.8.8",
"dns.pub": "119.29.29.29",
"dns.alidns.com": "223.5.5.5",
"geosite:category-ads-all": "127.0.0.1"
},
"servers": [
{
"address": "https://1.1.1.1/dns-query",
"domains": ["geosite:geolocation-!cn"],
"expectIPs": ["geoip:!cn"]
},
"8.8.8.8",
{
"address": "114.114.114.114",
"port": 53,
"domains": ["geosite:cn", "geosite:category-games@cn"],
"expectIPs": ["geoip:cn"],
"skipFallback": true
},
{
"address": "localhost",
"skipFallback": true
}
]
}
èªç¨ V2Ray v4 çæ¬å®¢æ·ç«¯é ç½®ï¼ä¸éç¨äº V2Ray v5 åæ´æ°ççæ¬ï¼
注æäºé¡¹ï¼
- ç±äºä¸é¢å®¢æ·ç«¯é
ç½®ç DNS 使ç¨äº
skipFallback
é项ï¼æä»¥å¿ é¡»ä½¿ç¨ v4.37.2 ææ´æ°çæ¬ç V2Ray - ä¸é¢å®¢æ·ç«¯é 置使 V2Ray å¨æ¬æºå¼å¯ SOCKS 代çï¼çå¬ 1080 端å£ï¼å HTTP 代çï¼çå¬ 2080 端å£ï¼ï¼å 许å±åç½å å ¶ä»è®¾å¤è¿æ¥å¹¶ä½¿ç¨ä»£ç
- BT æµéç»ç»ç´è¿ï¼å®æµä¾ç¶ä¼æé¨å BT æµé走代çï¼å¦ææå¡åç¦æ¢ BT ä¸è½½ï¼è¯·ä¸è¦ä¸ºä¸è½½è½¯ä»¶è®¾ç½®ä»£çï¼
- æåï¼ä¸å½ä¸ä»»ä½è·¯ç±è§åç请æ±åæµéï¼ç»ç»èµ°ä»£ç
outbounds
éç第ä¸ä¸ªå¤§æ¬å·å çé ç½®ï¼å³ä¸º V2Ray 代çæå¡çé ç½®ãè¯·æ ¹æ®èªèº«éæ±è¿è¡ä¿®æ¹ï¼å¹¶åç § V2Ray å®ç½é ç½®ææ¡£ä¸ç é ç½® > Outbounds > OutboundObject é¨åè¿è¡è¡¥å ¨
{
"log": {
"loglevel": "warning"
},
"dns": {
"hosts": {
"dns.google": "8.8.8.8",
"dns.pub": "119.29.29.29",
"dns.alidns.com": "223.5.5.5",
"geosite:category-ads-all": "127.0.0.1"
},
"servers": [
{
"address": "https://1.1.1.1/dns-query",
"domains": ["geosite:geolocation-!cn", "geosite:google@cn"],
"expectIPs": ["geoip:!cn"]
},
"8.8.8.8",
{
"address": "114.114.114.114",
"port": 53,
"domains": [
"geosite:cn",
"geosite:icloud",
"geosite:category-games@cn"
],
"expectIPs": ["geoip:cn"],
"skipFallback": true
},
{
"address": "localhost",
"skipFallback": true
}
]
},
"inbounds": [
{
"protocol": "socks",
"listen": "0.0.0.0",
"port": 1080,
"tag": "Socks-In",
"settings": {
"ip": "127.0.0.1",
"udp": true,
"auth": "noauth"
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
}
},
{
"protocol": "http",
"listen": "0.0.0.0",
"port": 2080,
"tag": "Http-In",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
}
}
],
"outbounds": [
{
//ä¸é¢è¿è¡ï¼å议类å«è¦æ¹ä¸ºsocksãshadowsocksãvmessævlessçï¼è®°å¾å é¤æ¬è¡æå说æï¼
"protocol": "å议类å«",
"settings": {},
//ä¸é¢è¿è¡ï¼tagçå¼å¯¹åºRoutingéçoutboundTagï¼è¿é为Proxyï¼è®°å¾å é¤æ¬è¡æå说æï¼
"tag": "Proxy",
"streamSettings": {},
"mux": {}
},
{
"protocol": "dns",
"tag": "Dns-Out"
},
{
"protocol": "freedom",
"tag": "Direct",
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"protocol": "blackhole",
"tag": "Reject",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "mph",
"rules": [
{
"type": "field",
"outboundTag": "Direct",
"protocol": ["bittorrent"]
},
{
"type": "field",
"outboundTag": "Dns-Out",
"inboundTag": ["Socks-In", "Http-In"],
"network": "udp",
"port": 53
},
{
"type": "field",
"outboundTag": "Reject",
"domain": ["geosite:category-ads-all"]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": [
"full:www.icloud.com",
"domain:icloud-content.com",
"geosite:google"
]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": [
"geosite:tld-cn",
"geosite:icloud",
"geosite:category-games@cn"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": ["geosite:geolocation-!cn"]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": ["geosite:cn", "geosite:private"]
},
{
"type": "field",
"outboundTag": "Direct",
"ip": ["geoip:cn", "geoip:private"]
},
{
"type": "field",
"outboundTag": "Proxy",
"network": "tcp,udp"
}
]
}
}
è´è°¢
- @Loyalsoldier/geoip
- @v2fly/domain-list-community
- @Loyalsoldier/domain-list-custom
- @felixonmars/dnsmasq-china-list
- @gfwlist/gfwlist
- @cokebar/gfwlist2dnsmasq
- @AdblockPlus/EasylistChina+Easylist.txt
- @AdGuard/DNS-filter
- @PeterLowe/adservers
- @DanPollock/hosts
- @crazy-max/WindowsSpyBlocker
é¡¹ç® Star æ°å¢é¿è¶å¿
Top Related Projects
Community managed domain list
搜集、整理、维护 Surge / Quantumult (X) / Shadowrocket / Surfboard / clash (Premium) 实用规则。
提供多款 Shadowrocket 规则,带广告过滤功能。用于 iOS 未越狱设备选择性地自动翻墙。
SSR 去广告ACL规则/SS完整GFWList规则/Clash规则碎片,Telegram频道订阅地址
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot