https://raw.githubusercontent.com/stamparm/ipsum/master/levels/4.txt 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/stamparm/ipsum/master/levels/4.txt Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://raw.githubusercontent.com/stamparm/ipsum/master/levels/4.txt" 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/stamparm/ipsum/master/levels/4.txt" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="IPsum Level 4"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="IPsum Level 4"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="IPsum Level 4" 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/stamparm/ipsum/master/levels/4.txt Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/stamparm/ipsum/master/levels/4.txt"
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/stamparm/ipsum/master/levels/4.txt" | 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/stamparm/ipsum/master/levels/4.txt"
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/stamparm/ipsum/master/levels/4.txt - 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/stamparm/ipsum/master/levels/4.txt curl -fsSL "https://raw.githubusercontent.com/stamparm/ipsum/master/levels/4.txt" -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:"IPsum Level 4 match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 71.6.142.213
- 77.239.124.162
- 16.5.0.164
- 16.5.0.166
- 43.173.66.235
- 45.137.194.154
- 46.38.146.46
- 51.178.43.161
- 54.38.190.246
- 57.128.190.44
- 61.254.10.138
- 66.240.223.208
- 66.240.223.214
- 71.6.154.144
- 91.92.43.221
- 144.31.185.241
- 144.217.13.134
- 151.80.61.151
- 152.32.191.226
- 152.228.135.87
- 161.49.89.39
- 189.126.4.42
- 195.178.110.22
- 222.208.64.40
- 2.26.2.114
Recently removed entries
- 102.220.163.207
- 216.180.246.7
- 216.180.246.24
- 216.180.246.25
- 216.180.246.47
- 216.180.246.54
- 216.180.246.55
- 216.180.246.98
- 216.180.246.153
- 216.180.246.179
- 216.180.246.181
- 216.180.246.213
- 216.180.246.221
- 216.180.246.234
- 216.180.246.235
- 216.180.246.248
- 2.57.122.53
- 4.246.226.179
- 20.65.170.227
- 24.46.242.125
- 34.79.65.2
- 40.124.123.165
- 43.226.36.132
- 45.156.128.109
- 46.101.133.157
