https://raw.githubusercontent.com/X4BNet/lists_vpn/main/output/datacenter/ipv4.txt Open raw list Description
Ranges that hold servers rather than home connections. Handy for telling automated traffic apart from real visitors, since bots almost always run in a data centre. Unsuitable as an outright block, because legitimate services reach out from there too.
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/X4BNet/lists_vpn/main/output/datacenter/ipv4.txt Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://raw.githubusercontent.com/X4BNet/lists_vpn/main/output/datacenter/ipv4.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/X4BNet/lists_vpn/main/output/datacenter/ipv4.txt" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="Data centre address ranges (X4BNet)"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Data centre address ranges (X4BNet)"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Data centre address ranges (X4BNet)" 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/X4BNet/lists_vpn/main/output/datacenter/ipv4.txt Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/X4BNet/lists_vpn/main/output/datacenter/ipv4.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/X4BNet/lists_vpn/main/output/datacenter/ipv4.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/X4BNet/lists_vpn/main/output/datacenter/ipv4.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/X4BNet/lists_vpn/main/output/datacenter/ipv4.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/X4BNet/lists_vpn/main/output/datacenter/ipv4.txt curl -fsSL "https://raw.githubusercontent.com/X4BNet/lists_vpn/main/output/datacenter/ipv4.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:"Data centre address ranges (X4BNet) match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 2.57.68.0/22
- 9.247.146.0/24
- 9.247.164.0/24
- 13.226.112.0/22
- 13.226.116.0/24
- 13.226.119.0/24
- 13.226.120.0/21
- 13.227.0.0/24
- 13.227.4.0/24
- 16.5.46.0/24
- 18.65.0.0/16
- 18.172.223.0/24
- 18.172.224.0/21
- 18.172.232.0/22
- 18.238.160.0/20
- 18.244.44.0/22
- 18.244.48.0/21
- 18.244.56.0/23
- 18.245.185.0/24
- 18.245.186.0/23
- 23.94.128.0/24
- 23.163.208.0/23
- 23.249.18.0/23
- 31.58.212.0/23
- 36.255.99.0/24
Recently removed entries
- 2.57.70.0/23
- 13.226.112.0/20
- 13.227.0.0/22
- 13.227.8.0/21
- 18.65.0.0/17
- 18.65.128.0/21
- 18.65.149.0/24
- 18.65.150.0/23
- 18.65.152.0/21
- 18.65.160.0/19
- 18.65.192.0/18
- 18.238.160.0/24
- 18.238.162.0/23
- 18.238.164.0/22
- 18.238.168.0/21
- 18.244.57.0/24
- 18.245.172.0/22
- 18.245.176.0/21
- 18.245.184.0/22
- 23.163.208.0/24
- 23.228.212.0/24
- 31.40.201.0/24
- 31.59.161.0/24
- 31.59.162.0/24
- 36.255.98.0/23
