pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
7.92k stars 1.05k forks source link

audit-file 设置自定义保存路径无效 #1721

Open xiaof520 opened 2 months ago

xiaof520 commented 2 months ago

问题现象
audit-file 设置自定义保存路径无效,没有生成文件。非root用户,设置 audit-file-mode 777也不行,log-file 也是一样。 不设置这两项时/var/log/smartdns/里有日志。 查看日志,里面没有错误 警告信息

运行环境 wsl debian

audit-enable yes audit-file /home/user/log/smartdns-audit.log audit-file-mode 644

PikuZheng commented 2 months ago

/home/user/是不是挂到wsl外了?可能是Windows acl在阻止文件读写。wsl的文件权限和正常的linux有些许不同,建议到wsl那边问问

PikuZheng commented 2 months ago

也可能smartdns运行用户不是wsl建debian的默认用户

xiaof520 commented 2 months ago

也可能smartdns运行用户不是wsl建debian的默认用户

谢谢,我再检查试试看。没有外挂,apt install smartdns 40版本是正常的,但40版本不支持nftset