给路由器装 adguard ,有三个选项。
选作为上游服务器,无法区分各个客户端的请求。
选重定向 53 端口,只能抓到少量的请求。
选使用 53 端口替换,路由器显示 adguard 停止运行。
打算重新用回第一个选项,结果抓不到请求了😅
重装 adguard 也不好使。
最后去路由器文件系统里手动改 adguard 的配置,监听 53 ,然后再把路由器自带的 DNS 关掉,终于能正常抓请求了。
结果路由器界面上显示 adguard 未运行,但是 3000 端口是能访问的。
想了一下,在 adguard 手动把 kwrt.lan 映射到 0.0.0.0 ,解决了😅
1
THESDZ 5 天前
adguardhome?
不是自带 `-s` 吗? |
2
THESDZ 5 天前
./AdGuardHome [options]
Options: -c, --config VALUE Path to the config file. -w, --work-dir VALUE Path to the working directory. -h, --host VALUE Deprecated. Host address to bind HTTP server on. Use --web-addr. The short -h will work as --help in the future. -p, --port VALUE Deprecated. Port to serve HTTP pages on. Use --web-addr. --web-addr VALUE Address to serve the web UI on, in the host:port format. -s, --service VALUE Service control action: status, install (as a service), uninstall (as a service), start, stop, restart, reload (configuration). -l, --logfile VALUE Path to log file. If empty, write to stdout; if "syslog", write to system log. --pidfile VALUE Path to a file where PID is stored. --check-config Check configuration and exit. --no-check-update Don't check for updates. --update Update the current binary and restart the service in case it's installed. --no-mem-optimization Deprecated. Disable memory optimization. --no-etc-hosts Deprecated: use clients.runtime_sources.hosts and dns.hostsfile_enabled instead. Do not use the OS-provided hosts. --local-frontend Use local frontend directories. -v, --verbose Enable verbose output. --glinet Run in GL-Inet compatibility mode. --no-permcheck Skip checking and migration of permissions of security-sensitive files. --version Show the version and exit. Show more detailed version description with -v. --help Print this help. |