GitHub RadarBlue team tool
Enhanced v2ray/xray and v2ray/xray-clients routing rules with built-in Iranian domains and a focus on security and adblocking. Primary language: Shell. 679 stars.
Project links:Open GitHub projectBack to radar
<picture> <source media="(prefers-color-scheme: dark)" srcset="assets/logo-white.png"> <source media="(prefers-color-scheme: light)" srcset="assets/logo-dark.png"> <img alt="a logo for iran v2ray rules in both dark and light mode" src="assets/logo-dark.png"> </picture>
<p align="center"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/Chocolate4U/Iran-v2ray-rules/release.yml?event=schedule&style=for-the-badge&logo=github&cacheSeconds=3600"> <img alt="GitHub release" src="https://img.shields.io/github/v/release/Chocolate4U/Iran-v2ray-rules?style=for-the-badge&cacheSeconds=3600"> <img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/Chocolate4U/Iran-v2ray-rules?display_date=published_at&style=for-the-badge&cacheSeconds=3600"> <img alt="GitHub" src="https://img.shields.io/github/license/Chocolate4U/Iran-v2ray-rules?style=for-the-badge&color=blue&cacheSeconds=3600"> </p>
This is an Enhanced and All-in-One set of geo-location routing files optimized for Iranian users to use in v2ray/xray and all their compatible clients.
:bulb: For Sing-Box geolocation rules please refer to Iran Sing-Box Rules :bulb: For Clash geolocation rules please refer to Iran Clash Rules
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geoip.dat file from github" src="assets/geoip.png" width="200" height="200"> </details>
---
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geosite.dat file from github" src="assets/geosite.png" width="200" height="200"> </details>
---
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geoip-lite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geoip-lite.dat file from github" src="assets/geoip-lite.png" width="200" height="200"> </details>
---
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/geosite-lite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geosite-lite.dat file from github" src="assets/geosite-lite.png" width="200" height="200"> </details>
---
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/security-ip.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading security-ip.dat file from github" src="assets/security-ip.png" width="200" height="200"> </details>
---
https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/security.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading security.dat file from github" src="assets/security.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geoip.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geoip.dat file from jsdelivr" src="assets/geoip-jsdelivr.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geosite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geosite.dat file from jsdelivr" src="assets/geosite-jsdelivr.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geoip-lite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geoip-lite.dat file from jsdelivr" src="assets/geoip-lite-jsdelivr.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geosite-lite.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading geosite-lite.dat file from jsdelivr" src="assets/geosite-lite-jsdelivr.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/security-ip.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading security-ip.dat file from jsdelivr" src="assets/security-ip-jsdelivr.png" width="200" height="200"> </details>
---
https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/security.dat
<details> <summary><strong>QR Code</strong></summary> <img alt="QrCode for downloading security.dat file from jsdelivr" src="assets/security-jsdelivr.png" width="200" height="200"> </details>
---
Add the following to your v2ray/xray client configuration:
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"outboundTag": "block",
"domain": [
"geosite:category-ads-all",
"geosite:malware",
"geosite:phishing",
"geosite:cryptominers"
],
"type": "field"
},
{
"outboundTag": "block",
"ip": [
"geoip:malware",
"geoip:phishing"
],
"type": "field"
},
{
"outboundTag": "direct",
"domain": [
"geosite:ir"
],
"type": "field"
},
{
"outboundTag": "direct",
"ip": [
"geoip:ir",
"geoip:private"
],
"type": "field"
},
]
}<details> <summary><strong>Categories in <code>geoip.dat</code></strong></summary>
geoip:irContains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such as eitaa, rubika, etc. and IP addresses of arvancloud, derakcloud, iranserver and parspack CDNs.
geoip:privateContains a list of local (LAN) IP addresses.
geoip:arvancloudContains the IP addresses of ArvanCloud.ir CDN. :information_source: Integrated in geoip:ir and no longer needed to be written as a separate rule.
geoip:derakcloudContains the IP addresses of Derak.cloud CDN. :information_source: Integrated in geoip:ir and no longer needed to be written as a separate rule.
geoip:iranserverContains the IP addresses of IranServer.com CDN. :information_source: Integrated in geoip:ir and no longer needed to be written as a separate rule.
geoip:parspackContains the IP addresses of ParsPack.com CDN. :information_source: Integrated in geoip:ir and no longer needed to be written as a separate rule.
geoip:cloudflareContains the IP addresses of Cloudflare CDN.
geoip:cloudfrontContains the IP addresses of Cloudfront CDN.
geoip:fastlyContains the IP addresses of Fastly CDN.
geoip:gcoreContains the IP addresses of G-Core CDN.
geoip:googleContains the IP addresses of Google, GoogleCloud and GoogleBot.
geoip:amazonContains the IP addresses of Amazon and Amazon Web Services (AWS).
geoip:microsoftContains the IP addresses of Microsoft and Azure Platform.
geoip:netflixContains the IP addresses of Netflix.
geoip:bingContains the IP addresses of Bing and Bingbot.
geoip:githubContains the IP addresses of GitHub.
geoip:facebookContains the IP addresses of the Meta ecosystem, including Facebook, Instagram and WhatsApp.
geoip:twitterContains the IP addresses of Twitter (now called X!).
geoip:telegramContains the IP addresses of Telegram Messenger.
geoip:oracleContains the IP addresses of Oracle Cloud.
geoip:digitaloceanContains the IP addresses of DigitalOcean-related services.
geoip:linodeContains the IP addresses of Linode-related services.
geoip:openaiContains the IP addresses of OpenAI and ChatGPT.
geoip:torContains the IP addresses of Tor exit nodes.
geoip:phishingContains Phishing IP addresses.
geoip:malwareContains Active Malware IP addresses.
</details>
<details> <summary><strong>Categories in <code>geoip-lite.dat</code></strong></summary>
geoip:irContains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such as eitaa, rubika, etc. and IP addresses of arvancloud, derakcloud, iranserver and parspack CDNs.
geoip:privateContains a list of local (LAN) IP addresses.
</details>
<details> <summary><strong>Categories in <code>security-ip.dat</code></strong></summary>
geoip:phishingContains Phishing IP addresses.
geoip:malwareContains Active Malware IP addresses.
</details>
<details> <summary><strong>Categories in <code>geoip-services.dat</code></strong></summary>
geoip:arvancloudContains the IP addresses of ArvanCloud.ir CDN.
geoip:derakcloudContains the IP addresses of Derak.cloud CDN.
geoip:iranserverContains the IP addresses of IranServer.com CDN.
geoip:parspackContains the IP addresses of ParsPack.com CDN.
geoip:cloudflareContains the IP addresses of Cloudflare CDN.
geoip:cloudfrontContains the IP addresses of Cloudfront CDN.
geoip:fastlyContains the IP addresses of Fastly CDN.
geoip:gcoreContains the IP addresses of G-Core CDN.
geoip:googleContains the IP addresses of Google, GoogleCloud and GoogleBot.
geoip:amazonContains the IP addresses of Amazon and Amazon Web Services (AWS).
geoip:microsoftContains the IP addresses of Microsoft and Azure Platform.
geoip:netflixContains the IP addresses of Netflix.
geoip:bing