Advertisements
https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr Rohliste öffnen Beschreibung
Filterliste aus den Bereichen Privatsphäre und Malware. Format: CIDRs (IPv4). Betreut von Chon Bongo. Einzelheiten und Aufnahmekriterien stehen auf der Projektseite.
Integration
Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr" dst-path=blocklist.rsc
/import blocklist.rsc If the list is a plain text file with one address or CIDR per line, convert it first:
/tool fetch url="https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="CPBL CIDR (IPv4)"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="CPBL CIDR (IPv4)"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="CPBL CIDR (IPv4)" Schedule the fetch with /system scheduler to keep the list current. Very large lists consume RAM, so check the available memory of your device first.
banIP (recommended)
- Install the package:
opkg update && opkg install banip luci-app-banip - Open LuCI → Services → banIP → Feeds and add a custom feed with the URL below.
- Enable the feed and click Save & Apply.
https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr"
nft add set inet fw4 blocklist { type ipv4_addr; flags interval; }
nft -f - <<EOF
$(awk '!/^[#;]/ && NF {print "add element inet fw4 blocklist { " $1 " }"}' /tmp/blocklist.txt)
EOF
nft add rule inet fw4 forward ip saddr @blocklist drop ipset create blocklist hash:net -exist
curl -fsSL "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr" | grep -Eo '^[0-9]{1,3}(.[0-9]{1,3}){3}(/[0-9]{1,2})?' |
while read -r net; do ipset add blocklist "$net" -exist; done
iptables -I INPUT -m set --match-set blocklist src -j DROP
iptables -I FORWARD -m set --match-set blocklist src -j DROP Persist the set and re-run the download from cron to keep it current:
ipset save blocklist -f /etc/ipset.blocklist
# /etc/cron.daily/blocklist
Add the list as an ipset in /etc/firehol/firehol.conf:
ipset4 create blocklist hash:net
ipset4 addfile blocklist "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr"
blacklist4 full inface any src ipset:blocklist Reload with firehol try and confirm before making it permanent.
- Go to Firewall → Aliases and click +.
- Choose type URL Table (IPs), set a refresh interval (for example 1 day) and paste the URL below.
- Save and apply, then use the alias as source in a block rule under Firewall → Rules.
https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr - Go to Firewall → pfBlockerNG → IP → IPv4 and click Add.
- Paste the URL below as source, set State to ON and pick the action (Deny Both is the usual choice).
- Save, then run Update → Force Reload → IP.
https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr curl -fsSL "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/combined-final.cidr" -o /var/lib/suricata/data/blocklist.txt Reference the file from a rule using a dataset:
alert ip [!$HOME_NET] any -> $HOME_NET any (msg:"CPBL CIDR (IPv4) match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Letzte Änderungen
Kürzlich hinzugefügte Einträge
- 1.0.171.141/32
- 1.0.218.44/32
- 1.4.249.203/32
- 1.4.254.107/32
- 1.7.47.53/32
- 1.9.47.19/32
- 1.9.205.152/32
- 1.12.55.80/32
- 1.12.70.212/32
- 1.12.207.124/32
- 1.13.79.149/32
- 1.13.156.111/32
- 1.14.3.170/32
- 1.14.43.237/32
- 1.14.64.144/32
- 1.14.64.225/32
- 1.14.192.95/32
- 1.15.227.58/32
- 1.15.231.179/32
- 1.15.245.10/32
- 1.24.16.2/31
- 1.24.16.4/30
- 1.24.16.8/29
- 1.24.16.16/28
- 1.24.16.32/27
Kürzlich entfernte Einträge
- 1.2.164.171/32
- 1.2.252.192/32
- 1.12.70.96/32
- 1.13.181.113/32
- 1.14.140.218/32
- 1.14.191.118/32
- 1.22.196.51/32
- 1.24.16.62/32
- 1.24.16.154/32
- 1.28.220.226/32
- 1.34.14.90/32
- 1.34.77.238/32
- 1.34.134.212/32
- 1.36.196.30/32
- 1.36.201.199/32
- 1.39.158.93/32
- 1.43.123.190/32
- 1.52.104.10/32
- 1.52.155.147/32
- 1.52.174.174/32
- 1.53.158.32/32
- 1.53.229.72/32
- 1.54.56.245/32
- 1.71.143.145/32
- 1.92.80.86/32
Advertisements
Advertisements
