Posted: Tue Mar 21, 2017 12:03 Post subject: Dnsmasq restarts with all settings lost
Hello,
I am doing the Ad-Blocking in DDWRT using a script in Administration>Commands>Firewall
After router is rebooted and/or
after I run the script, so I run /tmp/.rc_firewall, I get
root@Bambi:~# ps | grep dns
1069 root 1256 S inadyn -u USER_ID -p USER_PASSWORD --input_file /tmp/ddns/
2684 nobody 1972 S /usr/sbin/dnsmasq --conf-file=/tmp/dnsmasq.conf
2743 root 1116 S grep dns
And all Ad blocking works. But after 30 minutes if I check again I get
root@Bambi:~# ps | grep dns
1069 root 1256 S inadyn -u jujo_si -p alabama --input_file /tmp/ddns/
2785 root 1136 S dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.con
3154 root 1116 S grep dns
root@Bambi:~#
It may happen in 30 minutes or may happen in a few hours, but very often when I check in the morning my Ad blocking doesn't work.
So somebody is killing my /usr/sbin/dnsmasq and is starting a new command which doesn't have my custom Ad blocking settings anymore.
Who is killing my /usr/sbin/dnsmasq and how to prevent this?
Why is the user nobody and not root, I did start the script as root?