Advertisements
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.12.59.180
- 1.12.65.20
- 1.12.238.78
- 1.14.48.102
- 1.15.106.58
- 1.15.233.116
- 1.26.90.14
- 1.53.93.190
- 1.55.116.163
- 1.100.15.8
- 1.162.137.219
- 1.179.247.18
- 2.26.80.151
- 2.26.252.144
- 2.28.0.116
- 2.28.50.109
- 2.48.244.33
- 2.51.111.122
- 2.55.75.176
- 2.56.109.87
- 2.56.191.147
- 2.57.122.181
- 2.57.122.201
- 2.58.241.71
- 2.59.21.37
Recently removed entries
- 1.4.249.203
- 1.4.254.107
- 1.9.47.19
- 1.9.205.152
- 1.12.207.124
- 1.12.252.163
- 1.13.79.149
- 1.14.43.237
- 1.34.36.109
- 1.39.41.69
- 1.95.14.167
- 1.162.242.67
- 1.192.18.4
- 1.201.146.109
- 1.220.198.126
- 1.238.106.229
- 2.24.88.41
- 2.26.0.94
- 2.26.252.162
- 2.27.63.158
- 2.29.52.193
- 2.31.205.40
- 2.58.241.50
- 2.58.241.70
- 2.63.188.78
Advertisements
Advertisements
