Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下bind和bind-tcp可以绑定接口吗? #1229

Closed
qwerttvv opened this issue Jan 5, 2023 · 14 comments
Closed

请问下bind和bind-tcp可以绑定接口吗? #1229

qwerttvv opened this issue Jan 5, 2023 · 14 comments

Comments

@qwerttvv
Copy link

qwerttvv commented Jan 5, 2023

这边是openwrt,看现有文档似乎是可以设置监听ip和端口

之前我扫了一下外网ip的端口,发现端口是对外暴露的,然后看了一下配置文件,就在想是否可以只监听比如br-lan这样的接口呢?

或者只监听192.168.1.1/24这样?

总归现在对外暴露,目前的解决方案是防火墙建立规则,是不是可以从smartdns本身监听绑定解决问题呢?

@PikuZheng
Copy link
Contributor

请阅读配置说明文档。

键名 功能说明 默认值 可用值/要求 举例
bind DNS 监听端口号 [::]:53 可绑定多个端口。
IP:PORT: 服务器 IP:端口号
[-group]: 请求时使用的 DNS 服务器组
[-no-rule-addr]:跳过 address 规则
[-no-rule-nameserver]:跳过 Nameserver 规则
[-no-rule-ipset]:跳过 ipset 和 nftset 规则
[-no-rule-soa]:跳过 SOA(#) 规则
[-no-dualstack-selection]:停用双栈测速
[-no-speed-check]:停用测速
[-no-cache]:停止缓存
bind :53
bind-tcp DNS TCP 监听端口号 [::]:53 可绑定多个端口。
IP:PORT: 服务器 IP:端口号
[-group]: 请求时使用的 DNS 服务器组
[-no-rule-addr]:跳过 address 规则
[-no-rule-nameserver]:跳过 nameserver 规则
[-no-rule-ipset]:跳过 ipset 和 nftset 规则。
[-no-rule-soa]:跳过 SOA(#) 规则
[-no-dualstack-selection]:停用双栈测速
[-no-speed-check]:停用测速
[-no-cache]:停止缓存
bind-tcp :53

bind 192.168.1.1:53 是正确写法。但是需要确保在smartdns开启时,ip 192.168.1.1 可用

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

要是能支持绑网卡接口这样就更方便了

@pymumu
Copy link
Owner

pymumu commented Jan 5, 2023

目前没有,可以增加绑定端口
比如

bind [::]:53@eth0

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

目前没有,可以增加绑定端口 比如

bind [::]:53@eth0

可以这样的话,最好不过啦

@pymumu
Copy link
Owner

pymumu commented Jan 5, 2023

最新代码改了,配置方法如上。luci没有改。

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

最新代码改了,配置方法如上。luci没有改。

收到,我回去就试试

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

最新代码改了,配置方法如上。luci没有改。

大佬好像有点小问题

我测试流程如下
1、custom.conf里加入

bind [::]:53535@br-lan
bind [::]:5335@br-lan  -no-speed-check -group fly -force-aaaa-soa

2、运行/etc/init.d/smartdns restart
3、报错log

[2023-01-05 21:14:23,251][ERROR][     dns_server.c:5397] bind service [::]:53535@br-lan failed, Address in use
[2023-01-05 21:14:23,251][ERROR][     dns_server.c:5671] create server socket failed.
[2023-01-05 21:14:23,251][ERROR][     dns_server.c:330 ] epoll ctl failed, fd = 8, Invalid argument
[2023-01-05 21:14:23,251][ERROR][     dns_server.c:330 ] epoll ctl failed, fd = 7, Invalid argument
[2023-01-05 21:14:23,251][ERROR][       smartdns.c:430 ] start dns server failed.

复原custom.conf后换了一种测试
1、直接改“smartdns”配置文件

	option port '53535@br-lan'
	option seconddns_port '5335@br-lan'
	option old_port '53535@br-lan'

2、运行/etc/init.d/smartdns restart
3、程序跑起来了,但是作为dnsmasq上游,那边的设置会自动变成127.0.0.1#53535@br-lan,修改为127.0.0.1#53535保存后依旧不能打开网页
4、这次没有log文件,我已经把log调成debug也没有

呃。。第一遍回复时候忘了回复网络,发帖失败了,这是又编辑又发了一次

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

呃,日志调成debug是手滑打错了

现在出来了,先贴个改smartdns文件,然后改dnsmasq上游地址的

[2023-01-05 21:31:24,008][NOTICE][       smartdns.c:396 ] smartdns starting...(Copyright (C) Nick Peng <pymumu@gmail.com>, build: Jan  4 2023 23:11:53)
[2023-01-05 21:31:24,015][DEBUG][      fast_ping.c:1194] ping 2001::, id = 1
[2023-01-05 21:31:24,015][DEBUG][      fast_ping.c:470 ] ping 2001:: end, id 1
[2023-01-05 21:31:24,015][ INFO][     dns_server.c:5686] IPV6 is ready, enable IPV6 features
[2023-01-05 21:31:24,015][ INFO][     dns_client.c:1114] add server 202.106.195.68:53, type: udp
[2023-01-05 21:31:24,096][ INFO][     dns_client.c:1114] add server 1.12.12.12:443, type: https
[2023-01-05 21:31:24,096][ INFO][     dns_client.c:1114] add server 223.5.5.5:53, type: udp
[2023-01-05 21:31:24,097][ INFO][     dns_client.c:1114] add server 180.76.76.76:53, type: udp
[2023-01-05 21:31:24,097][ INFO][     dns_client.c:1360] add pending server dns.google
[2023-01-05 21:31:24,097][ INFO][     dns_client.c:1114] add server 1.1.1.1:443, type: https
[2023-01-05 21:31:24,097][ INFO][     dns_client.c:1360] add pending server dns.opendns.com
[2023-01-05 21:31:24,097][ INFO][     dns_client.c:1360] add pending server dns.quad9.net
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][DEBUG][     dns_server.c:1540] reply dns.quad9.net qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,897][DEBUG][     dns_server.c:769 ] result: dns.quad9.net, rtt: -0.1 ms, 9.9.9.9
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][DEBUG][     dns_client.c:548 ] send query to group fly
[2023-01-05 21:31:26,897][DEBUG][     dns_client.c:3263] send query to server 1.1.1.1
[2023-01-05 21:31:26,897][DEBUG][     dns_client.c:1980] enable TCP fast open failed.
[2023-01-05 21:31:26,897][DEBUG][     dns_client.c:2039] tls server 1.1.1.1 connecting.
[2023-01-05 21:31:26,897][ INFO][     dns_client.c:3559] send request dns.quad9.net, qtype 28, id 1
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.quad9.net, rule: dns.quad9.net
[2023-01-05 21:31:26,897][DEBUG][     dns_server.c:1540] reply dns.quad9.net qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,897][DEBUG][     dns_server.c:769 ] result: dns.quad9.net, rtt: -0.1 ms, 9.9.9.9
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:3024] dualstack result: domain: dns.quad9.net, ip: 9.9.9.9, type: 1, ping: -1
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:1540] reply dns.quad9.net qtype: 1, rcode: 0, reply: 0
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:769 ] result: dns.quad9.net, rtt: -0.1 ms, 9.9.9.9
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:1065] cache dns.quad9.net qtype: 1 ttl: 600
[2023-01-05 21:31:26,898][ INFO][     dns_client.c:1114] add server 9.9.9.9:443, type: https
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:1540] reply dns.opendns.com qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:769 ] result: dns.opendns.com, rtt: -0.1 ms, 208.67.222.222
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][DEBUG][     dns_client.c:548 ] send query to group fly
[2023-01-05 21:31:26,898][DEBUG][     dns_client.c:3263] send query to server 9.9.9.9
[2023-01-05 21:31:26,898][DEBUG][     dns_client.c:1980] enable TCP fast open failed.
[2023-01-05 21:31:26,898][DEBUG][     dns_client.c:2039] tls server 9.9.9.9 connecting.
[2023-01-05 21:31:26,898][DEBUG][     dns_client.c:3263] send query to server 1.1.1.1
[2023-01-05 21:31:26,898][ INFO][     dns_client.c:3559] send request dns.opendns.com, qtype 28, id 2
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.opendns.com, rule: dns.opendns.com
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:1540] reply dns.opendns.com qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,898][DEBUG][     dns_server.c:769 ] result: dns.opendns.com, rtt: -0.1 ms, 208.67.222.222
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:3024] dualstack result: domain: dns.opendns.com, ip: 208.67.222.222, type: 1, ping: -1
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:1540] reply dns.opendns.com qtype: 1, rcode: 0, reply: 0
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:769 ] result: dns.opendns.com, rtt: -0.1 ms, 208.67.222.222
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:1065] cache dns.opendns.com qtype: 1 ttl: 600
[2023-01-05 21:31:26,899][ INFO][     dns_client.c:1114] add server 208.67.222.222:443, type: https
[2023-01-05 21:31:26,899][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,899][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:1540] reply dns.google qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,899][DEBUG][     dns_server.c:769 ] result: dns.google, rtt: -0.1 ms, 8.8.8.8
[2023-01-05 21:31:26,899][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,899][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:548 ] send query to group fly
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:3263] send query to server 208.67.222.222
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:1980] enable TCP fast open failed.
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:2039] tls server 208.67.222.222 connecting.
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:3263] send query to server 9.9.9.9
[2023-01-05 21:31:26,899][DEBUG][     dns_client.c:3263] send query to server 1.1.1.1
[2023-01-05 21:31:26,899][ INFO][     dns_client.c:3559] send request dns.google, qtype 28, id 3
[2023-01-05 21:31:26,900][ INFO][     dns_server.c:3474] RULE-MATCH, type: 1, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,900][ INFO][     dns_server.c:3474] RULE-MATCH, type: 8, domain: dns.google, rule: dns.google
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:1540] reply dns.google qtype: 1, rcode: 0, reply: 1
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:769 ] result: dns.google, rtt: -0.1 ms, 8.8.8.8
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:3024] dualstack result: domain: dns.google, ip: 8.8.8.8, type: 1, ping: -1
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:1540] reply dns.google qtype: 1, rcode: 0, reply: 0
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:769 ] result: dns.google, rtt: -0.1 ms, 8.8.8.8
[2023-01-05 21:31:26,900][DEBUG][     dns_server.c:1065] cache dns.google qtype: 1 ttl: 600
[2023-01-05 21:31:26,900][ INFO][     dns_client.c:1114] add server 8.8.8.8:443, type: https
[2023-01-05 21:31:27,001][DEBUG][     dns_client.c:2873] tls server 208.67.222.222 connected.
[2023-01-05 21:31:27,001][DEBUG][     dns_client.c:2878] new session
[2023-01-05 21:31:27,001][DEBUG][     dns_client.c:2748] peer CN: doh.opendns.com
[2023-01-05 21:31:27,001][DEBUG][     dns_client.c:2799] cert SPKI pin(sha256): A0:F5:36:B8:3C:DD:D1:03:24:12:EC:72:E6:02:5C:25:E4:49:80:F7:BA:41:EF:BA:FE:C5:6E:2F:69:46:AC:D3
[2023-01-05 21:31:27,016][DEBUG][     dns_client.c:2873] tls server 1.1.1.1 connected.
[2023-01-05 21:31:27,016][DEBUG][     dns_client.c:2878] new session
[2023-01-05 21:31:27,016][DEBUG][     dns_client.c:2748] peer CN: cloudflare-dns.com
[2023-01-05 21:31:27,016][DEBUG][     dns_client.c:2799] cert SPKI pin(sha256): 32:72:DD:1A:2A:94:19:88:6D:CA:29:E5:AC:64:C2:E0:56:5D:0F:20:D7:BF:83:4E:58:51:A7:5D:6D:EE:AF:5E
[2023-01-05 21:31:27,126][DEBUG][     dns_client.c:2496] recv tcp packet from 208.67.222.222, len = 593
[2023-01-05 21:31:27,126][DEBUG][            dns.c:1880] opt type 12
[2023-01-05 21:31:27,126][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 468, id = 3, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 4096
[2023-01-05 21:31:27,126][DEBUG][     dns_client.c:1638] domain: dns.google qtype: 28  qclass: 1
[2023-01-05 21:31:27,126][DEBUG][     dns_server.c:3088] query result from server 208.67.222.222: 443, type: 3
[2023-01-05 21:31:27,126][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 274 IP: 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,126][DEBUG][     dns_server.c:2352] ping [2001:4860:4860:0000:0000:0000:0000:8888]:443 with tcp, order: 0, timeout: 723
[2023-01-05 21:31:27,126][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8888]:443, id = 2
[2023-01-05 21:31:27,126][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 274 IP: 2001:4860:4860:0000:0000:0000:0000:8844
[2023-01-05 21:31:27,126][DEBUG][     dns_server.c:2352] ping [2001:4860:4860:0000:0000:0000:0000:8844]:443 with tcp, order: 0, timeout: 723
[2023-01-05 21:31:27,126][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8844]:443, id = 3
[2023-01-05 21:31:27,155][DEBUG][     dns_client.c:2496] recv tcp packet from 1.1.1.1, len = 319
[2023-01-05 21:31:27,155][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 98, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2023-01-05 21:31:27,155][DEBUG][     dns_client.c:1638] domain: dns.quad9.net qtype: 28  qclass: 1
[2023-01-05 21:31:27,155][DEBUG][     dns_server.c:3088] query result from server 1.1.1.1: 443, type: 3
[2023-01-05 21:31:27,155][DEBUG][     dns_server.c:2543] domain: dns.quad9.net TTL: 4 IP: 2620:00fe:0000:0000:0000:0000:0000:00fe
[2023-01-05 21:31:27,155][DEBUG][     dns_server.c:2352] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:443 with tcp, order: 0, timeout: 692
[2023-01-05 21:31:27,155][DEBUG][      fast_ping.c:1194] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:443, id = 4
[2023-01-05 21:31:27,155][DEBUG][     dns_server.c:2543] domain: dns.quad9.net TTL: 4 IP: 2620:00fe:0000:0000:0000:0000:0000:0009
[2023-01-05 21:31:27,155][DEBUG][     dns_server.c:2352] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:443 with tcp, order: 0, timeout: 691
[2023-01-05 21:31:27,156][DEBUG][      fast_ping.c:1194] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:443, id = 5
[2023-01-05 21:31:27,156][DEBUG][     dns_client.c:1417] result: dns.quad9.net, qtype: 28, hasresult: 1, id 1
[2023-01-05 21:31:27,182][DEBUG][     dns_client.c:2873] tls server 9.9.9.9 connected.
[2023-01-05 21:31:27,182][DEBUG][     dns_client.c:2878] new session
[2023-01-05 21:31:27,182][DEBUG][     dns_client.c:2748] peer CN: *.quad9.net
[2023-01-05 21:31:27,182][DEBUG][     dns_client.c:2799] cert SPKI pin(sha256): FD:29:6C:BE:20:64:6F:4E:58:FF:C5:E2:28:5F:7E:09:9B:20:0A:DA:EA:3D:09:39:6E:1E:3B:A3:44:77:FC:28
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:2496] recv tcp packet from 1.1.1.1, len = 322
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 100, id = 2, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:1638] domain: dns.opendns.com qtype: 28  qclass: 1
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:3088] query result from server 1.1.1.1: 443, type: 3
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2543] domain: dns.opendns.com TTL: 3012 IP: 2620:0119:0053:0000:0000:0000:0000:0053
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2352] ping [2620:0119:0053:0000:0000:0000:0000:0053]:443 with tcp, order: 0, timeout: 662
[2023-01-05 21:31:27,186][DEBUG][      fast_ping.c:1194] ping [2620:0119:0053:0000:0000:0000:0000:0053]:443, id = 6
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2543] domain: dns.opendns.com TTL: 3012 IP: 2620:0119:0035:0000:0000:0000:0000:0035
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2352] ping [2620:0119:0035:0000:0000:0000:0000:0035]:443 with tcp, order: 0, timeout: 662
[2023-01-05 21:31:27,186][DEBUG][      fast_ping.c:1194] ping [2620:0119:0035:0000:0000:0000:0000:0035]:443, id = 7
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:2496] recv tcp packet from 1.1.1.1, len = 316
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 95, id = 3, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2023-01-05 21:31:27,186][DEBUG][     dns_client.c:1638] domain: dns.google qtype: 28  qclass: 1
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:3088] query result from server 1.1.1.1: 443, type: 3
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 556 IP: 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,186][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 556 IP: 2001:4860:4860:0000:0000:0000:0000:8844
[2023-01-05 21:31:27,197][DEBUG][     dns_server.c:2352] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:80 with tcp, order: 1, timeout: 650
[2023-01-05 21:31:27,197][DEBUG][      fast_ping.c:1194] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:80, id = 8
[2023-01-05 21:31:27,197][DEBUG][     dns_server.c:2352] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:80 with tcp, order: 1, timeout: 649
[2023-01-05 21:31:27,197][DEBUG][      fast_ping.c:1194] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:80, id = 9
[2023-01-05 21:31:27,198][DEBUG][     dns_server.c:2352] ping [2620:0119:0035:0000:0000:0000:0000:0035]:80 with tcp, order: 1, timeout: 650
[2023-01-05 21:31:27,198][DEBUG][      fast_ping.c:1194] ping [2620:0119:0035:0000:0000:0000:0000:0035]:80, id = 10
[2023-01-05 21:31:27,198][DEBUG][     dns_server.c:2352] ping [2620:0119:0053:0000:0000:0000:0000:0053]:80 with tcp, order: 1, timeout: 650
[2023-01-05 21:31:27,198][DEBUG][      fast_ping.c:1194] ping [2620:0119:0053:0000:0000:0000:0000:0053]:80, id = 11
[2023-01-05 21:31:27,198][DEBUG][     dns_server.c:2352] ping [2001:4860:4860:0000:0000:0000:0000:8888]:80 with tcp, order: 1, timeout: 651
[2023-01-05 21:31:27,198][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8888]:80, id = 12
[2023-01-05 21:31:27,198][DEBUG][     dns_server.c:2352] ping [2001:4860:4860:0000:0000:0000:0000:8844]:80 with tcp, order: 1, timeout: 651
[2023-01-05 21:31:27,198][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8844]:80, id = 13
[2023-01-05 21:31:27,357][DEBUG][     dns_server.c:2200] from [2620:0119:0053:0000:0000:0000:0000:0053]:443: seq=1 time=1707, lasttime=-1 id=0
[2023-01-05 21:31:27,357][ INFO][     dns_server.c:1756] result: dns.opendns.com, qtype: 28, rtt: 170.7 ms, 2620:0119:0053:0000:0000:0000:0000:0053
[2023-01-05 21:31:27,357][DEBUG][     dns_server.c:1540] reply dns.opendns.com qtype: 28, rcode: 0, reply: 1
[2023-01-05 21:31:27,357][DEBUG][     dns_server.c:776 ] result: dns.opendns.com, rtt: 170.7 ms, 2620:0119:0053:0000:0000:0000:0000:0053
[2023-01-05 21:31:27,357][DEBUG][     dns_server.c:1065] cache dns.opendns.com qtype: 28 ttl: 3012
[2023-01-05 21:31:27,357][DEBUG][      fast_ping.c:470 ] ping [2620:0119:0053:0000:0000:0000:0000:0053]:443 end, id 6
[2023-01-05 21:31:27,366][DEBUG][     dns_server.c:2200] from [2620:0119:0035:0000:0000:0000:0000:0035]:80: seq=1 time=1680, lasttime=1707 id=0
[2023-01-05 21:31:27,366][DEBUG][      fast_ping.c:470 ] ping [2620:0119:0035:0000:0000:0000:0000:0035]:80 end, id 10
[2023-01-05 21:31:27,383][DEBUG][     dns_server.c:2200] from [2620:00fe:0000:0000:0000:0000:0000:0009]:443: seq=1 time=2269, lasttime=-1 id=0
[2023-01-05 21:31:27,383][ INFO][     dns_server.c:1756] result: dns.quad9.net, qtype: 28, rtt: 226.9 ms, 2620:00fe:0000:0000:0000:0000:0000:0009
[2023-01-05 21:31:27,383][DEBUG][     dns_server.c:1540] reply dns.quad9.net qtype: 28, rcode: 0, reply: 1
[2023-01-05 21:31:27,383][DEBUG][     dns_server.c:776 ] result: dns.quad9.net, rtt: 226.9 ms, 2620:00fe:0000:0000:0000:0000:0000:0009
[2023-01-05 21:31:27,383][DEBUG][     dns_server.c:1065] cache dns.quad9.net qtype: 28 ttl: 600
[2023-01-05 21:31:27,383][DEBUG][      fast_ping.c:470 ] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:443 end, id 5
[2023-01-05 21:31:27,383][DEBUG][     dns_server.c:2200] from [2620:00fe:0000:0000:0000:0000:0000:00fe]:443: seq=1 time=2271, lasttime=2269 id=0
[2023-01-05 21:31:27,383][DEBUG][      fast_ping.c:470 ] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:443 end, id 4
[2023-01-05 21:31:27,389][DEBUG][     dns_server.c:2200] from [2620:0119:0035:0000:0000:0000:0000:0035]:443: seq=1 time=2027, lasttime=1680 id=0
[2023-01-05 21:31:27,389][DEBUG][      fast_ping.c:470 ] ping [2620:0119:0035:0000:0000:0000:0000:0035]:443 end, id 7
[2023-01-05 21:31:27,390][DEBUG][     dns_server.c:2200] from [2620:0119:0053:0000:0000:0000:0000:0053]:80: seq=1 time=1924, lasttime=1680 id=0
[2023-01-05 21:31:27,390][DEBUG][      fast_ping.c:470 ] ping [2620:0119:0053:0000:0000:0000:0000:0053]:80 end, id 11
[2023-01-05 21:31:27,397][DEBUG][     dns_client.c:1417] result: dns.opendns.com, qtype: 28, hasresult: 1, id 2
[2023-01-05 21:31:27,397][DEBUG][     dns_server.c:1540] reply dns.opendns.com qtype: 28, rcode: 0, reply: 0
[2023-01-05 21:31:27,398][DEBUG][     dns_server.c:776 ] result: dns.opendns.com, rtt: 168.0 ms, 2620:0119:0035:0000:0000:0000:0000:0035
[2023-01-05 21:31:27,398][ INFO][     dns_server.c:636 ] result: dns.opendns.com, id: 0, index: 1, rtt: 202.7 ms, 2620:0119:0035:0000:0000:0000:0000:0035
[2023-01-05 21:31:27,398][DEBUG][     dns_server.c:1065] cache dns.opendns.com qtype: 28 ttl: 3012
[2023-01-05 21:31:27,401][DEBUG][      fast_ping.c:470 ] ping [2620:00fe:0000:0000:0000:0000:0000:00fe]:80 end, id 9
[2023-01-05 21:31:27,426][DEBUG][     dns_client.c:2496] recv tcp packet from 9.9.9.9, len = 290
[2023-01-05 21:31:27,426][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 100, id = 2, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2023-01-05 21:31:27,426][DEBUG][     dns_client.c:1638] domain: dns.opendns.com qtype: 28  qclass: 1
[2023-01-05 21:31:27,428][DEBUG][     dns_client.c:2496] recv tcp packet from 9.9.9.9, len = 283
[2023-01-05 21:31:27,428][DEBUG][     dns_client.c:1627] qdcount = 1, ancount = 2, nscount = 0, nrcount = 0, len = 95, id = 3, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2023-01-05 21:31:27,428][DEBUG][     dns_client.c:1638] domain: dns.google qtype: 28  qclass: 1
[2023-01-05 21:31:27,429][DEBUG][     dns_server.c:3088] query result from server 9.9.9.9: 443, type: 3
[2023-01-05 21:31:27,429][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 853 IP: 2001:4860:4860:0000:0000:0000:0000:8844
[2023-01-05 21:31:27,429][DEBUG][     dns_server.c:2543] domain: dns.google TTL: 853 IP: 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,429][DEBUG][     dns_client.c:1417] result: dns.google, qtype: 28, hasresult: 1, id 3
[2023-01-05 21:31:27,434][DEBUG][     dns_server.c:1540] reply dns.quad9.net qtype: 28, rcode: 0, reply: 0
[2023-01-05 21:31:27,434][DEBUG][     dns_server.c:776 ] result: dns.quad9.net, rtt: 226.9 ms, 2620:00fe:0000:0000:0000:0000:0000:0009
[2023-01-05 21:31:27,435][ INFO][     dns_server.c:636 ] result: dns.quad9.net, id: 0, index: 1, rtt: 226.9 ms, 2620:00fe:0000:0000:0000:0000:0000:0009
[2023-01-05 21:31:27,435][ INFO][     dns_server.c:636 ] result: dns.quad9.net, id: 0, index: 2, rtt: 227.1 ms, 2620:00fe:0000:0000:0000:0000:0000:00fe
[2023-01-05 21:31:27,435][DEBUG][     dns_server.c:1065] cache dns.quad9.net qtype: 28 ttl: 600
[2023-01-05 21:31:27,435][DEBUG][      fast_ping.c:470 ] ping [2620:00fe:0000:0000:0000:0000:0000:0009]:80 end, id 8
[2023-01-05 21:31:27,497][DEBUG][     dns_server.c:2347] ping [2001:4860:4860:0000:0000:0000:0000:8888] with icmp, order: 2, timeout: 351
[2023-01-05 21:31:27,498][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8888], id = 14
[2023-01-05 21:31:27,498][DEBUG][     dns_server.c:2347] ping [2001:4860:4860:0000:0000:0000:0000:8844] with icmp, order: 2, timeout: 351
[2023-01-05 21:31:27,498][DEBUG][      fast_ping.c:1194] ping [2001:4860:4860:0000:0000:0000:0000:8844], id = 15
[2023-01-05 21:31:27,537][DEBUG][     dns_server.c:2200] from [2001:4860:4860:0000:0000:0000:0000:8888]: seq=1 time=397, lasttime=-1 id=0
[2023-01-05 21:31:27,537][ INFO][     dns_server.c:1756] result: dns.google, qtype: 28, rtt: 39.7 ms, 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,537][DEBUG][     dns_server.c:1540] reply dns.google qtype: 28, rcode: 0, reply: 1
[2023-01-05 21:31:27,537][DEBUG][     dns_server.c:776 ] result: dns.google, rtt: 39.7 ms, 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,537][DEBUG][     dns_server.c:1065] cache dns.google qtype: 28 ttl: 600
[2023-01-05 21:31:27,538][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8888] end, id 14
[2023-01-05 21:31:27,539][DEBUG][     dns_server.c:2200] from [2001:4860:4860:0000:0000:0000:0000:8844]: seq=1 time=408, lasttime=397 id=0
[2023-01-05 21:31:27,539][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8844] end, id 15
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:2179] ping [2001:4860:4860:0000:0000:0000:0000:8888]:443 timeout
[2023-01-05 21:31:27,926][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8888]:443 end, id 2
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:2179] ping [2001:4860:4860:0000:0000:0000:0000:8888]:80 timeout
[2023-01-05 21:31:27,926][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8888]:80 end, id 12
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:2179] ping [2001:4860:4860:0000:0000:0000:0000:8844]:80 timeout
[2023-01-05 21:31:27,926][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8844]:80 end, id 13
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:2179] ping [2001:4860:4860:0000:0000:0000:0000:8844]:443 timeout
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:1540] reply dns.google qtype: 28, rcode: 0, reply: 0
[2023-01-05 21:31:27,926][DEBUG][     dns_server.c:776 ] result: dns.google, rtt: 39.7 ms, 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,927][ INFO][     dns_server.c:636 ] result: dns.google, id: 0, index: 1, rtt: 39.7 ms, 2001:4860:4860:0000:0000:0000:0000:8888
[2023-01-05 21:31:27,927][ INFO][     dns_server.c:636 ] result: dns.google, id: 0, index: 2, rtt: 40.8 ms, 2001:4860:4860:0000:0000:0000:0000:8844
[2023-01-05 21:31:27,927][DEBUG][     dns_server.c:1065] cache dns.google qtype: 28 ttl: 600
[2023-01-05 21:31:27,927][DEBUG][      fast_ping.c:470 ] ping [2001:4860:4860:0000:0000:0000:0000:8844]:443 end, id 3
[2023-01-05 21:31:29,897][ INFO][     dns_client.c:1114] add server 2620:00fe:0000:0000:0000:0000:0000:0009:443, type: https
[2023-01-05 21:31:29,897][ INFO][     dns_client.c:1114] add server 2620:0119:0053:0000:0000:0000:0000:0053:443, type: https
[2023-01-05 21:31:29,897][ INFO][     dns_client.c:1114] add server 2001:4860:4860:0000:0000:0000:0000:8888:443, type: https

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

光绑一个br-lan也不对哈哈,路由里的ssrp+和dnsmasq咋弄啊?

我去先试试在br-lan下边的机器dig一下

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

@br-lan时候,br-lan下边的机器正常
直接53作为主dns服务器用就好使了,但是作为dnsmasq上游的话咋弄啊?是不是得127.0.0.1这样

@pymumu
Copy link
Owner

pymumu commented Jan 5, 2023

更新了luci界面,增加了bind device选项,可以验证看看。

@qwerttvv
Copy link
Author

qwerttvv commented Jan 5, 2023

更新了luci界面,增加了bind device选项,可以验证看看。

原来是可以多写两行哈哈,这下完美~

bind [::]:53535@br-lan
bind [::]:53535@lo
bind [::]:5335@br-lan -no-speed-check -group fly -force-aaaa-soa
bind [::]:5335@lo -no-speed-check -group fly -force-aaaa-soa

@jxph1123
Copy link

jxph1123 commented Jan 6, 2023

绑接口啥用呢,没懂,绑了影响ssrp吗

@qwerttvv
Copy link
Author

qwerttvv commented Jan 6, 2023

绑接口啥用呢,没懂,绑了影响ssrp吗

避免公网暴露啊

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants