Command '"./dnsmasq.conf.add"'
failed with return code 127 and error message
./dnsmasq.conf.add: line 2: addn-hosts=/tmp/mnt/sda1/hosts.clean: not found.
Just wondering if somebody might be able to help me. I am trying to use this but it doesn't seem to work. I am using Asus AC66U using Merlin FW. I formatted a 1gb USB disk EXT2. I installed entware using the script. I followed all the instructions but I am not blocking ads. I am wondering if my issue is because my /mnt/ folder has /USB_DISK/ and not /SDA1/ like the scripts call out? I am extremely new to Linux. I have all the tools installed (SCP and PuTTY).
As somebody else pointed out earlier, I am going through the scrips and "Executing" them via WinSCP. Everything appears to work (no errors reported) except for when I execute "dnsmasq.conf.add". First I got permissions issues, so I chmod to 777. Now I am getting
Code:Command '"./dnsmasq.conf.add"' failed with return code 127 and error message ./dnsmasq.conf.add: line 2: addn-hosts=/tmp/mnt/sda1/hosts.clean: not found.
If /tmp/mnt/USB_DISK/ is your path then you need to edit the path entries (/tmp/mnt/sda1/) inI am wondering if my issue is because my /mnt/ folder has /USB_DISK/ and not /SDA1/ like the scripts call out? I am extremely new to Linux. I have all the tools installed (SCP and PuTTY).
sh /jffs/scripts/update-hosts.sh
If /tmp/mnt/USB_DISK/ is your path then you need to edit the path entries (/tmp/mnt/sda1/) in
- /jffs/scripts/post-mount (2x)
-/jffs/configs/dnsmasq.conf.add (1x)
-/jffs/scripts/update-hosts.sh (1x)
When you've done that reboot or run command in terminal:
Code:sh /jffs/scripts/update-hosts.sh
Just add another entry to /jffs/configs/dnsmasq.conf.addLocal language ads are not really covered by the downloaded list.
Where should I put my custom host entries?
address=/0.0.0.0/0.0.0.0
addn-hosts=/tmp/mnt/sda1/hosts.clean
addn-hosts=/tmp/mnt/sda1/your-own-hosts-file
service restart_dnsmasq
Depends on the size or html or even your browser. As an example, this forum will not show any ads at all (sorry smallnetbuilder!). You'll have a white header that has the size of the missing ad size. Piratebay is obnoxious with its ads, it will show several page not found fields.What gets displayed in place of the advert using this method, is it the bog standard page cannot be displayed message?
You mean ads embedded in Videos? Most likely not.Does this also work on in video youtube ads?
if it does looks very interesting as software adblockers are resource hogs.
I have noticed this as well. Went back to http and have a seperate always-on linux server in my network handle the pixelserving. Works like a charm.Accessing the router via https is very slow tho.
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
D | How to restrict VPN network access to certain IP Range or Hosts for specific VPN client | Asuswrt-Merlin | 8 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!