本帖最后由 wulishui 于 2023-7-5 19:02 编辑
其实你想过是为什么么,是因为mwan3设定启动优先级为19、dnsmasq也是19,而mwan3-helper为60,导致dnsmasq启动在mwan3-helper前,相关路径都还没有被mwan3-helper创建。
事实上在19时整个系统网络环境都还没有完整建立(因为network启动在20,odhcpd在35,dbus在60),不清楚为何作者会把mwan3优先级设到19,此时mwan3根本无法工作,你可以明确看到syslog里有mwan3的运行报错。 只需要把mwan3-helper改为先于dnsmasq启动就行了。
最science办法是改helper的启动脚本,把
- cat > /tmp/dnsmasq.d/dnsmasq-mwan3.conf <<EOF
- conf-dir=/var/etc/dnsmasq-mwan3.d
- EOF
复制代码 删除,改为:mv /tmp/etc/dnsmasq-mwan3.d/mwan3_gfwlist.conf /tmp/dnsmasq.d
stop的- rm -f /tmp/dnsmasq.d/dnsmasq-mwan3.conf
复制代码 改为:rm -f /tmp/dnsmasq.d/mwan3_gfwlist.conf |