https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset Open raw list Description
Filter list covering malware. Format: IPs (IPv4). See the project homepage for details and inclusion criteria.
Integration
- Go to Firewall → pfBlockerNG → DNSBL → DNSBL Groups (or IP for IP lists).
- Click Add, give the group a name and add the URL below as source (Format: Auto).
- Save, then run Update → Force Reload.
https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset" 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/firehol/blocklist-ipsets/master/firehol_level1.netset" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="Firehol Level 1"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Firehol Level 1"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Firehol Level 1" 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/firehol/blocklist-ipsets/master/firehol_level1.netset Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset"
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/firehol/blocklist-ipsets/master/firehol_level1.netset" | 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/firehol/blocklist-ipsets/master/firehol_level1.netset"
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/firehol/blocklist-ipsets/master/firehol_level1.netset - 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/firehol/blocklist-ipsets/master/firehol_level1.netset curl -fsSL "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset" -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:"Firehol Level 1 match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 5.226.140.0/24
- 45.138.12.0/24
- 45.248.117.0/24
- 66.240.236.0/24
- 69.5.169.0/24
- 85.217.140.0/24
- 86.38.187.0/24
- 89.32.41.0/24
- 104.250.164.0/23
- 147.185.132.0/24
- 148.59.129.0/24
- 160.202.186.0/23
- 160.202.188.0/22
- 167.94.145.0/24
- 167.94.146.0/24
- 173.239.214.0/24
- 180.178.180.0/24
- 185.242.226.0/24
- 194.62.14.0/23
- 202.170.75.0/24
Recently removed entries
- 31.14.254.0/24
- 45.248.185.0/24
- 45.251.250.0/23
- 64.62.156.0/24
- 64.205.72.0/24
- 65.49.1.0/24
- 66.132.195.0/24
- 77.67.26.0/24
- 91.231.89.0/24
- 102.201.18.0/23
- 104.250.164.0/24
- 137.59.236.0/22
- 156.226.209.0/24
- 160.202.180.0/22
- 160.202.184.0/21
- 185.12.59.0/24
- 185.73.23.0/24
- 194.62.12.0/22
- 194.127.241.0/24
