This guide walks you through setting up a MikroTik router to connect with NettPortal. The entire process is automated β you just need to download Winbox, connect to your router, and run a single command.
π Automatic WireGuard Configuration
NettPortal automatically handles all WireGuard VPN setup. You don't need to manually configure WireGuard β the system generates keys, creates the tunnel, and establishes the secure connection automatically during provisioning.
β¨ New: Connect Existing Router
If you already have a MikroTik router in use with active configurations, you can now connect it to NettPortal without disrupting your existing setup. The system will only add minimal necessary configurations (API access, WireGuard VPN, walled garden) while preserving all your current settings.
Winbox is MikroTik's official management tool for configuring routers. You'll need it to connect to your router and run the provisioning command.
π Additional Resources
Before you can set up the router with NettPortal, you need to connect to it using Winbox.
192.168.88.1 for default MikroTik routers)admin)β οΈ Important
Make sure your computer is on the same network as the router, or that the router is accessible from your network. If you can't connect, check your router's IP address and network settings.
Use this option if you have a brand new router or a router that hasn't been configured yet. This will perform a full setup including network configuration, bridges, IP addresses, DHCP, and services.
mynetwork.wifi or company.wifi. The DNS name must include a domain (must have a dot), so enter something like "name.wifi" not just "wifi". If you leave this empty, NettPortal will automatically generate one for you.π‘ What is the DNS Name for?
The DNS name is used for the Hotspot captive portal. When users connect to your WiFi and need to log in, they'll see this DNS name in their browser. For example, if you set it to mynetwork.wifi, users connecting to your WiFi will see "mynetwork.wifi" as the domain they're accessing when redirected to the login page. This makes your network look more professional and branded. You can leave this empty if you don't need a custom DNS nameβNettPortal will automatically generate one for you.
Use this option if you already have a MikroTik router in use with active configurations, users, and services. This mode will only add minimal necessary configurations for NettPortal management without disrupting your existing setup.
β What Gets Added (Minimal Configuration)
π What Stays Untouched (Your Existing Configuration)
mynetwork.wifi or company.wifi). The DNS name must include a domain (must have a dot).π Finding Your DNS Name
To find your current DNS name on the router:
After adding the router, NettPortal will display a provisioning command. Copy this command and run it in your MikroTik router's terminal using Winbox.
/tool fetch url="https://your-nettportal-url.com/api/provision/TOKEN" dst-path=nettportal.rsc;:delay 2s;/import nettportal.rscCtrl + T)π‘ Alternative Methods
You can also run the command using:
β οΈ Important Notes
After running the provisioning command, NettPortal automatically checks if the router is connected. You'll see a status indicator showing:
The system checks connection status automatically every 5 seconds. Once connected, you can proceed to configure services (PPPoE, Hotspot) or start managing customers.
After your router is connected, you can configure PPPoE and Hotspot services. Note: This step is only for new routers. If you connected an existing router, your services are already configured and this step can be skipped.
βΉοΈ For Existing Routers
If you connected an existing router, your PPPoE and Hotspot services are already configured and working. You don't need to configure them again. You can skip this step and proceed to managing your network through NettPortal.
Service Configuration Options:
Service configuration is also fully automated β the system will create bridges, IP addresses, DHCP pools, and configure all necessary RouterOS settings for you.
β All of these are handled automatically by NettPortal during provisioning!
Router Status Shows "Disconnected"
"Device Mode Not Allowed" Error
/system/device-mode update mode=advancedProvisioning Command Fails
/tool fetch url="https://www.google.com")Learn more about managing your network with NettPortal:
Once your router is connected: