JemTheWire
Senior Member
The best just got better!
Thank you.
Thank you.
I'd like to add a bump in support of the 'fw' (wife filter) feature. Now besides just the wife's iphone, I've had issues with my son's xbox flooding my router with requests for microsoft telemetry servers. No gaming achievements were blocked so far (AFAIK anyways), but I'm wearing my hard hat in case that issue comes to the surface. My win10 devices are protesting any whitelisting methods. This is such a 1st world problem, lol, but nonetheless a problem that diligent coding might solve.
write_blockinglist(){ awk '{if(NR%20==0){a=a" "$0;print b a; a=""}else a=a" "$0}END{if(a)print b a}' b="$blockingIP" "${blockinglist}.tmp" > "${blockinglist}"; }
$ echo "a b c d e f g h i j k l m n o p q r s t u v w x y z" | sed "s/ /\n/g" | awk '{if(NR%5==0){a=a" "$0;print b a; a=""}else a=a" "$0}END{if(a)print b a}' b="0.0.0.0"
0.0.0.0 a b c d e
0.0.0.0 f g h i j
0.0.0.0 k l m n o
0.0.0.0 p q r s t
0.0.0.0 u v w x y
0.0.0.0 z
Way to go!I've been playing around with awk a bit lately, this might be usefulCode:write_blockinglist(){ awk '{if(NR%20==0){a=a" "$0;print b a; a=""}else a=a" "$0}END{if(a)print b a}' b="$blockingIP" "${blockinglist}.tmp" > "${blockinglist}"; }
Code:$ echo "a b c d e f g h i j k l m n o p q r s t u v w x y z" | sed "s/ /\n/g" | awk '{if(NR%5==0){a=a" "$0;print b a; a=""}else a=a" "$0}END{if(a)print b a}' b="0.0.0.0" 0.0.0.0 a b c d e 0.0.0.0 f g h i j 0.0.0.0 k l m n o 0.0.0.0 p q r s t 0.0.0.0 u v w x y 0.0.0.0 z
write_blockinglist(){ awk '{if(NR%'"$dpl"'==0){a=a""$0;print b a; a=""}else a=a""$0}END{if(a)print b a}' b="$blockingIP" "${blockinglist}.tmp" > "${blockinglist}"; }
They are separated by two spaces with your function. This will not doThey should have already been separated by a single space, are you sure you didn't remove the space entirely?
I do, actually.Do you have spaces in your tmp file?
if [ -x /opt/bin/diversion ]; then
service restart_dnsmasq
diversion ash_history
fi
I’m having issues with achievements not unlocking on my Xbox One. Ran its networks tests and was not able to complete them, even though my NAT Type is “Open” and I can play online just fine.
How were you able to solve that? I’m running both Diversion and Skynet scripts on my AC86U.
As you noted, post-mount.div remains, sourced in post-mount if Entware is left installed.Another thing I noticed is that after uninstalling Diversion, post-mount.div is still in the jffs scripts folder. That's fine since it's doing entware stuff, but perhaps it should have a check for the Diversion lines.
service restart_dnsmasq
diversion ash_history
sed -i '/started Entware/d' /jffs/scripts/post-mount.div
sed -i '/restart_dnsmasq/d' /jffs/scripts/post-mount.div
sed -i '/ash_history/d' /jffs/scripts/post-mount.div
if [ -x /opt/bin/diversion ]; then
service restart_dnsmasq
diversion ash_history
fi
Is the USB disk used for logs? I didnt see any options to use it during installation, though did format it using amtm as suggested.
I've had Diversion and its predecessors running on my router(s) since January 2014. I call that reasonably reliable .I look forward to seeing the reliability over the next few weeks (and after a firmware update).
what size block file do you use?I've had Diversion and its predecessors running on my router(s) since January 2014. I call that reasonably reliable .
I must have been looking at a cat from before uninstallingIn both cases, "1. Uninstall Diversion and Entware" and "2. Uninstall Diversion, leaving Entware installed" during the uninstall process Diversion properly removes all relevant lines in the /jffs/scripts/ directory. That includes both lines you think were not removed:
Yea, that was a suggestion but deleting the lines is so much better.Yours is not what post-mount.div looks like. This is not created by Diversion
looking for love in all the wrong places? i.e. missing codes?I must have been looking at a cat from before uninstalling
Yea, that was a suggestion but deleting the lines is so much better.
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!