https://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.txt Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.txt" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="MyIP Blacklist"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="MyIP Blacklist"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="MyIP Blacklist" 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://myip.ms/files/blacklist/general/latest_blacklist.txt Manual with nftables
wget -qO /tmp/blocklist.txt "https://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.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://myip.ms/files/blacklist/general/latest_blacklist.txt curl -fsSL "https://myip.ms/files/blacklist/general/latest_blacklist.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:"MyIP Blacklist match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 132.226.91.104
- 141.148.146.188
- 161.153.60.203
- 47.82.11.234
- 20.198.89.82
- 185.177.72.29
- 216.73.217.114
- 34.156.111.120
- 216.73.217.106
- 34.91.61.245
- 34.187.32.229
- 34.158.95.172
- 34.32.169.66
- 35.204.155.248
- 34.32.200.124
- 34.12.114.213
- 34.187.8.177
- 34.147.87.202
- 34.187.121.49
- 34.91.39.199
- 34.32.224.97
- 35.204.145.182
- 34.7.194.39
- 34.178.220.8
- 34.178.74.210
Recently removed entries
- 54.145.212.71
- 45.148.65.25
- 45.148.65.22
- 45.148.65.24
- 34.12.113.64
- 216.73.216.134
- 216.73.217.179
- 34.118.190.110
- 136.90.34.119
- 34.118.165.147
- 216.73.217.177
- 176.9.38.169
- 216.73.216.221
- 103.64.148.3
- 216.73.216.62
- 192.178.8.35
- 3.224.215.150
- 216.73.216.223
- 35.204.173.219
- 74.7.243.30
- 74.7.228.174
- 74.7.229.110
- 16.216.88.172
- 74.7.229.195
- 34.6.13.42
