Maximize your Psiphon Conduit bandwidth for Iranian users during internet shutdowns.
When you run a Psiphon Conduit node, people from ANY country can connect. This tool blocks non-Iran IPs so only Iranians can use your bandwidth.
- ✅ Smart Split Tunneling - Keeps Conduit "Active" while blocking non-Iran data
- ✅ Easy IP Updates - Re-run to fetch the latest Iran IP ranges
- ✅ Only affects Conduit - Your PC works normally
- ✅ 2000+ Iran IP ranges - Updated from authoritative sources
- ✅ DNS whitelisted - Google, Cloudflare, Shekan DNS
- ✅ Auto-detects Conduit - Works with Windows Store version
| Requirement | Details |
|---|---|
| OS | Windows 10/11 |
| Python | 3.6+ (Download) |
| Conduit | Psiphon Conduit |
- Click ⬇️ Download ZIP
- Extract the ZIP file
- Double-click
RUN_AS_ADMIN.bat(auto-elevates to admin)
git clone https://github.com/SamNet-dev/iran-conduit-firewall.git
cd iran-conduit-firewallThen double-click RUN_AS_ADMIN.bat
Or run manually as Administrator:
python iran_firewall.pyMAIN MENU
1. 🟢 Enable Iran-only mode ← Block non-Iran IPs
2. 🔴 Disable Iran-only mode ← Allow all countries
3. 📊 Check status
4. 🚀 Conduit management
0. 🚪 Exit
This script offers two security levels to balance between bandwidth saving and network visibility:
- Logic: UDP (Iran only) + TCP (Global)
- Purpose: Allows Psiphon's global discovery servers (Brokers) to reach your node via TCP so it stays "Active" in the network. However, the high-bandwidth data tunnel (UDP) is restricted to Iranian IPs only.
- Best for: Most users. Ensures you help as many people as possible without being flooded by global traffic.
- Logic: UDP (Iran only) + TCP (Iran only)
- Purpose: Blocks all connections from non-Iranian IPs, including Psiphon's own discovery checks.
- Warning: Since Psiphon's infrastructure (outside Iran) cannot "ping" your node via TCP, your node may eventually be dropped from the discovery network and become "dark" or less effective over time.
- Best for: Private nodes or maximum bandwidth conservation.
Q: Does this affect my PC?
A: No! Only Psiphon Conduit is affected.
Q: Do rules stay after I close the script?
A: Yes, until you run option 2 (Disable).
MIT License - Free to use and share.
Special thanks to the community members who forked and improved this script (v1.1.1). Key contributions include:
- Explicit BLOCK rules for enhanced security.
- Comprehensive IPv6 support.
- PowerShell auto-elevation for the batch launcher.
پهنای باند Psiphon Conduit خود را برای کاربران ایرانی حداکثر کنید.
- ✅ فقط Conduit را تحت تأثیر قرار میدهد - کامپیوتر شما عادی کار میکند
- ✅ بیش از ۲۰۰۰ رنج IP ایران
- ✅ DNS های مجاز - گوگل، کلودفلر، شکن
- ✅ فعال/غیرفعال آسان
| پیشنیاز | جزئیات |
|---|---|
| سیستم عامل | ویندوز ۱۰/۱۱ |
| پایتون | نسخه ۳.۶+ (دانلود) |
| Conduit | Psiphon Conduit |
- Click ⬇️ Download ZIP
git clone https://github.com/SamNet-dev/iran-conduit-firewall.git
cd iran-conduit-firewallMAIN MENU
1. 🟢 Enable Iran-only mode ← مسدود کردن IP های غیر ایرانی
2. 🔴 Disable Iran-only mode ← اجازه به همه کشورها
3. 📊 Check status
4. 🚀 Conduit management
0. 🚪 Exit