MikroTik tunnel
No public IP for the OLT and no port forwarding needed. Your MikroTik connects to the hub vpn.olt.am over WireGuard (UDP 51820).
How to get and run the script
- In the portal: Settings → OLT → “+ Connect OLT”. Step 1 “MikroTik tunnel”: tunnel name and the OLT IP in your network (as the MikroTik sees it) → “Create tunnel”.
- The platform shows one line for the terminal: /tool fetch url="https://<slug>.olt.am/mt/….rsc" check-certificate=no dst-path=evx-olt.rsc; :delay 1s; /import evx-olt.rsc. “Copy” button.
- Open WinBox or WebFig → New Terminal, paste the line and press Enter. At the end the terminal prints EVX-OLT: done.
- In 10–20 seconds the wizard shows “● online”. Click “Next →”.
The link is one-time and valid for 5 minutes. If you missed it, get a new one: “Tunnels” menu → the tunnel's “Script” button.
What the script does
- Creates the WireGuard interface evx-olt, the hub peer and the tunnel address 10.250.x.y/32.
- Opens the MikroTik local networks to the hub on management ports only: telnet 23, SSH 22, web 80/443, TR-069 7547/58000, SNMP 161 and ping. The router updates the network list itself every 5 minutes; the internet network is not included. Nothing else passes from the tunnel into the provider network.
- Adds masquerade towards the tunnel so the OLT and ONUs can reply to the hub (ACS, traps).
- All objects are marked comment="EVX-OLT …": re-running is safe — the script first removes its previous objects.
Several OLTs behind one MikroTik
One tunnel per router, any number of OLTs behind it. For the next OLT: «Tunnels» → «+ OLT behind this router» and its real IP. No script needed: the platform works with each OLT directly by its IP (telnet 23, SNMP 161) through the tunnel.
Do not run a new tunnel's full script on a router where an olt.am tunnel already works: it replaces the old tunnel and disconnects its OLTs.
How to remove
All platform objects are removed from the MikroTik with one terminal command:
:foreach i in=[/ip firewall nat find comment~"EVX-OLT"] do={/ip firewall nat remove $i}; :foreach i in=[/ip firewall filter find comment~"EVX-OLT"] do={/ip firewall filter remove $i}; :foreach i in=[/ip address find comment~"EVX-OLT"] do={/ip address remove $i}; :foreach i in=[/interface wireguard peers find comment~"EVX-OLT"] do={/interface wireguard peers remove $i}; :foreach i in=[/interface wireguard find comment~"EVX-OLT"] do={/interface wireguard remove $i}