Advertisements
https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst Open raw list Description
Filter list covering proxy. 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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst Address list per script
Fetch the list and import it into an address list called blocklist:
/tool fetch url="https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst" 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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst" dst-path=blocklist.txt
:foreach line in=[/file get blocklist.txt contents] do={
/ip firewall address-list add list=blocklist address=$line comment="Tor IP Addresses – Exit nodes"
} Use the list in the firewall
/ip firewall filter add chain=forward src-address-list=blocklist action=drop comment="Tor IP Addresses – Exit nodes"
/ip firewall filter add chain=forward dst-address-list=blocklist action=drop comment="Tor IP Addresses – Exit nodes" 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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst Manual with nftables
wget -qO /tmp/blocklist.txt "https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst"
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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst" | 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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst"
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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst - 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/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst curl -fsSL "https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst" -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:"Tor IP Addresses – Exit nodes match";
ip.src; dataset:isset,blocklist, type string, load blocklist.txt; sid:1000001;) Recent changes
Recently added entries
- 5.83.158.7
- 5.135.200.35
- 5.196.129.57
- 23.137.251.75
- 23.137.255.85
- 67.219.109.141
- 81.90.116.77
- 85.214.100.39
- 85.253.10.38
- 89.147.110.251
- 100.42.29.161
- 100.42.29.162
- 100.42.29.163
- 104.168.32.28
- 138.226.243.223
- 165.154.241.8
- 193.105.134.155
- 193.218.118.85
- 194.53.137.102
- 198.167.206.213
- 204.11.50.131
- 209.141.32.198
- 2401:c080:2000:111f:5400:4ff:fea3:9c02
- 2602:fc24:14:13::a
- 2605:6f01:2000:172::6389:890a
Recently removed entries
- 23.129.64.215
- 37.252.189.216
- 38.180.72.186
- 45.95.169.119
- 45.137.69.9
- 81.90.116.150
- 82.221.100.134
- 84.16.224.227
- 84.239.46.144
- 116.109.57.222
- 178.170.25.112
- 185.186.76.110
- 193.218.118.178
- 198.167.206.137
- 198.167.206.151
- 2620:18c:0:192::e0:215
- 2a00:63c1:e:216::2
- 2a06:1700:2:453::5f7e:8455
- 2a0e:bfc0:0:f::4558:4954
- 2a0f:e586:f:f:c94a:de42:aac1:9045
Advertisements
Advertisements
