This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_blocklist [2019/08/26 11:36] gcooper |
networking:router:mikrotik_blocklist [2024/02/24 14:44] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mikrotik Block Lists ====== | ====== Mikrotik Block Lists ====== | ||
+ | |||
+ | FIXME **New Method**: https:// | ||
+ | |||
+ | **Another way to block ads**: https:// | ||
+ | |||
+ | **Block by Country**: https:// | ||
===== Sources ===== | ===== Sources ===== | ||
Line 23: | Line 29: | ||
* The **DShield list** is small, but up to date. | * The **DShield list** is small, but up to date. | ||
* The **Spamhaus list** is also fairly small and up to date. | * The **Spamhaus list** is also fairly small and up to date. | ||
- | * The **BDE list** is quite long and may cause the router' | + | * The **BDE All list** is quite long and will cause the router' |
+ | * The **BDE list** is made up of the most recent attackers and the size of the list can be adjusted by changing the number for ' | ||
* https:// | * https:// | ||
* The **VoIPBL list** is also quite long (over 12,000 entries) and will cause the router' | * The **VoIPBL list** is also quite long (over 12,000 entries) and will cause the router' | ||
Line 34: | Line 41: | ||
=== blocklists4mt.sh === | === blocklists4mt.sh === | ||
- | :!: We use a **dynamic address-list a 7-day timeout** in an attempt at eliminating cruft and minimizing flash (NAND) writes. | + | :!: We use a **dynamic address-list |
- | :!: We use a very crude mechanism to **limit the size of the combined list**. | + | :!: We use a very crude mechanism to **limit the size of the combined list**. |
< | < | ||
Line 45: | Line 52: | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http:// | + | wget -q -O - https:// |
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http:// | + | wget -q -O - https:// |
wget -q -O - http:// | wget -q -O - http:// | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - https:// | + | wget -q -O - https:// |
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | wget -q -O - http://www.voipbl.org/ | + | wget -q -O - https:// |
+ | |||
+ | # dshield, bde, spamhaus and voipbl lists | ||
+ | |||
+ | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
+ | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
+ | #echo "# DShield, SpamHaus, BDE and VoIPBL blocklists." | ||
+ | #echo "/ip firewall address-list" | ||
+ | #cat $saveTo/ | ||
+ | |||
+ | # dshield, bde and spamhaus lists | ||
+ | |||
+ | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
+ | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
+ | #echo "# DShield, SpamHaus and BDE blocklists." | ||
+ | #echo "/ip firewall address-list" | ||
+ | #cat $saveTo/ | ||
+ | |||
+ | # dshield, voipbl and spamhaus lists | ||
echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ | ||
echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | ||
- | echo "# DShield, SpamHaus, BDE and VoIPBL blocklists." | + | echo "# DShield, SpamHaus and VoIPBL blocklists." |
echo "/ip firewall address-list" | echo "/ip firewall address-list" | ||
- | cat $saveTo/ | + | cat $saveTo/ |
- | </ | + | |
- | ==== Run the Script Daily ==== | + | # dshield and spamhaus lists |
- | Here is one way to configure '' | + | #echo "# Generated by blocklists4mt.sh on $now" > $saveTo/ |
- | + | #echo "# This is a combined blocklist created from unique entries in the" >> $saveTo/ | |
- | <file> | + | #echo "# DShield and SpamHaus blocklists." |
- | chown root.root blocklists4mt.sh | + | #echo "/ip firewall address-list" |
- | chmod +x blocklists4mt.sh | + | #cat $saveTo/ |
- | cp -a blocklists4mt.sh /etc/cron.daily/ | + | |
</ | </ | ||