I merely pointed out a spelling error of my app name, your name is swetoast, not swetoasts, isn't it?Did you even check the wiki ? there is no s in AB-Solution there so there is nothing to change might have done a typo here in the thread but that doesnt matter.
OK, thanks for the explanation. But from what I understand, beeing a novice at these kinds of things, AB is using the domain name (ie www.somesite.net) to redirect the DNS-queries to the internal IP address/pixelsrv while PF is using the domain name for populating its PF list and then using only the IP address to block outgoing traffic. Wouldn't that still cause an issue as I described before, or have I messed things up in my poor lite mind ? I am sorry if this is common knowledge to everyone but me, just trying to understand it all...AB-Solution does not block incoming traffic.
If it were so, you would not need the privacy filter as I could simply use the same filter lists and put @swetoast's great work out of business...
AB simply tells dnsmasq to direct queries for blocked domains FROM clients to an internal IP address (0.0.0.0 or the pixelserv-tls IP) instead of the real domain's IP address.
So, if any of the domains in the privacy filter also happen to be in the blocking file or blacklist of AB, then these domains are already blocked from reaching the real server.
Preventing them from sending telemetry data to their greedy servers.
The Privacy filter and AB complement each other, some overlap is expected but it has no effect on the overall outcome.
In cases where they do overlap, your devices are still prevented from sending telemetry data and you will not see ads.
Hi again!Bumped officially to rev 20, tnx to everyone who tested.
https://gitlab.com/swe_toast/privacy-filter/raw/master/privacy-filter
- Minor tweaks and fixes to the script
- New sorting system
- No dependacy on entware anywmore
run_ipv4_block () {
if [ -f /tmp/privacy-filter_ipv4_sorted.part ]; then rm /tmp/privacy-filter_ipv4_sorted.part; fi
cat /tmp/privacy-filter_raw.part | \
awk '!/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)/' privacy-filter_raw.part | \
grep -oE "$regexp_v4" | sort -u > /tmp/privacy-filter_ipv4_sorted.part
}
it should beawk '!/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)/' privacy-filter_raw.part | \
awk '!/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)/' /tmp/privacy-filter_raw.part | \
Great! Another thing In your wiki you have for all of your scripts the following:will fix
Finally call this at the end of your existing /jffs/firewall-start:
Finally call this at the end of your existing /jffs/scripts/firewall-start:
Well done!done and done
done and done
Awesome next version of this will support CIDR ranges and then we will block MS even more
--------------------- fail2ban-messages Begin ------------------------
Banned services with Fail2Ban: Bans:Unbans
sshd: [1123:1123]
116.31.116.15 18:18
31.207.47.36 9:9
91.197.232.103 8:8
103.79.143.132 8:8
111.40.166.130 8:8
166.130.8.104 (mobile-166-130-8-104.mycingular.net) 8:8
76.75.17.130 7:7
201.177.31.187 (201-177-31-187.speedy.com.ar) 6:6
39.155.136.34 6:6
46.237.127.58 (static.bulsat.com) 6:6
61.177.172.14 6:6
62.61.163.20 6:6
69.81.51.209 (user-12l2cuh.cable.mindspring.com) 6:6
103.207.37.169 6:6
111.202.133.66 6:6
113.73.119.0 6:6
blah blah blah - lot's of single entries below this line...
whois 116.31.116.15
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
% Information related to '116.16.0.0 - 116.31.255.255'
inetnum: 116.16.0.0 - 116.31.255.255
netname: CHINANET-GD
descr: CHINANET Guangdong province network
descr: China Telecom
descr: No.31,jingrong street
descr: Beijing 100032
country: CN
admin-c: CH93-AP
tech-c: IC83-AP
mnt-by: APNIC-HM
mnt-lower: MAINT-CHINANET-GD
mnt-routes: MAINT-CHINANET-GD
status: ALLOCATED PORTABLE
remarks: --------------------------------------------------------
remarks: To report network abuse, please contact mnt-irt
remarks: For troubleshooting, please contact tech-c and admin-c
remarks: Report invalid contact via www.apnic.net/invalidcontact
remarks: --------------------------------------------------------
source: APNIC
mnt-irt: IRT-CHINANET-CN
changed: hm-changed@apnic.net 20070307
AB is not built with command line in mind, too many things are intertwined for all the services to work.well it fairly easy, dont use every list out there, but if you have a simple deactive and active command i could include a check for your script and deactive and re activate again after update.
else i have to figure out some other way to get my results bringing back hostip or something.
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!