What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

After this last reboot, dnsmasq and squid no longer working

GlowingApple

New Around Here
I accidentally unplugged my router, and when I plugged it back in and booted it up my squid proxy and custom dns entries were not working any longer. I upgraded to the newest firmware and even wiped the jffs and recreated the scripts/configs, but I'm running into the same issues.

I have a dnsmasq.conf.add that adds "addn-hosts=/opt/etc/hosts.dnsmasq". Upon reboot none of the entries in this file are set. If I "kill -HUP dnsmasq", all my entries work again. It's as if this config line is not being added until after dnsmasq starts.

Second, my squid proxy won't start. I get errors reading:

FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (13) Permission denied

Squid is running as "nobody", but has always been set up this way and I didn't have this issue until now. Running "chmod -R 777 /dev/shm/" allows squid to run, but this is probably not a good solution, and gets reset every reboot.

I'm not sure if these issues are related, but both seemed to crop up when I rebooted my router this last time. Any ideas what might be wrong?
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Back
Top