View Categories

Devices behind NAT and the peer IP

Free Pro

What it is #

MikroWizard tells devices apart by IP address and port, so several devices behind one public IP can be managed. The peer IP sets which MikroWizard address a router should use to reach back.

Example uses

  • Manage three routers at a customer site through one public IP with port forwarding.
  • Routers reach MikroWizard through a VPN address instead of the public one.

Several devices behind one IP #

MikroWizard identifies a device by IP address and port together. So you can add several devices that sit behind the same public IP, as long as each one is reached on a different port (port forwarding on the NAT router). The protocol badges in the device list show the real port, for example API:8729 or RDP:3390.

The peer IP #

Under each device’s IP address the list shows Peer: the MikroWizard address used for that device. MikroWizard detects it, and uses it when it configures RADIUS, syslog and firmware downloads on MikroTik routers. If a router reaches MikroWizard through a different address (for example through NAT or a VPN), set Peer IP (Alternative Access) when you edit the device.

Example: three routers behind one public IP #

A customer site has one public address, 203.0.113.10. Its edge router forwards ports to the routers inside:

DeviceAdded as
Edge router203.0.113.10, API port 8728
Office router203.0.113.10, API port 18728 (forwarded to 192.168.1.2:8728)
Warehouse router203.0.113.10, API port 28728 (forwarded to 192.168.1.3:8728)

All three appear as separate devices.

Common problems #

ProblemCause and fix
Router logins through RADIUS fail behind NATAll routers behind one public IP send RADIUS from that same address, so MikroWizard can’t tell them apart. Prefer a VPN such as the WireGuard server, so each router has its own address.
Logs from a router behind NAT don’t arriveMikroWizard matches syslog to devices by the sender’s address. See Send router logs to MikroWizard.
RADIUS, syslog or firmware downloads go to the wrong addressSet Peer IP (Alternative Access) to the address the router can reach.

Next step #