thelonelycoder
Part of the Furniture
You and I just made a donation to Terre des hommes.Ok but only if you can think of a better cause than yourself.
You and I just made a donation to Terre des hommes.Ok but only if you can think of a better cause than yourself.
Wonderful! Thank you, Martin.You and I just made a donation to Terre des hommes.
It's in there somewhere , copied from update-bl.div:It’s been long enough ago that I forget the culprit, but one of the popular lists at the time was including a very unusual character (it looked like a “G” and was blocking a fake Google.com) in one of its blocked domains that was making dnsmasq fail to load similarly. I went to a sed line to strip the non standard stuff, I’m curious about how you handle it.Code:sed -i 's/[^a-zA-Z0-9#-.]//g' blocklist
dos2unix "${hf_inuse}" || true
if expr "$(grep -m1 "^[^#]" "${hf_inuse}" | awk '{print $1}')" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' >/dev/null; then
echo " file is in hosts file format (IP-domain pair)"
/opt/bin/grep "^[^#]" "${hf_inuse}" \
| sed -e "s/^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/X/g" | /opt/bin/grep -P '^[[:ascii:]]+$' \
| /opt/bin/grep -w "^X" | awk '{print " "$2}' | /opt/bin/grep -E '[[:alnum:]]+[.][[:alnum:]_.-]+' \
| awk '!/ [0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/' | awk '!/[:?\/;]/' >"${hf_inuse}.tmp"
else
echo " file is in domain only format"
/opt/bin/grep "^[^#]" "${hf_inuse}" | /opt/bin/grep -P '^[[:ascii:]]+$' \
| awk '{print " "$1}' | /opt/bin/grep -E '[[:alnum:]]+[.][[:alnum:]_.-]+' \
| awk '!/ [0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$/' | awk '!/[:?\/;]/' >"${hf_inuse}.tmp"
fi
Hence the call to voice opinions here: https://www.snbforums.com/threads/diversion-the-router-ad-blocker.48538/page-274#post-555920For what it’s worth I would vote for the minimal list on out of the box installs. Reasoning being, less chance to break things for people who don’t know why it’s broken or that they can configure it. Users who know what they’re doing can change to a more advanced blocking scheme.
No bug, it works as intended, every time the Diversion ui is drawn they get counted:@thelonelycoder When adding/deleting any domains in the hosted wildcard list or blacklist file it doesn't update the Line in the header of Diversion which tells us "Xxx blocked domains in xx hosts file(s)" even after we process the lists. The change does take effect after file processing but that counter only updates after we do a blocklist update using b>4
So it's a cosmetic bug.
lc=$(/opt/bin/grep "^[^#]" "${DIVERSION_DIR}/list/$HL" | wc -l)
wlc=$(/opt/bin/grep "^[^#]" "${DIVERSION_DIR}/list/whitelist" | wc -l)
blc=$(/opt/bin/grep "^[^#]" "${DIVERSION_DIR}/list/blacklist" | wc -l)
[ "$(nvram get ipv6_service)" != "disabled" ] && blc="$((blc/2))"
wcblc=$(/opt/bin/grep "^[^#]" "${DIVERSION_DIR}/list/wc_blacklist" | wc -l)
I favor the Minimal list too. But replies so far are towards the status quo with the Standard preset list.
IPv6 is enabled, uiDivStats counts both IPv4 and IPv6 entries, Diversion no longer does that.Shouldn't the blocked domains match in the UI (on the left) and the real count in diversion (on the right)? It looks like the UI doubles the count.
View attachment 21688
. I'm going on a vacation someplace nice tomorrow. See ya!
The disk is unmounted, check the webUI. Unplug device and plug back in.What can have happened here?
View attachment 21690 View attachment 21691
Code:> mount | grep usb /dev/sda1 on /tmp/mnt/usb type ext4 (rw,nodev,relatime,data=ordered)
The disk is unmounted, check the webUI. Unplug device and plug back in.
Last run is from a couple of days ago:Does the disc check run in AMTM?
Mon Feb 24 20:38:21 CET 2020 Probing 'ext4' on device /dev/sda1
Running disk check v2.8, with command 'e2fsck -p' on /dev/sda1
usb: clean, 4708/1880480 files, 744874/7507964 blocks
Mon Feb 24 20:38:21 CET 2020 Disk check done on /dev/sda1
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!