zw963 / asuswrt-merlin-transparent-proxy

transparent proxy base on ss, v2ray, xray, ipset, iptables, chinadns on asuswrt merlin or side router.
MIT License
380 stars 80 forks source link

添加域名白名单 (国内的域名) 无效 #71

Closed momobile closed 5 years ago

momobile commented 5 years ago

user_domain_name_whitelist.txt 中添加域名,执行生效的脚本,然后不生效,重启一遍路由器依然不生效。不知道还不在?能不能帮忙看看为啥?

zw963 commented 5 years ago

验证下你自己新增的域名,在运行 /opt/etc/patch_router 之后,有没有被增加到 /opt/etc/dnsmasq.d/whitelist-domains.china.conf 文件中,例如:

# cat /opt/etc/user_domain_name_whitelist.txt
test123.com
# cat /opt/etc/dnsmasq.d/whitelist-domains.china.conf
server=/test123.com/114.114.114.114
momobile commented 5 years ago

在的!起初发现无效,我通过ip白名单配置了。现在我把ip白名单去掉,留下了域名白名单。至少目前是奇效了。暂时先这样吧。有问题再提出来,谢谢!