skeal
Part of the Furniture
Observation: Hey @thelonelycoder, is my memory usage down because this version uses less, or is it a placebo indication?
Same here unfortunately. All outgoing queries were blocked and it hung on 'Porting all settings....' (or something alike) all night. Decided to start fresh with a different USB drive. If there's anything I can supply to troubleshoot this, let me know.Tried porting, it hung while porting settings, and messed up the internet connection; was unable to connect to the net to re-install ab-solution or diversion. Had to back up from an outdated 2 month old jffs backup! make sure you back up your jffs before running the port! I thought about it but failed to do so thinking everything would go smoothly.
It should return to amtm.From AMTM to Diversion then when exit. Didn’t go back to AMTM.
Should it go back? Just wondering.
I'll take it from there. For now this only option will have to do.Follow dnsmasq no longer have the option of just seeing what is blocked only.
Now showing unfiltered dnsmasq log. Can we have the show only blocked option?
I can't replicate your problem with pixelserv-tls. My best guess is you run a very old Entware version on your router.Done.
All install, reinstall and update operations in Diversion write a log file to /opt/share/diversion/log, it can be viewed in sf.Same here unfortunately. All outgoing queries were blocked and it hung on 'Porting all settings....' (or something alike) all night. Decided to start fresh with a different USB drive. If there's anything I can supply to troubleshoot this, let me know.
Right after 'Old start scripts cleaned' Diversion restarts Dnsmasq to unload entries in dnsmasq.conf.I backed up my buggered jffs folder before restoring an outdated one, what files should I merge from the old one to keep the most recent backup functional?
got this far:
✔ pixelserv-tls stopped
✔ Old start scripts cleaned
Placebo or you use a smaller blocking file.Observation: Hey @thelonelycoder, is my memory usage down because this version uses less, or is it a placebo indication?
You're welcome. Good to know the extra coding for log-queries=extra was worth the time.Ported AB to Diversion with no issues ... Shooters blacklist converted to custom and + settings intact. thanks for the extra dnsmasq logging
All install, reinstall and update operations in Diversion write a log file to /opt/share/diversion/log, it can be viewed in sf.
If you have a backup of that directory from the failed update it might help track it down.
The contents of your /jffs/scripts/ directory before the update would also be of interest. Backups are stored in a folder called /old-jffs_scripts on the device.Okay. First I have to get to things up and running again (Diversion installed fine btw, using a clean install on another thumb drive). I'll get the log file from the old drive when done.
Right after 'Old start scripts cleaned' Diversion restarts Dnsmasq to unload entries in dnsmasq.conf.
You may have some exotic entries in /jffs/scripts/dnsmasq.postconf that prevent Dnsmasq from restarting.
Post your entries in that file. If it catches a certain string it will remove it and port commonly used script entries back into a new file, along with the source link for the Diversion directives.Nevermind I manually went through each file and copied them. So I tried updating again, it hangs while porting settings and blocklists... zero cpu use as well. Didn't wait longer than 10 minutes for completion. How long should this take? Was hoping to keep the stats, but if necessary hopefully a clean install will be fine last restort..
@thelonelycoder I noticed Diversion removes all custom lines from /scripts/dnsmasq.postconf settings. Why is that? Is diversion trying to connect to the internet as well during the porting phase? How can I install Diversion with these custom settings? Should I input them manually again and restart dnsmasq manually?
#!/bin/sh
[ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager dnsmasq
# DO NOT EDIT this part of the file #
# generated by AB-Solution 3.11
if [ -d "/tmp/mnt/psda1" ];then
source /tmp/mnt/psda1/adblocking/scripts/ab_dnsmasq_postconf.sh
logger "AB-Solution linked ab_dnsmasq_postconf.sh via $0"
fi
# end of DO NOT EDIT #
###########################################################
#### Block PTR on localhost, allow PTR for clients ####
###########################################################
CONFIG=$1
source /usr/sbin/helper.sh
sed -i '$a\ ' $CONFIG
sed -i '$a\###############################################' $CONFIG
sed -i '$a\#Block PTR on localhost, allow PTR for clients#' $CONFIG
sed -i '$a\###############################################' $CONFIG
sed -i '$a\ ' $CONFIG
sed -i '$a\####################################' $CONFIG
sed -i '$a\#May Speed up Browsing Considerably#' $CONFIG
sed -i '$a\####################################' $CONFIG
sed -i '$a\ ' $CONFIG
#pc_append "server=/in-addr.arpa/" $CONFIG
#pc_append "server=/ip6.arpa/" $CONFIG
#pc_append "server=/168.192.in-addr.arpa/" $CONFIG
#(seems to boot somewhat faster with this not blocked, ntp didn't take as long either)
#pc_append "server=/127.in-addr.arpa/" $CONFIG
#(was error in pixelserv with this disabled, + NTP issues)
#pc_append "server=/255.in-addr.arpa/" $CONFIG
#pc_append "server=/0.in-addr.arpa/" $CONFIG
pc_append "address=/telem/192.168.50.2" $CONFIG
pc_append "address=/lytics/192.168.50.2" $CONFIG
#pc_append "dnssec-check-unsigned" $CONFIG
#pc_append "local=/in-addr.arpa/" $CONFIG
#pc_delete "dnssec-no-timecheck" $CONFIG
#pc_append "server=/168.192.in-addr.arpa/#" $CONFIG
sed -i '$a\#Experimental, Disable all Arpa: https://www.iana.org/domains/arpa' $CONFIG
pc_append "server=/arpa/" $CONFIG
pc_append "bogus-priv" $CONFIG
pc_append "bogus-nxdomain=64.94.110.11" $CONFIG
#pc_append "server=/192.168.50.52.in-addr.arpa/#" $CONFIG
#!/bin/sh
sh /jffs/scripts/firewall save # Skynet Firewall Addition
# DO NOT EDIT this part of the file #
# generated by AB-Solution 3.11
/opt/etc/init.d/rc.unslung stop
# end of DO NOT EDIT #
[ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager services-stop
#!/bin/sh
sh /jffs/scripts/firewall save # Skynet Firewall Addition
#!/bin/sh
[ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager wan-start
#!/bin/sh
[ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager wan-start
# DO NOT EDIT this part of the file #
# generated by AB-Solution 3.11
psState=on
if [ $psState == "on" ];then
ifconfig br0:pixelserv 192.168.50.2 up
logger "AB-Solution created br0:pixelserv 192.168.50.2 via $0"
fi
# end of DO NOT EDIT #
I have to break with the old AB-Solution code in jffs to conform to the new standard. The time is now and I am unable to come up with code that would remove AB code in jffs selectively. There is just too much of it and in non-consistent form there.Also your install script replaces
Code:#!/bin/sh sh /jffs/scripts/firewall save # Skynet Firewall Addition # DO NOT EDIT this part of the file # # generated by AB-Solution 3.11 /opt/etc/init.d/rc.unslung stop # end of DO NOT EDIT # [ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager services-stop
with
Code:#!/bin/sh sh /jffs/scripts/firewall save # Skynet Firewall Addition
under services-stop
while the same code is successfully maintained in wan-start with absolution entries removed. This is all the code that is left.
Code:#!/bin/sh [ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager wan-start
original wan-start code:
Code:#!/bin/sh [ -x /jffs/dnscrypt/manager ] && /jffs/dnscrypt/manager wan-start # DO NOT EDIT this part of the file # # generated by AB-Solution 3.11 psState=on if [ $psState == "on" ];then ifconfig br0:pixelserv 192.168.50.2 up logger "AB-Solution created br0:pixelserv 192.168.50.2 via $0" fi # end of DO NOT EDIT #
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!