You need to create the file manuallyfor some reason I can't get the second method to work.
This is show in the System log:
failed to load names from /tmp/mnt/PNY/hosts/hosts.blocked: No such file or directory
You need to create the file manually
Hi Chrysalis,these 2 lines are bad news remove them
address=/0.0.0.0/0.0.0.0
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
the addn-hosts lines if you remove will disable it.
If you are referring to "Custom Commands > Execute" then the answer is No.does this look like "chmod a+rx /jffs/scripts/*" ?
You can see the 'Rights' column in the background....everything is set to "777" which is what happens if you are transferring from a Windows system (make sure the files are in Linux format and not DOS/Windows format).does this look like "chmod a+rx /jffs/scripts/*" ?
If you are referring to "Custom Commands > Execute" then the answer is No.
You want "Properties > Permissions" and check that "R" and "X" (and "W" if you want) are ticked for Owner, Group and Others. Or you could just set "Octal" to "0777".
But I can see from the "Rights" column in the background of your picture that they are already set correctly.
You can see the 'Rights' column in the background....everything is set to "777" which is what happens if you are transferring from a Windows system (make sure the files are in Linux format and not DOS/Windows format).
To temporarily disable the hosts files remove the following, see post #1 if you are unsure which method you use:how can i disable it when i dont want it ??
address=/0.0.0.0/0.0.0.0
addn-hosts=/tmp/mnt/sda1/hosts.clean
# AdBlocking
address=/0.0.0.0/0.0.0.0
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
addn-hosts=/tmp/mnt/sda1/hosts/hosts.blocked
addn-hosts=/tmp/mnt/sda1/hosts/blacklist.txt
service restart_dnsmasq
# get hosts files and combine
wget -qO- \
"http://winhelp2002.mvps.org/hosts.txt" \
"http://someonewhocares.org/hosts/zero/hosts" \
"http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext&useip=0.0.0.0" \
"http://www.malwaredomainlist.com/hostslist/hosts.txt" \
"http://hosts-file.net/ad_servers.txt" \
> $dir/temphost
# replace all 127.0.0.1 with 0.0.0.0 if any, grab only the first 2 parts (IP, hostname) of each line, and sort the combined entries
cat $dir/temphost | sed s/127.0.0.1/0.0.0.0/g | sed $'s/\r$//' | grep -w ^0.0.0.0 | awk '{print $1 " " $2}' | sort -u > $dir/temphost2
# remove whitelisted entries in temp and write final file, remove temp file
cat $dir/whitelist.txt | sed $'s/\r$//' | grep -vf - $dir/temphost2 > $dir/hosts.blocked
#remove temp files
rm $dir/temphost
rm $dir/temphost2
That seems to be a path problem. Double check the location of the hosts.blocked and blacklist.txt and compare it to the entry in dnsmasq.conf.add file. Those need to be the same path as your USB disk.Tried post-mount fix didn't work either. If I restart service dnsmasq manually it loads my blacklist.txt and does block my custom list but I don't think the other lists are loaded so it doesn't block other ads.
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!