NasNet Connect is a free, open-source networking tool built for the Iranian Starlink community, designed specifically to run on MikroTik routers. It automates complex configurations to protect user privacy by masking Starlink IPs, intelligently routing and managing traffic, enabling remote access over Iranโs internet, and supporting features like multiple SSIDs, public IP sharing, and gaming traffic optimization. Developed as a community-driven project, it provides a secure, censorship-resistant, and customizable gateway for Starlink users while remaining accessible and constantly improved through open collaboration.
https://connect.starlink4iran.com/
- ๐ Multi-language support (en, ar, fa, it, ru, sk, zh)
- ๐ Secure router management and configuration
- ๐ฎ Game-specific port forwarding database
- ๐ Automatic system updates scheduling
- ๐ Network performance visualization
- ๐ก๏ธ SSL/TLS certificate management
- โก VPN server configuration
- ๐ NTP synchronization
- โ๏ธ DDNS support
- ๐ Dark/Light theme support
- Node.js >= 18.17.0
- npm or pnpm
# Clone the repository
git clone https://github.com/nasnet-community/connect.git
# Navigate to project directory
cd nasnet-connect
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Start development server in debug mode
pnpm dev.debug
# Build for production
pnpm build
# Preview production build
pnpm preview
The project supports multiple languages. To work with translations:
# Extract messages for translation
pnpm i18n-extract
# Translate extracted messages
pnm i18n-translate
โโโ public/ # Static assets
โโโ src/
โ โโโ components/ # UI components
โ โโโ locales/ # Translation files
โ โโโ routes/ # Application routes
โ โโโ utils/ # Utility functions
โ โโโ types/ # TypeScript type definitions
โโโ package.json
The application can be configured through environment variables:
VITE_API_URL=your_api_url
VITE_APP_VERSION=your_app_version
- Qwik - High-performance web framework
- TypeScript - Type-safe JavaScript
- Vite - Next generation frontend tooling
- TailwindCSS - Utility-first CSS framework
INTERNET
โฌ
|
+------------------+------------------+
| | |
DOMESTIC WAN FOREIGN WAN VPN CLIENT
| | |
| NASNET ROUTER |
| +-----------------+ |
+---->| FIREWALL |<----------+
| Rules |
+-----------------+
|
+-----------------+
| NAT |
| Masquerade |
+-----------------+
|
+------------------+-----------------+------------------+
| | | |
SPLIT LAN DOMESTIC LAN FOREIGN LAN VPN LAN
192.168.10.0/24 192.168.20.0/24 192.168.30.0/24 192.168.40.0/24
Smart Routing DOMESTIC Traffic FOREIGN Traffic Secure Tunnel
- Split LAN: Smart routing based on destination
- Domestic LAN: for only Domestic Link traffic
- Foreign LAN: for only Foreign Link traffic
- VPN LAN: VPN-tunneled traffic
+----------------------+
| Incoming Packet |
+----------------------+
|
+---------+---------+
| Route Match |
+---------+---------+
|
+----------+---------+
| | |
Domestic Foreign VPN
Traffic Traffic Traffic
| | |
Local DNS Global DNS VPN DNS
Servers Servers Tunnel
(8.8.8.8) (1.1.1.1) (Custom)
-
Multi-WAN Setup
- Domestic connection
- Foreign connection
- Automatic failover
-
VPN Services
- WireGuard server/client
- OpenVPN server
- Multi-client support
-
Wireless Networks
- Multi-SSID support
- Band steering (2.4/5 GHz)
- Isolated network segments
-
Gaming Features
โโโโโโโโโโโโโโโ
โ Game Trafficโ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ Route โ
โ Detection โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโผโโโโโโ โโโโโโโผโโโโโโ โโโโโโโผโโโโโโ
โ Local โ โ foreign โ โ Protected โ
โ link โ โ Server โ โ VPN Link โ
โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ
Network | IP Range | Purpose |
---|---|---|
Split LAN | 192.168.10.0/24 | Smart-routed traffic |
Domestic LAN | 192.168.20.0/24 | Local traffic only |
Foreign LAN | 192.168.30.0/24 | International traffic |
VPN LAN | 192.168.40.0/24 | VPN-protected traffic |
- Initial Setup
โโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ
โUser โ โGenerator โ โRouter โ
โโโโฌโโโ โโโโโโฌโโโโโโ โโโโโฌโโโโโ
โ โ โ
โ Input Requirements โ
โโโโโโโโโโโโโโโโโโ>โ โ
โ โ โ
โ โ Generate Config โ
โ โโโโโโโโโโโโโ โ
โ โ โ โ
โ โ<โโโโโโโโโโโ โ
โ โ โ
โ โ Apply Settings โ
โ โโโโโโโโโโโโโโโโโโโโโ>โ
โ โ โ
โ โ โ
โ Ready to Use โ
โ<โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโดโโโ โโโโโโดโโโโโโ โโโโโดโโโโโ
โUser โ โGenerator โ โRouter โ
โโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโ
- Maintenance
- Automatic updates
- Scheduled reboots
- Certificate management
- Performance monitoring
๐ก Tip: Use our web interface to generate configurations without manual scripting!
- Automatic port forwarding
- Game-specific routing rules
- Low-latency paths
Game Traffic
|
v
+----------------+
| Traffic Type |
+----------------+
|
+-----+-----+
| | |
v v v
Local Int'l VPN
Game Game Game
| | |
v v v
+----------------+
| Route Selection|
+----------------+
| | |
v v v
DOM FRN VPN
WAN WAN WAN
| | |
v v v
+----------------+
| QoS Priority |
+----------------+
+---------------+ Auto Updates +----------------+
| System |<------------->| Package Mgmt |
| Maintenance | | System |
+---------------+ +----------------+
^ ^
| |
v v
+---------------+ +----------------+
| Scheduled |<------------->| Certificate |
| Tasks | SSL Renewal | Management |
+---------------+ +----------------+
^ ^
| |
v v
+---------------+ +----------------+
| Performance |<------------->| Logging & |
| Monitoring | Stats Sync | Debugging |
+---------------+ +----------------+
ยฉ 2025 NASNET Connect. All rights reserved.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
We welcome bug reports, feature requests, and questions! You can submit issues in two ways:
- Visit our GitHub Issues page
- Click on "New Issue"
- Choose the appropriate issue template
- Fill in the required information
- Submit your issue
For immediate support or questions:
- Join our Telegram channel
- Send your question or issue description
- Our team will respond as soon as possible
When reporting issues, please include:
- Description of the problem
- Steps to reproduce
- Expected behavior
- Screenshots (if applicable)
- Your environment details (OS, browser, etc.)
- router configuration file (with sensitive data removed)
- State History log from the Debug Tools panel (with sensitive data removed)
Note: Before submitting configuration files or logs, ensure you've removed all sensitive information such as passwords, IP addresses, and personal data.
- Email: [email protected]
- Twitter: @joinNASNET
- GitHub: @nasnet-community
- YouTube: @JoinNASNET
- Telegram: joinnasnet
- Instagram: @joinnasnet
- Website: starlink4iran.com
Join our community and stay updated with the latest news and updates!
- The Qwik team for their amazing framework
- All contributors who have helped this project grow