https://rules.emergingthreats.net/blockrules/compromised-ips.txt Rohliste öffnen Beschreibung
Filterliste aus den Bereichen Malware. Format: IPs (IPv4). Einzelheiten und Aufnahmekriterien stehen auf der Projektseite.
Integration
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;) Letzte Änderungen
Kürzlich hinzugefügte Einträge
- 103.132.1.231
- 104.248.167.164
- 116.110.1.113
- 116.110.159.141
- 130.211.53.116
- 134.209.185.7
- 134.209.191.107
- 138.197.209.58
- 138.197.216.53
- 138.68.158.150
- 144.225.6.184
- 144.225.8.54
- 146.148.23.152
- 149.202.60.122
- 152.32.236.102
- 159.65.19.55
- 159.65.60.217
- 160.250.180.18
- 161.35.45.196
- 165.22.121.203
- 165.232.108.129
- 165.232.38.37
- 165.232.98.37
- 167.172.59.225
- 167.99.91.252
Kürzlich entfernte Einträge
- 102.130.193.150
- 102.220.160.42
- 103.105.74.30
- 103.148.79.138
- 103.154.137.43
- 103.39.93.76
- 103.57.64.11
- 106.13.48.135
- 109.226.38.244
- 113.145.250.146
- 117.102.101.50
- 117.2.125.84
- 120.71.148.144
- 122.225.202.130
- 123.139.242.2
- 129.151.171.7
- 130.12.181.21
- 13.57.33.192
- 138.195.128.132
- 14.192.19.222
- 144.172.105.41
- 157.15.83.81
- 157.230.111.104
- 160.187.174.22
- 16.147.192.153
