MikroTik · network setup · 2026
Dual-WAN Load Balancing
Two internet providers work together on one MikroTik router: traffic is shared 50/50, and a link that gets slow is taken out automatically.
About the project
The office has a microwave link and an optical line. Per-connection classifier (PCC) rules share connections between them, each provider has its own routing table and NAT, and the firewall keeps the router closed from the internet.
A small controller measures the real speed of each link every few minutes against an own server. If a link stays below 15 Mbit/s it is excluded; after it holds more than 20 Mbit/s again it returns to the balance. Every switch is reported to Telegram.
What I did
- PCC load balancing 50 / 50 across two providers
- Separate routing tables and NAT per WAN
- Failover by measured speed, not just ping
- Telegram alerts: link excluded / restored, router or test server down
- Hardened firewall, management only from LAN
Year
2026
Type
MikroTik · network setup
Stack
MikroTik hAP ax³, RouterOS 7, PCC, Python controller, iperf3, Telegram
