Giter Site home page Giter Site logo

loyalsoldier / v2ray-rules-dat Goto Github PK

View Code? Open in Web Editor NEW
13.7K 136.0 1.5K 4.76 MB

🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go、leaf 和 hysteria。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go, leaf and hysteria.

License: GNU General Public License v3.0

v2ray geoip geosite routing gfw gfwlist chinalist adblock dnsmasq adguard

v2ray-rules-dat's Introduction

Hi there 👋

Loyalsoldier's Github Stats

v2ray-rules-dat's People

Contributors

chshouyu avatar dependabot[bot] avatar kidonng avatar loyalsoldier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v2ray-rules-dat's Issues

a-i-ad.com与bdtj.tagtic.cn 望移除

a-i-ad.com是DMM的网站,加入后容易导致游戏点不开……
bdtj.tagtic.cn 是nga的统计网站,会导致点击帖子无法正常加载

"geosite:geolocation-cn"和 "geosite:apple-cn" 对apple.com.cn都不生效

测试无效规则

                "domain": [
                    "geosite:geolocation-cn",
                    "geosite:apple-cn"
                ],
                "inboundTag": [
                    "SOCKS_gConf",
                    "http_gConf"
                ],
                "ip": [
                ],
                "network": "tcp,udp",
                "outboundTag": "Freedom_a",
                "port": "1-65535",
                "protocol": [
                ],
                "source": [
                ],
                "type": "field",
                "user": [
                ]

测试有效规则

                "domain": [
                    "geosite:geolocation-cn",
                    "geosite:apple-cn",
                    "domain:domain:apple.com.cn"
                ],
                "inboundTag": [
                    "SOCKS_gConf",
                    "http_gConf"
                ],
                "ip": [
                ],
                "network": "tcp,udp",
                "outboundTag": "Freedom_a",
                "port": "1-65535",
                "protocol": [
                ],
                "source": [
                ],
                "type": "field",
                "user": [
                ]

请问有没有更准确的IP地址归属地分类

CN的IP已经得到了很大的增强,但Maxmind的IP地址的所属地似乎并不准确,比如google在香港的服务器地址 172.217.24.68 ,他会任务属于US。
所以请问一下,有没有更准确的识别IP归属地的方式

建议将top域名移除direct-tld-list

国外有很多网站也使用top域名,导致访问非常慢,特别是一些视频服务,加载非常缓慢。经测试,将top域名加入代理后,加载速度较快。

v2rayN修改配置文件自动变回原样?

你好,请问为什么我按照你所说的方法修改config.json文件后,每次重新打开V2rayN(win)客户端,我的配置文件又变回了原样。这样能正常使用吗?

希望大佬解决一个小问题

我在使用中发现一个小问题。。就是当你连接一个节点。有些网站比如虎牙,需要使用qq快速登录的时候,网站怎么刷新都不会出现快捷登录的QQ。直连和全部走代理都不会出现快捷登录的页面。 我也不会添加,求教大佬 希望下个直连方案里会解决这个小问题。每次要快捷登录QQ的时候 都需要手动断开节点连接。😒😒

geosite文件存在问题

以解析js.t.sinajs.cn为例,使用4M的geosite文件,可以正确路由到指定DNS上游,解析结果为就近CDN节点:
image
日志如下:

2020/08/03 18:43:19 [Info] [76310524] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:127.0.0.1:5302]
2020/08/03 18:43:19 [Info] [76310524] v2ray.com/core/proxy/dns: handling DNS traffic to udp:127.0.0.1:5302
2020/08/03 18:43:19 [Info] v2ray.com/core/transport/internet/udp: establishing new connection for udp:x.x.x.x:5300
2020/08/03 18:43:19 [Info] v2ray.com/core/app/dispatcher: default route for udp:x.x.x.x:5300
2020/08/03 18:43:19 [Info] v2ray.com/core/proxy/freedom: opening connection to udp:x.x.x.x:5300
2020/08/03 18:43:19 [Info] v2ray.com/core/app/dns: UDP:x.x.x.x:5300 got answere: js.t.sinajs.cn. TypeA -> [113.x.x.x 113.x.x.x 113.x.x.x 113.x.x.x 113.x.x.x 113.x.x.x 113.x.x.x 113.x.x.x] 4.299076ms

使用2M的文件,无法正确路由,递交到了默认DNS上游:
image
日志如下:

2020/08/04 02:33:41 [Warning] v2ray.com/core: V2Ray 4.26.0 started
2020/08/04 02:37:51 [Info] [776420172] v2ray.com/core/app/dispatcher: taking detour [dns-out] for [udp:223.5.5.5:53]
2020/08/04 02:37:51 [Info] [776420172] v2ray.com/core/proxy/dns: handling DNS traffic to udp:223.5.5.5:53
2020/08/04 02:37:51 [Info] v2ray.com/core/transport/internet/udp: establishing new connection for udp:1.1.1.1:53
2020/08/04 02:37:51 [Info] v2ray.com/core/app/dispatcher: taking detour [Proxy] for [udp:1.1.1.1:53]
2020/08/04 02:37:51 [Info] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:x.x.x.x:10000
2020/08/04 02:37:51 [Info] v2ray.com/core/proxy/vmess/outbound: tunneling request to udp:1.1.1.1:53 via tcp:x.x.x.x:10000
2020/08/04 02:37:51 [Info] v2ray.com/core/app/dns: UDP:1.1.1.1:53 got answere: js.t.sinajs.cn. TypeA -> [47.246.25.226 47.246.25.231 47.246.25.232 47.246.25.229 47.246.25.228 47.246.25.225 47.246.25.227 47.246.25.230] 626.4241ms

以下是DNS配置:

{
    "dns": {
        "hosts": {
            "geosite:category-ads-all": "127.127.127.127"
        },
        "servers": [
            {
                "address": "1.1.1.1",
                "port": 53
            },
            {
                "address": "8.8.8.8",
                "port": 53
            },
            {
                "address": "x.x.x.x",
                "port": 5300,
                "domains": [
                    "geosite:cn"
                ],
                "expectIPs": [
                    "geoip:cn"
                ]
            },
            {
                "address": "https+local://223.5.5.5/dns-query",
                "port": 443
            }
        ]
    }
}

例子中的dns.google会导致v2ray崩溃

v2ray v4.22.1

范例配置中DnsObject的dns.google会导致v2ray崩溃。

"https://dns.google/dns-query",

Crash log:

2020/03/24 22:06:58 v2ray.com/core/app/dns: DNS config error > lookup dns.google on 10.0.0.1:53: read udp 10.0.0.2:60661->10.0.0.1:53: i/o timeout

手工添加dns.google到v2ray配置中,依然会崩溃。

"hosts": {"dns.google": "8.8.8.8"}

servers中注释或删除掉这条记录,问题就会消失。

建议将大陆可访问的Google服务从geosite:geolocation-!cn中移除

fonts.googleapis.com等服务在大陆已经解封,可以直接解析到北京的服务器使用。如果使用1.1.1.1之类进行解析,访问速度反而不理想。

而本项目README中提到:

@felixonmars/dnsmasq-china-list/google.china.conf 加入到 geosite:geolocation-!cn 类别中

但dnsmasq-china-list其实是这样解释google.china.conf的:

These domains are resolved to Google China servers when using a Chinese DNS. In most conditions this will yield better page load time for sites using Google's web services, e.g. Google Web Fonts and AdSense.

是不是可以考虑从geosite:geolocation-!cn中移除,加到比如geosite:cn当中去?

广告屏蔽会让youtube app的观看历史记录功能失效

前一阵子用了加强版的geosite,里面的广告屏蔽会让youtube app的观看历史记录功能失效,刚开始没想到是V2RAY的锅,找了半天才发现关掉geo资源文件里的广告屏蔽youtube历史记录就好用了,查了一下好像不能把*s.youtube.com屏蔽了,希望能处理一下

为什么这儿的Geosite.dat的尺寸很大

和原版的相比 (geosite.dat或者dlc.dat), 为什么原版的才500来KB, 这儿却要3M多。

原版的路由里加 geolocation-!cn 或者 geosite:gfw 都不起作用,也不知道为什么。

所以我才想试试看这儿的geosite:geolocation-!cn

有哪些使用风险?

首先感谢作者的分享。提供这类科技服务大众的都是英雄。

话说回来,还是需要问一下,如果这个dat文件有被恶意修改的可能,有可能会造成哪些危险?
比如互联网数据泄漏?还是甚至有可能连接到恶意网站?
我是菜鸟,根据我的理解这类文件最多只能是访问有问题,会有其他危险没?

geosite:speedtest

我的config.json中,routing rules部分有一行引用了"geosite:speedtest"(应该是v2rayN的Core路由设置界面里的一键设置按钮自动添加的),但使用4月10日的geosite.dat就会导致报错,换回之前3月31日的旧版就无此问题。

gstatic.com划分错误

dat一直把gstatic.com划分在google-cn里,如果规则里设置了google-cn直连,那始终连不上gstatic.com,登录和使用google.com都有问题。

**谷歌框架DF-DFERH-01

可以尝试做一个不包含googleapis.cn的版本么
这会导致在**使用谷歌商店会指向**服务器
因为我使用的是v2ray_for_magisk版本
所以无法自己手动添加。您能帮我做一份么,谢谢
把googleapis.cn这个域去掉

Add proxy domain tentacles.supertop.co

Castro(a podcast client for iOS) use api.amplitude.com and tentacles.supertop.co for its discovery page, I saw api.amplitude.com was in the proxy-list already.

請問geosite:tld-cn的定義?

因爲在示例的配置中有見到geosite:tld-cn,請問geosite:tld-cn的域名範圍和定義是什麼?和geosite:cn有什麼區別?謝謝!

[建议] 可以打包在一起吗

因为打算使用scoop来自动加入更新, 但是scoop的autoupdate不支持两个文件一起
所以建议两个放在一个压缩包中, 同时给出sha256

steam和steamcontent分离

你好,请问是否可以做到steam本身(steampowered.com)和steam在代理,但是国内的steamcontent可以在cn列表里

开了全局代理的路由模式后,发现steam下载内容仍然会去走代理(路由设置非cn都会走代理)。自己尝试调过很多次,但是似乎都无法正确地处理和解析

建议单列国内CDN相关的域名

在DNS分流中,如果国内的域名全部使用DoH之类的加密DNS解析,会造成CDN相关(并不一定是CDN服务商的域名,所有解析的结果针对不同地区明显优化的域名都应归为此类)的域名通过远程的DNS服务器,解析到了DNS服务器所在地的IP地址。
例如,hdslb.com,bilivideo.com都属于此类域名,而bilibili.com不属于此类域名。

而诸如rubyfish,233py这类国内加密DNS提供商并没有在所有省份部署DNS服务器。

造成的结果是,使用上述加密DNS解析腾讯系qpic.cn, gtimg.cn等域名,和哔哩哔哩的bilivideo.com等域名,媒体访问体验均有明显下降甚至完全不可用。

个人使用的国内CDN域名列表基于以下仓库的数据,并添加了一些日常访问中遇到的其它国内CDN域名:
https://github.com/mawenjian/china-cdn-domain-whitelist/blob/master/china-cdn-domain-whitelist.conf

因此可否整理出较为完整的国内CDN域名列表,非常感谢!

Fcm不断重连

使用规则 geosite:geolocation-!cn 后导致安卓fcm(并未被墙)每99-100s就断开重连,取消该规则并将mtalk.google.com, alt[1-8]-mtalk.google.com域名加入直连列表则正常连接。希望能修复该问题

[建议] 改用 BGP/ASN 数据建立 geoip

我在上游提了这个建议,但其实实话说我觉得上游不见得有人有动力搞这个,所以我想把这个建议在这里也提一下:


引用 **运营商IP地址库 里高大的话:

在国内,BGP/ASN数据分析的商业服务只有一个ipip.net,是目前运营商IP库准确度最高的服务商,我认为没有之一。
…………
但是,目前国内绝大多数IP库都由WHOIS数据库作为基础数据来源。WHOIS数据仅表示某个IP被哪个机构注册,但无从知晓该IP被用在何处,这就导致许多非运营商自己注册的IP地址无法被正确分类。ipip.net是最早开始做BGP/ASN数据分析的公司之一,数据准确性甩其它库几条街。

我自己也在做和 geoip 项目类似的事,上上周无聊检查了一下我用 MaxMind 免费数据库产生的 ipv6 规则的质量,结果抽了 5 条拿去 ipip 检查,3 条 ip 的归属地都显示香港。
我知道这并不一定代表 ipip 对了 MaxMind 错了,但是从原理上来讲确实从 BGP/ASN 数据建立的 geoip 会让我心里舒坦很多。

也许可以考虑把数据来源换成 GitHub 上许多非常成熟的 BGP 数据,例如:

另外我本人最近试着把 ipip 的免费公开数据和高大的数据合并,所以也许也可以考虑用我这里生成的规则:


我完全没接触过 golang,所以我想也许可以想找到一个和我有同样心思的人,然后搭大佬的便车。
我自己去填这个坑的话不知道猴年马月去了——疫情期间,大学很多事都变得麻烦许多,我想恐怕是很难抽出空来了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.