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

双向过滤中国 IP 问题 #117

Open
4ft35t opened this issue Jul 15, 2020 · 0 comments
Open

双向过滤中国 IP 问题 #117

4ft35t opened this issue Jul 15, 2020 · 0 comments

Comments

@4ft35t
Copy link

4ft35t commented Jul 15, 2020

把阿里云香港 IP 47.244.0.0/16 加入中国 IP 列表,实际效果未达预期。

cat /tmp/chn.txt 
47.244.0.0/16
61.139.2.0/24
203.0.0.0/8

chinadns -m -b 0.0.0.0 -p 5354 -s 61.139.2.69,127.0.0.1:5300 -c /tmp/chn.txt -dv
然后分别执行
nslookup g.cn 127.0.0.1#5354
nslookup www.rrys2020.com 127.0.0.1#5354

日志如下

Wed Jul 15 13:22:04 2020 request g.cn from 61.139.2.69:53 127.0.0.1:5300
Wed Jul 15 13:22:04 2020 request g.cn from 61.139.2.69:53 127.0.0.1:5300
Wed Jul 15 13:22:04 2020 response g.cn from 61.139.2.69:53 - 203.208.43.98, pass
Wed Jul 15 13:22:04 2020 response g.cn from 61.139.2.69:53 - filter
Wed Jul 15 13:22:05 2020 response g.cn from 127.0.0.1:5300 - pass
Wed Jul 15 13:22:06 2020 response g.cn from 127.0.0.1:5300 - 172.217.11.163, pass
Wed Jul 15 13:22:15 2020 request www.rrys2020.com from 61.139.2.69:53 127.0.0.1:5300
Wed Jul 15 13:22:15 2020 request www.rrys2020.com from 61.139.2.69:53 127.0.0.1:5300
Wed Jul 15 13:22:15 2020 response www.rrys2020.com from 61.139.2.69:53 - 47.52.174.174, filter
Wed Jul 15 13:22:15 2020 response www.rrys2020.com from 61.139.2.69:53 - filter
Wed Jul 15 13:22:16 2020 response www.rrys2020.com from 127.0.0.1:5300 - pass
Wed Jul 15 13:22:16 2020 response www.rrys2020.com from 127.0.0.1:5300 - 47.244.193.42, filter
Wed Jul 15 13:22:18 2020 request www.rrys2020.com from 61.139.2.69:53 127.0.0.1:5300
Wed Jul 15 13:22:18 2020 response www.rrys2020.com from 61.139.2.69:53 - 47.244.45.149, 202.5.222.237, filter
Wed Jul 15 13:22:21 2020 response www.rrys2020.com from 127.0.0.1:5300 - 47.244.193.42, filter

为何 61.139.2.69 返回的 47.244.45.149 被过滤了?

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

1 participant