Iran IP ranges: IPv4 and IPv6 CIDR list

Iran (IR) holds 1,750 IPv4 networks, 10,841,088 addresses in all, and 577 IPv6 networks. By IPv4 addresses it is number 37 of 238. The list comes from the regional internet registries, with neighbouring networks merged.

IPv4 networks
1,750
IPv4 addresses
10,841,088
IPv6 networks
577
Place by IPv4
#37
Open the full listData of 2026-11-30

Largest IPv4 networks 24

The largest network is a /12; on average a network has 6,195 addresses. These are the 24 largest.

  • 2.176.0.0/12
  • 5.112.0.0/12
  • 5.208.0.0/13
  • 5.232.0.0/13
  • 2.144.0.0/14
  • 5.216.0.0/14
  • 83.120.0.0/14
  • 151.232.0.0/14
  • 5.72.0.0/15
  • 5.220.0.0/15
  • 37.254.0.0/15
  • 78.38.0.0/15
  • 89.198.0.0/15
  • 151.238.0.0/15
  • 217.218.0.0/15
  • 5.52.0.0/16
  • 5.74.0.0/16
  • 5.106.0.0/16
  • 5.190.0.0/16
  • 5.202.0.0/16
  • 37.129.0.0/16
  • 37.137.0.0/16
  • 46.100.0.0/16
  • 80.191.0.0/16

All IPv4 networks 1,750

  • 2.57.3.0/24
  • 2.144.0.0/14
  • 2.176.0.0/12
  • 5.1.43.0/24
  • 5.22.0.0/17
  • 5.22.192.0/21
  • 5.22.200.0/22
  • 5.23.112.0/21
  • 5.34.192.0/20
  • 5.42.217.0/24
  • 5.42.223.0/24
  • 5.52.0.0/16
  • 5.53.32.0/19
  • 5.56.128.0/21
  • 5.57.32.0/21
  • 5.61.24.0/21
  • 5.62.160.0/19
  • 5.62.192.0/18
  • 5.63.8.0/21
  • 5.63.23.0/24
  • 5.72.0.0/15
  • 5.74.0.0/16
  • 5.75.0.0/17
  • 5.104.208.0/21
  • 5.106.0.0/16
  • 5.112.0.0/12
  • 5.134.128.0/18
  • 5.134.192.0/21
  • 5.144.128.0/21
  • 5.145.112.0/21
  • 5.159.48.0/21
  • 5.159.192.0/24
  • 5.182.44.0/22
  • 5.190.0.0/16
  • 5.198.160.0/19
  • 5.200.64.0/18
  • 5.200.128.0/17
  • 5.201.128.0/17
  • 5.202.0.0/16
  • 5.208.0.0/13
  • 5.216.0.0/14
  • 5.220.0.0/15
  • 5.232.0.0/13
  • 5.250.0.0/17
  • 5.252.216.0/22
  • 5.253.24.0/22
  • 5.253.96.0/22
  • 5.253.225.0/24
  • 31.2.128.0/17
  • 31.7.64.0/20
  • 31.7.88.0/22
  • 31.7.96.0/19
  • 31.7.128.0/20
  • 31.14.80.0/20
  • 31.14.112.0/20
  • 31.14.144.0/20
  • 31.24.200.0/21
  • 31.24.232.0/21
  • 31.25.90.0/23
  • 31.25.92.0/22
  • 31.25.104.0/21
  • 31.25.128.0/21
  • 31.25.232.0/23
  • 31.40.0.0/21
  • 31.41.35.0/24
  • 31.47.32.0/19
  • 31.130.176.0/20
  • 31.170.48.0/20
  • 31.171.216.0/21
  • 31.184.128.0/18
  • 31.193.112.0/21
  • 31.193.186.0/24
  • 31.214.132.0/23
  • 31.214.146.0/23
  • 31.214.154.0/24
  • 31.214.168.0/21
  • 31.214.200.0/23
  • 31.214.228.0/22
  • 31.214.248.0/21
  • 31.216.62.0/24
  • 31.217.208.0/21
  • 37.9.248.0/21
  • 37.10.64.0/22
  • 37.10.109.0/24
  • 37.10.117.0/24
  • 37.19.80.0/20
  • 37.32.0.0/19
  • 37.32.32.0/20
  • 37.32.112.0/20
  • 37.44.56.0/21
  • 37.49.144.0/21
  • 37.63.128.0/17
  • 37.75.240.0/21
  • 37.98.0.0/17
  • 37.114.192.0/18
  • 37.129.0.0/16
  • 37.130.200.0/21
  • 37.137.0.0/16
  • 37.143.144.0/21
  • 37.148.0.0/17
  • 37.148.248.0/22
  • 37.152.160.0/19
  • 37.153.128.0/22
  • 37.153.176.0/20
  • 37.156.0.0/22
  • 37.156.8.0/21
  • 37.156.16.0/20
  • 37.156.48.0/20
  • 37.156.100.0/22
  • 37.156.112.0/20
  • 37.156.128.0/20
  • 37.156.144.0/22
  • 37.156.152.0/21
  • 37.156.160.0/21
  • 37.156.176.0/22
  • 37.156.212.0/22
  • 37.156.232.0/21
  • 37.156.240.0/22
  • 37.156.248.0/22
  • 37.191.64.0/19
  • 37.202.128.0/18
  • 37.202.224.0/19
  • 37.221.0.0/18
  • 37.228.131.0/24
  • 37.228.133.0/24
  • 37.228.135.0/24
  • 37.228.136.0/22
  • 37.235.16.0/20
  • 37.254.0.0/15
  • 45.8.160.0/22
  • 45.9.144.0/22
  • 45.9.252.0/22
  • 45.11.184.0/22
  • 45.15.200.0/22
  • 45.15.248.0/22
  • 45.80.84.0/24
  • 45.81.16.0/22
  • 45.82.136.0/22
  • 45.83.12.0/22
  • 45.84.156.0/22
  • 45.84.248.0/22
  • 45.86.4.0/22
  • 45.86.196.0/22
  • 45.87.4.0/22
  • 45.89.136.0/22
  • 45.89.200.0/22
  • 45.89.220.0/22
  • 45.90.72.0/22
  • 45.91.152.0/22
  • 45.92.92.0/22
  • 45.94.212.0/22
  • 45.94.252.0/22
  • 45.95.88.0/22
  • 45.128.140.0/22
  • 45.129.36.0/22
  • 45.129.116.0/22
  • 45.132.32.0/24
  • 45.132.168.0/21
  • 45.134.97.0/24
  • 45.134.99.0/24

The first 160 of 1,750. The whole list is in the tool.

IPv6 networks 577

  • 2001:678:b0::/46
  • 2001:678:428::/48
  • 2001:67c:c3c::/48
  • 2001:67c:d98::/48
  • 2001:67c:db8::/48
  • 2001:67c:1158::/48
  • 2001:67c:1194::/48
  • 2001:67c:2728::/48
  • 2001:790::/32
  • 2001:7f8:a8::/48
  • 2001:14e8::/32
  • 2001:1500::/32
  • 2001:3040::/29
  • 2001:30c0::/29
  • 2001:39c0::/29
  • 2001:3b80::/29
  • 2001:3ec0::/29
  • 2001:3f40::/29
  • 2001:3f80::/29
  • 2001:4188::/29
  • 2001:4c88::/32
  • 2a00:d20::/32
  • 2a00:ff8::/29
  • 2a00:1198::/32
  • 2a00:1570::/32
  • 2a00:15c8::/29
  • 2a00:1758::/32
  • 2a00:1a88::/32
  • 2a00:1fe0::/32
  • 2a00:4000::/29
  • 2a00:4c60::/32
  • 2a00:52e0::/32
  • 2a00:5ca0::/29
  • 2a00:6380::/32
  • 2a00:63a0::/32
  • 2a00:6d60::/32
  • 2a00:7040::/32
  • 2a00:76c0::/29
  • 2a00:7d40::/29
  • 2a00:7d80::/29
  • 2a00:8800::/29
  • 2a00:94c0::/32
  • 2a00:9b20::/32
  • 2a00:abe0::/32
  • 2a00:b140::/32
  • 2a00:bc60::/29
  • 2a00:c4a0::/32
  • 2a00:d500::/32
  • 2a01:3c8::/32
  • 2a01:458::/32
  • 2a01:4ac0::/32
  • 2a01:5500::/29
  • 2a01:5840::/32
  • 2a01:5ec0::/29
  • 2a01:7320::/32
  • 2a01:9180::/32
  • 2a01:9800::/32
  • 2a01:a120::/32
  • 2a01:a540::/32
  • 2a01:bd80::/29
  • 2a01:e140::/32
  • 2a01:e640::/29
  • 2a01:ed00::/29
  • 2a01:eec0::/29
  • 2a01:f200::/29
  • 2a01:f700::/29
  • 2a01:f980::/29
  • 2a01:fb80::/29
  • 2a01:fbc0::/29
  • 2a01:fd80::/29
  • 2a01:ff80::/29
  • 2a02:828::/29
  • 2a02:d30::/32
  • 2a02:16c0::/29
  • 2a02:2960::/32
  • 2a02:2b58::/29
  • 2a02:4540::/29
  • 2a02:4e60::/32
  • 2a02:5380::/32
  • 2a02:6040::/32

The first 80 of 577. The whole list is in the tool.

Files for scripts and routers

Addresses that don't change. The date of the data is in the Last-Modified header.

MikroTik: fetch and import

/tool fetch url="https://velivpn.com/lists/country/ir.rsc"
/import ir.rsc

Ready for your router or client

The first lines in each format. The tool gives the whole list, merges neighbouring networks and says what a format can't hold.

MikroTik

# ir (2026-11-30), velivpn.com/tools/ip-list/
/ip firewall address-list
add list=country_ir address=2.144.0.0/14
add list=country_ir address=2.176.0.0/12
add list=country_ir address=5.112.0.0/12
add list=country_ir address=5.208.0.0/13
add list=country_ir address=5.216.0.0/14
add list=country_ir address=5.232.0.0/13
add list=country_ir address=83.120.0.0/14
add list=country_ir address=151.232.0.0/14
…

nftables

# ir (2026-11-30), velivpn.com/tools/ip-list/
table inet ip_list {
	set country_ir_v4 {
		type ipv4_addr
		flags interval
		elements = {
			2.144.0.0/14,
			2.176.0.0/12,
			5.112.0.0/12,
			5.208.0.0/13,
			5.216.0.0/14,
			5.232.0.0/13,
…

ipset

create country_ir_v4 hash:net family inet maxelem 65536 -exist
add country_ir_v4 2.144.0.0/14 -exist
add country_ir_v4 2.176.0.0/12 -exist
add country_ir_v4 5.112.0.0/12 -exist
add country_ir_v4 5.208.0.0/13 -exist
add country_ir_v4 5.216.0.0/14 -exist
add country_ir_v4 5.232.0.0/13 -exist
add country_ir_v4 83.120.0.0/14 -exist
add country_ir_v4 151.232.0.0/14 -exist
…

CSV

service,type,value
ir,ipv4,2.144.0.0/14
ir,ipv4,2.176.0.0/12
ir,ipv4,5.112.0.0/12
ir,ipv4,5.208.0.0/13
ir,ipv4,5.216.0.0/14
ir,ipv4,5.232.0.0/13
ir,ipv4,83.120.0.0/14
ir,ipv4,151.232.0.0/14
…

In Veli the same is set by sites and apps, without lists: what goes through the VPN and what goes direct. There is a package for OpenWrt routers. Free, no sign-up.

Download Veli

FAQ

How many IP addresses does Iran have?

10,841,088 IPv4 addresses in 1,750 networks and 577 IPv6 networks, as of 2026-11-30.

Is an address from this list always in Iran?

No. The registries record where the holder is registered, not where the server stands: companies lease and announce their networks elsewhere. Geolocation databases may say otherwise.

How do I block or route a whole country on MikroTik?

Take the MikroTik format in the tool: it is a script with address-list entries. Thousands of entries cost memory, so leave the merging of networks on.