cloud-ip-ranges:~$

TOR logo TOR IP Ranges

Download current IP ranges (CIDRs) used by the TOR network.

Provider Information

Category
VPN & Networks
Official Website
https://www.torproject.org
Total IP Ranges
1,970
1,197 IPv4 · 773 IPv6
Last Updated
Total Downloads
28,679

Download Options

Choose your preferred format. All downloads are permalinks that always provide the latest data.

IP Ranges

First 25 of 1,970 ranges. Download the full list above, or search for a specific IP.

CIDR Type Tag
1.170.205.201/32 ipv4 FE7028F75DEF5212802C539DA60AEB8B41D6C5C1
2.56.10.36/32 ipv4 7F0541B21603F5D4A17A75C5326CEBC37E8E9D74
2.58.56.35/32 ipv4 28904A07DA6507AA9890398F43949967090CB11E
2.58.56.43/32 ipv4 0D7661A33EB9CA44BEC3109DBEC7F9C5E8ABFB02
2.58.56.93/32 ipv4 06BF77AE0F419884B59C57747AD6286B42946DC5
2.58.56.220/32 ipv4 1F2F634D6D87CF6C5358C1367F9BD5F926CEF3F4
5.2.67.226/32 ipv4 127F6358F68FFB7E437DBA51D6D4DAC47B9F78A7
5.2.72.110/32 ipv4 5847D5A01C47166143F738C7703344517B39EB10
5.2.79.190/32 ipv4 02A8CCB1FB70984226231283596DA734A80E3F6F
5.34.182.203/32 ipv4 7D4389DC3BA69BECAB418D11E5E6B999014A70F7
5.45.98.162/32 ipv4 3EE11C45FDE23CC46E3C7BC8AFCACB8395B37411
5.45.102.93/32 ipv4 48A7E3A169F86E45A00284E1303793AFFA61F1EA
5.45.104.176/32 ipv4 3863FD538658F6671631E78CEBB2693FB42DFA7D
5.79.66.19/32 ipv4 E9EFFF8F825DD636D2283CD20ADE436397F49FCF
5.104.86.6/32 ipv4 A0E1C5DBA20040BE6E291EE32B7949925159DEF4
5.181.80.107/32 ipv4 16E60396757D934BBFCC8DD87F9C05B3D1F620DB
5.196.95.34/32 ipv4 4B5F487F893D6B77646CF8185B0B66A302AC2A65
5.255.97.196/32 ipv4 A49DA1B3A7982E5E4C2A52DADE3C5482CC86B6C4
5.255.97.221/32 ipv4 ECE831534426279E32E530CDC9279D36E2A6AC60
5.255.98.23/32 ipv4 7EFD46C8D872902D0AE4B1C648FE318737305761
5.255.98.151/32 ipv4 D6CBE0D85ED38A1D6E45DFA703390A9E8F607920
5.255.98.198/32 ipv4 83C72101D7716EE515838CECF7AEF0A5B51D3ED6
5.255.99.5/32 ipv4 D698261BC1B4A80E24BD050909552C7FE9464CD2
5.255.99.147/32 ipv4 EE72F8544BC46F6FFCDB47CCDB954E5AC642756C
5.255.101.10/32 ipv4 31EF78B9019D61CF259B223DB9F80940994EDA34

Usage Examples - Blocking TOR IPs

Download the IP ranges

# Download with curl
curl -O https://cloud-ip-ranges.com/download/tor.txt

# Or download with wget
wget https://cloud-ip-ranges.com/download/tor.txt

Block with iptables (Linux firewall)

# Download and block TOR IPs with iptables
wget -O tor_ips.txt https://cloud-ip-ranges.com/download/tor.txt
while read ip; do
  iptables -A INPUT -s $ip -j DROP
  iptables -A OUTPUT -d $ip -j DROP
done < tor_ips.txt

Block with UFW (Ubuntu/Debian firewall)

# Download and block TOR IPs with UFW
wget -O tor_ips.txt https://cloud-ip-ranges.com/download/tor.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < tor_ips.txt

Block with fail2ban (intrusion prevention)

# Create fail2ban filter for TOR
sudo tee /etc/fail2ban/filter.d/tor-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF

# Create jail configuration
sudo tee /etc/fail2ban/jail.d/tor-block.conf << EOF
[tor-block]
enabled = true
filter = tor-block
action = iptables-allports[name=tor]
logpath = /tmp/tor_ips.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

# Download IP list and restart fail2ban
wget -O /tmp/tor_ips.txt https://cloud-ip-ranges.com/download/tor.txt
sudo systemctl restart fail2ban

Block with pfSense/OPNsense (FreeBSD firewall)

# Create alias table for TOR IPs
# 1. Download the IP list
wget -O tor_ips.txt https://cloud-ip-ranges.com/download/tor.txt

# 2. In pfSense/OPNsense web interface:
# - Go to Firewall > Aliases
# - Create new alias named "TOR_BLOCK"
# - Type: Network(s)
# - Import the downloaded file
#
# 3. Create firewall rule:
# - Go to Firewall > Rules > WAN
# - Add rule: Action=Block, Source=TOR_BLOCK

About TOR IP Ranges

These IP ranges cover the TOR network and are updated regularly from its official source. The data includes IPv4 and IPv6 ranges. Last update was over 1 year ago.