https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.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_level2.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_level2.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_level2.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 2"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Firehol Level 2"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Firehol Level 2" 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_level2.netset Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.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_level2.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_level2.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_level2.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_level2.netset curl -fsSL "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level2.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 2 match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 1.20.88.78
- 1.20.187.52
- 1.20.230.31
- 1.24.16.95
- 1.32.52.96
- 1.47.31.126
- 1.53.49.214
- 1.85.42.195
- 1.117.72.220
- 1.178.216.211
- 1.179.232.194
- 1.187.160.37
- 1.234.23.83
- 1.250.67.114
- 2.26.5.166
- 2.28.60.103
- 2.48.43.6
- 2.50.136.160
- 2.54.105.5
- 2.55.69.208
- 2.55.85.141
- 2.55.85.196
- 2.56.109.95
- 2.63.231.179
- 2.72.143.136
Recently removed entries
- 1.0.164.165
- 1.9.211.178
- 1.12.55.42
- 1.15.221.192
- 1.32.25.19
- 1.38.43.124
- 1.38.153.175
- 1.38.158.48
- 1.42.171.164
- 1.53.53.163
- 1.63.91.215
- 1.92.94.141
- 1.178.138.99
- 1.188.168.41
- 1.204.166.3
- 1.234.21.73
- 1.237.155.150
- 2.24.70.68
- 2.26.83.92
- 2.26.86.173
- 2.49.20.47
- 2.49.55.173
- 2.50.53.68
- 2.50.131.73
- 2.50.136.140
