Advertisements
https://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.txt Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.txt" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="EmergingThreats Compromised IPs"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="EmergingThreats Compromised IPs"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="EmergingThreats Compromised IPs" 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://rules.emergingthreats.net/blockrules/compromised-ips.txt Manual with nftables
wget -qO /tmp/blocklist.txt "https://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.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://rules.emergingthreats.net/blockrules/compromised-ips.txt curl -fsSL "https://rules.emergingthreats.net/blockrules/compromised-ips.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:"EmergingThreats Compromised IPs match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 102.220.161.174
- 102.88.137.213
- 103.170.22.248
- 103.170.22.249
- 103.170.22.250
- 103.189.234.27
- 103.61.44.43
- 103.70.40.36
- 103.90.155.32
- 109.205.211.34
- 113.177.27.200
- 116.110.0.49
- 116.110.156.203
- 116.110.5.147
- 116.99.171.177
- 117.156.112.102
- 117.156.168.201
- 117.50.208.104
- 118.193.45.134
- 120.71.148.144
- 1.235.192.214
- 148.135.86.168
- 154.125.228.145
- 159.223.97.218
- 171.231.181.125
Recently removed entries
- 101.36.114.181
- 101.47.152.216
- 103.160.5.123
- 107.170.19.20
- 115.190.165.165
- 116.110.149.119
- 116.110.214.111
- 117.36.231.242
- 125.130.102.172
- 14.225.165.177
- 152.32.236.102
- 157.20.201.153
- 162.243.51.139
- 162.243.58.235
- 162.243.63.33
- 171.231.176.78
- 171.231.197.74
- 171.243.149.132
- 179.43.153.10
- 181.54.165.174
- 183.239.22.123
- 185.157.247.92
- 202.165.25.8
- 207.175.157.156
- 218.51.197.186
Advertisements
Advertisements
