kkkgo / PaoPaoDNS

泡泡DNS是一个能一键部署递归DNS的docker镜像

Home Page:https://blog.03k.org/post/paopaodns.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Help] PPGW+PPDNS的情况下,test.sh测试通过,电脑可以正常出国。但是iPhone使用比较卡顿。

jq88kazze opened this issue · comments

在提交之前,请确认

  • 我已经尝试执行test.sh并搜索过Issue和discussions和文档,但没有找到相关问题。
  • 我正在使用最新的docker镜像版本(可以尝试docker pull sliamb/paopaodns:latest后重新创建容器)。

test.sh脚本自检日志

/data # test.sh
*********************************************************************************

images build time : 2024-06-04 15:57:54 UTC
check for the latest version ,
go to https://github.com/kkkgo/PaoPaoDNS/discussions 
-> test start `1718033432`

[INFO] ALL TEST PASS.✅

-> test end `1718033441`

*********************************************************************************

debug.sh脚本自检日志

/data # debug.sh
### == debug.sh : docker exec -it paopaodns sh ==
-> debug start `1718033500`

[INFO] images build time : 2024-06-04 15:57:54 UTC
[OK]DATA_writeable
[OK]DATA_readable
[INFO] NETWORK
*********************************************************************************

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
192: eth0@if4: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP 
    inet 192.168.88.15/24 brd 192.168.88.255 scope global eth0
    inet6 fd00::42:c0ff:fea8:580f/64 scope global dynamic flags 100 
    inet6 fd00::3/64 scope global flags 02 
    inet6 fe80::42:c0ff:fea8:580f/64 scope link 
default via 192.168.88.1 dev eth0 
192.168.88.0/24 dev eth0 scope link  src 192.168.88.15 
PING 223.5.5.5 (223.5.5.5): 56 data bytes
64 bytes from 223.5.5.5: seq=0 ttl=120 time=7.048 ms

--- 223.5.5.5 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 7.048/7.048/7.048 ms
PING 119.29.29.29 (119.29.29.29): 56 data bytes
64 bytes from 119.29.29.29: seq=0 ttl=50 time=14.199 ms

--- 119.29.29.29 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 14.199/14.199/14.199 ms
Server:         223.5.5.5
Address:        223.5.5.5#53

Non-authoritative answer:
www.taobao.com  canonical name = www.taobao.com.danuoyi.tbcache.com.
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 36.150.241.180
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 36.150.241.181
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 183.213.30.132
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2409:8c20:9c73:103:3::26
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2409:8c20:815:116:3::3d6
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2409:8c20:815:116:3::3d5

Server:         119.29.29.29
Address:        119.29.29.29#53

Non-authoritative answer:
www.qq.com      canonical name = ins-r23tsuuf.ias.tencent-cloud.net.
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 183.194.238.117
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 183.194.238.19
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2409:8c1e:75b0:1121::15
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2409:8c1e:75b0:1120::27

*********************************************************************************

[INFO] ENV
*********************************************************************************

====ENV TEST====
[OK]DATA_writeable-
[OK]DATA_readable-
MEM:1500m 3000m 10000000 4500mb
prefPC:100
CORES:-8-
POWCORES:-8-
ulimit :-1048576-
FDLIM :-4096-
TZ:-Asia/Shanghai-
UPDATE:-weekly-
DNS_SERVERNAME:-PaoPaoDNS,blog.03k.org-
SERVER_IP:--
ETHIP:-192.168.88.15-
DNSPORT:-53-
SOCKS5:-192.168.88.2:1082-
CNAUTO:-yes-
IPV6:-no-
CNFALL:-yes-
CUSTOM_FORWARD:-192.168.88.200:53-
AUTO_FORWARD:-yes-
AUTO_FORWARD_CHECK:-yes-
USE_MARK_DATA:-no-
RULES_TTL:--
CUSTOM_FORWARD_TTL:-0-
SHUFFLE:-no-
EXPIRED_FLUSH:-yes-
CN_TRACKER:-yes-
USE_HOSTS:-no-
HTTP_FILE:-yes-
SAFEMODE:--
QUERY_TIME:-2000ms-
ADDINFO:-no-
PLATFORM:-Linux 6941ebde530a 5.19.17-Unraid #2 SMP PREEMPT_DYNAMIC Wed Nov 2 11:54:15 PDT 2022 x86_64 Linux-
====ENV TEST====
mosdns kkkgo/mosdns:240529.1
total 38M    
      0 drwxrwxrwx    1 99       100          626 Jun 10 23:30 .
      0 drwxr-xr-x    1 0        0            158 Jun 10 23:30 ..
 260.0K -rw-r--r--    1 0        0         257.0K Jun 10 23:30 Country-only-cn-private.mmdb
   4.0K -rwxrwxrwx    1 99       100         1.0K Mar 14 23:09 custom.yaml
   4.0K -rwxrwxrwx    1 0        0            233 Apr 25 12:15 custom_env.ini
   4.0K -rwxrwxrwx    1 0        0            416 Jun 10 23:30 custom_mod.yaml
      0 drwxr-xr-x    1 0        0            208 Jun 10 23:30 dnscrypt-resolvers
   4.0K -rw-r--r--    1 0        0           3.0K Jun 10 23:30 dnscrypt.toml
   4.0K -rwxrwxrwx    1 0        0            648 Apr 25 00:30 force_cn_list.txt
   4.0K -rwxrwxrwx    1 99       100          440 Apr 24 23:04 force_dnscrypt_list.txt
   4.0K -rwxrwxrwx    1 0        0             92 Mar 27 20:28 force_forward_list.txt
   4.0K -rwxrwxrwx    1 1000     100         1.1K Apr 25 12:09 force_nocn_list.txt
   4.0K -rwxrwxrwx    1 0        0            387 Apr 15 19:33 force_recurse_list.txt
      0 -rwxrwxrwx    1 0        0              0 Jul 18  2023 force_ttl_rules.txt
  12.0K -rw-r--r--    1 0        0           9.9K Jun 10 23:30 mosdns.yaml
   4.0K -rwxrwxrwx    1 99       100         1.4K Mar 24 20:32 ppgw.ini
   8.0K -rw-r--r--    1 0        0           5.7K Jun 10 23:30 redis.conf
  37.5M -rwxrwxrwx    1 0        0          37.5M Apr 26 12:14 redis_dns_v2.rdb
  48.0K -rwxrwxrwx    1 0        0          45.1K Apr 25 00:37 trackerslist.txt
  52.0K -rw-r--r--    1 0        0          50.6K Jun 10 23:30 unbound.conf
   4.0K -rwxrwxrwx    1 0        0            508 Jul 18  2023 unbound_custom.conf
*********************************************************************************

[INFO] PS
*********************************************************************************

PID   USER     TIME  COMMAND
    1 root      0:00 {init.sh} /bin/sh /usr/sbin/init.sh
   23 root      0:00 crond
   57 root      0:00 redis-server unixsocket:/tmp/redis.sock
  104 root      0:00 sh
  197 root      0:00 dnscrypt-proxy -config /data/dnscrypt-resolvers/dnscrypt.toml
  198 root      0:00 dnscrypt-proxy -config /data/dnscrypt-resolvers/dnscrypt_socks.toml
  218 root      0:00 unbound -c /tmp/unbound_forward.conf -p
  229 root      0:00 mosdns start -d /tmp -c /tmp/mosdns.yaml
  251 root      0:02 unbound -c /tmp/unbound_raw.conf -p
  252 root      0:00 {watch_list.sh} /bin/sh /usr/sbin/watch_list.sh
  253 root      0:00 {data_update.sh} /bin/sh /usr/sbin/data_update.sh
  255 root      0:00 sleep 108
  256 root      0:00 tail -f /dev/null
  300 root      0:00 inotifywait -e modify,delete /etc/unbound/named.cache /data/Country-only-cn-private.mmdb /data/force_recurse_list.txt /data/force_dnsc
  649 root      0:00 sh
  655 root      0:00 {debug.sh} /bin/sh /usr/sbin/debug.sh
  675 root      0:00 ps -ef
  251 root      0:02 unbound -c /tmp/unbound_raw.conf -p
unbound OK.
  218 root      0:00 unbound -c /tmp/unbound_forward.conf -p
unbound_forward OK.
*********************************************************************************

[INFO] TOP
*********************************************************************************

CPU:  12% usr  11% sys   0% nic  75% idle   0% io   0% irq   0% sirq
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  251     1 root     S    4854m   7%   7   0% unbound -c /tmp/unbound_raw.conf -
  197     1 root     S    1212m   2%   3   0% dnscrypt-proxy -config /data/dnscr
  198     1 root     S    1211m   2%   7   0% dnscrypt-proxy -config /data/dnscr
  229     1 root     S    1210m   2%   5   0% mosdns start -d /tmp -c /tmp/mosdn
   57     1 root     S    81356   0%   3   0% redis-server unixsocket:/tmp/redis
  218     1 root     S    20688   0%   7   0% unbound -c /tmp/unbound_forward.co
  104     0 root     S     1724   0%   5   0% sh
  252     1 root     S     1716   0%   5   0% {watch_list.sh} /bin/sh /usr/sbin/
  649     0 root     S     1696   0%   3   0% sh
  253     1 root     S     1636   0%   7   0% {data_update.sh} /bin/sh /usr/sbin
    1     0 root     S     1632   0%   2   0% {init.sh} /bin/sh /usr/sbin/init.s
  655   649 root     S     1628   0%   0   0% {debug.sh} /bin/sh /usr/sbin/debug
  682   655 root     R     1624   0%   0   0% top -n1
  256     1 root     S     1616   0%   4   0% tail -f /dev/null
  255   253 root     S     1612   0%   4   0% sleep 108
  683   655 root     S     1612   0%   1   0% grep %
  300   252 root     S     1072   0%   2   0% inotifywait -e modify,delete /etc/
   23     1 root     S      860   0%   5   0% crond
*********************************************************************************

[INFO] REDIS
*********************************************************************************

used_memory_human:46.62M
used_memory_rss_human:61.34M
used_memory_peak_human:46.62M
total_system_memory_human:62.66G
used_memory_lua_human:31.00K
used_memory_vm_total_human:63.00K
used_memory_scripts_human:181B
maxmemory_human:4.39G
(integer) 153473
*********************************************************************************

[TEST] IP ROUTE
*********************************************************************************

CN IP URL:
223.67.151.x
-
223.67.151.x
--
223.67.151.x
CN RAW-IP URL:
49.69.75.x
------------------
Non-CN IP URL:
192.9.246.x
-
192.9.246.x
--
192.9.246.x
Non-CN RAW-IP URL:
223.67.151.x
-
--
223.67.151.x
---
223.67.151.x
------------------
IP INFO:
Error connecting to the server

[INFO] force_recurse_list
domain:whoami.ds.akahelp.net
domain:whoami.03k.org
MOSDNS WHOAMI :
MOSDNS akahelp: "ns" "223.67.151.x"
MOSDNS 03k: 223.67.151.x
UNBOUND WHOAMI:
UNBOUND akahelp: "ns" "223.67.151.x"
UNBOUND 03k: 223.67.151.x
*********************************************************************************

[TEST] HIJACK
*********************************************************************************

;; communications error to 9.8.7.5#53: timed out
;; no servers could be reached

;; communications error to 9.8.7.6#53: timed out
;; no servers could be reached

HIJACK 127.0.0.1 = 112.25.12.178
*********************************************************************************

[TEST] DIG-CN [taobao]
*********************************************************************************

MOSDNS CN:
www.taobao.com.danuoyi.tbcache.com.
36.150.241.181
36.150.241.180
183.213.30.131
UNBOUND CN:
www.taobao.com.danuoyi.tbcache.com.
183.213.30.131
36.150.241.181
36.150.241.180
[TEST] DIG-NOCN [youtube]
MOSDNS NOCN:
7.0.0.51
DNSCRYPT-UNBOUND NOCN:
youtube-ui.l.google.com.
172.217.160.110
172.217.163.46
DNSCRYPT NOCN:
youtube-ui.l.google.com.
142.250.184.14
142.250.185.14
DNSCRYPT-SOCKS5 NOCN:
youtube-ui.l.google.com.
142.251.211.238
142.251.33.78
*********************************************************************************

CUSTOM_FORWARD TEST [youtube]:
7.0.0.51
CUSTOM_FORWARD TEST [taobao]:
7.0.8.233
*********************************************************************************

[TEST] DUAL CN [IPv6=YES will have aaaa,taobao]
*********************************************************************************

[TEST] DUAL NOCN [IPv6=YES will block aaaa,youtube]
[TEST] ONLY6 [IPv6=only6 will block aaaa if a ok]
checkipv6.synology.com : ip6.03k.org : 6.ipw.cn : 
*********************************************************************************

[info] ALL TEST FINISH.

-> debug end `1718033515`
/data #

问题描述和复现步骤

主路由ROS,防火墙

kkkgo/PaoPaoGateWay#48 (reply in thread)
iPhone微信和QQ会间歇性图片发不出去,视频发不出去的情况。safari打开baidu.com会卡几秒才进去

你访问baidu.com怎么都不应该受到DNS和ppgw影响,你可以在电脑上查一下解析结果nslookup baidu.com和跟踪一下路由tracert baidu.com看看。
也可以用手机打开https://html.zone/ip 看看分流是否正确。
另外USE_MARK_DATA建议开启。

我在外面套了adguardhome,解析ip都是正常的,就是打开www.baidu.com慢,里面的内容一点就是秒开。在ppgw的记录里也没有奇怪的东西。主要是qq微信图片视频发不出去,打qq电话的时候对面也看不到我人。

那你就要看是不是adguardhome的拦截规则搞坏了。

adg黑名单没开,等周末回去再试试

我碰到过类似的情况,试试修改IPV6=only6 看会不会好。

排查出原因了,是ros的fasttrack的问题,关掉ft后问题得到了解决。