Comments (8)
发下配置看看
source 接受 source-format 的 json文件
binary 接受 sing-box rule-set compile [--output <file-name>.srs] <file-name>.json
后的 srs文件
from homeproxy.
发下配置看看 source 接受 source-format 的 json文件 binary 接受
sing-box rule-set compile [--output <file-name>.srs] <file-name>.json
后的 srs文件
测试可以启动的binary
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/gfw.srs
测试无法启动的source
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/gfw.json
顺带提一下路由规则那边也用到了名称为sitegfw的规则集,那边工作正常但放到DNS规则里无法分流 XD
from homeproxy.
这两个文件, 内容是一致的
我猜测单纯是 gfw.json 还没下载下来
进一步检查请提供配置文件
而且说实话, remote 不推荐用 json, 即便是压缩成单行的 json, 还是要比 srs 大一倍
from homeproxy.
这两个文件, 内容是一致的 我猜测单纯是 gfw.json 还没下载下来 进一步检查请提供配置文件
等了三四分钟都还是启动不了喔,不太像是没下载完的样子(尝试json是打算看看能不能解决DNS分流的问题XD)
/tmp/run/homeproxy/sing-box-c.json里面对应部分
"dns": {
"servers": [
{
"tag": "cfg-Google-dns",
"address": "tls://dns.google",
"address_resolver": "default-dns",
"detour": "cfg-d7376bc253c6e71aa20d95fc75521ea7-out"
},
{
"tag": "cfg-AliDNS-dns",
"address": "tls://dns.alidns.com",
"address_resolver": "default-dns",
"detour": "direct-out"
}
],
"rules": [
{
"rule_set": [
"cfg-sitegfw-rule"
],
"outbound": [
"cfg-d7376bc253c6e71aa20d95fc75521ea7-out"
],
"server": "cfg-Google-dns"
}
],
"disable_cache": false,
"disable_expire": false,
"independent_cache": false,
"final": "cfg-AliDNS-dns"
}
"rule_set": [
{
"type": "remote",
"tag": "cfg-sitegfw-rule",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/gfw.srs",
"download_detour": "cfg-d7376bc253c6e71aa20d95fc75521ea7-out"
},
{
"type": "remote",
"tag": "cfg-iptelegram-rule",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs",
"download_detour": "cfg-d7376bc253c6e71aa20d95fc75521ea7-out"
}
],
/etc/config/homeproxy里面对应部分
config homeproxy 'dns'
option dns_strategy 'prefer_ipv4'
option default_server 'AliDNS'
config ruleset 'sitegfw'
option label 'sitegfw'
option enabled '1'
option type 'remote'
option format 'binary'
option url 'https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/gfw.srs'
option outbound 'Node1'
config ruleset 'iptelegram'
option label 'iptelegram'
option enabled '1'
option type 'remote'
option format 'binary'
option url 'https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs'
option outbound 'Node1'
config dns_server 'Google'
option label 'Google'
option enabled '1'
option address 'tls://dns.google'
option outbound 'Node1'
option address_resolver 'default-dns'
config dns_server 'AliDNS'
option label 'AliDNS'
option enabled '1'
option address 'tls://dns.alidns.com'
option address_resolver 'default-dns'
option outbound 'direct-out'
config dns_rule 'gfwsite'
option label 'gfwsite'
option enabled '1'
option mode 'default'
list rule_set 'sitegfw'
list outbound 'Node1'
option server 'Google'
config routing_rule 'gfw'
option label 'gfw'
option enabled '1'
option mode 'default'
list protocol 'http'
list protocol 'tls'
list protocol 'quic'
option source_ip_is_private '0'
option ip_is_private '0'
list rule_set 'sitegfw'
option rule_set_ipcidr_match_source '0'
option outbound 'Node1'
config routing_rule 'telegram'
option label 'telegram'
option enabled '1'
option mode 'default'
option source_ip_is_private '0'
option ip_is_private '0'
list rule_set 'iptelegram'
option rule_set_ipcidr_match_source '0'
option outbound 'Node1'
from homeproxy.
outbound 用法错了, 删掉即可
outbound 什么情况下用, 参考这个 issues
from homeproxy.
outbound 用法错了, 删掉即可 outbound 什么情况下用, 参考这个 issues
确实是这个问题,感谢大佬😍
倒是还有个奇怪的问题,dns设置为tls://dns.google的时候会报ERROR dns: exchange failed for google.com. IN A: io: read/write on closed pipe,但改成tls://8.8.8.8的时候又正常。在使用tls://dns.google时地址解析器设置WAN下发或者AliDNS都不行,大佬能猜测下大概是什么原因不😭
dns.google会命中sitegfw这条ruleset,不知是否有影响?
from homeproxy.
你建个8888的server
用于解析tls://dns.google的server试试看
from homeproxy.
你建个8888的server 用于解析tls://dns.google的server试试看
新建了个用于解析dns的上游并把dns.alidns.com和dns.google的都切了过去,发现上游那边只收到了dns.alidns.com的请求记录并没有dns.google的请求记录,难不成又是死循环🤦♂️
from homeproxy.
Related Issues (20)
- clash api 无法访问 HOT 3
- 界面出错 HOT 3
- dns错误 HOT 1
- 请教代理常用端口,是指哪些端口 HOT 5
- The checkbox 'Disable DNS cache' is invalid when it's checked. HOT 1
- 请教,DNS 服务器支持本地host实现cname吗? HOT 2
- 系统DNS是指Dnsmasq吗?
- hy2节点不支持配置端口跳跃啊 HOT 1
- 大佬出个自定义模板,边学习边用,非自定义模式DNS是泄露的。 HOT 2
- Restarting the homeproxy service will automatically clear the cron job list that I have already configured.
- 节点域名无法走直连,从外部连接服务端,所有网站全部走直连
- 无法获取cmliu/edgetunnel项目生成的订阅链接里的节点 HOT 9
- 在更新订阅时有一个bug HOT 2
- 节点类型没有urltest和selector选项 HOT 2
- ERROR dns: exchange failed HOT 2
- 如何在 hp 的防火墙接管流量之前做 NAT
- 建议增加转发stun流量的端口 HOT 2
- Bug报告! 订阅时 一部分节点被认为是重复节点 HOT 2
- 分流
- 【增强】DNS规则 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeproxy.