From Web Design to ERP — Your IT Partner

Safely Audit a Live MikroTik WireGuard Fleet | Checklist

Rule zero: Every command in the first pass of a live VPN audit is a print, never a set, add, or remove. Build the full picture before changing anything — and if a fix does turn out to be needed, apply it as a separate, deliberate, logged step afterward.

Every so often, a VPN mesh that's been quietly running for months needs a health check: are all the tunnels still up? Is that "temporary" firewall exception from three months ago still sitting there? Did a config change on one side of a tunnel ever get mirrored on the other? The hard part isn't finding the answers — it's finding them without accidentally taking down a production tunnel while looking.

Need a MikroTik Fleet Audit?

Need help? Connect on WhatsApp 👉 wa.link/uw9n3f

Or ask on website chat for freelancer support.

The Topology Being Audited

Site A (office) Site B (cloud hub) Site C (branch VPS)

172.20.10.0/24 ←→ 172.20.60.0/24 ←→ 172.20.70.0/24

MikroTik hAP-class MikroTik CHR MikroTik CHR

Site B is the hub; Site A and Site C are spokes, matching the pattern in our 3-site hub-and-spoke build write-up. A Linux jump host on Site B's LAN, reachable directly from the internet, serves as a stepping stone into routers that aren't directly exposed.

Step 1: Don't Assume a Router That Won't Ping Is Down

MikroTik routers frequently have ICMP disabled or rate-limited on WAN-facing interfaces — especially with a well-configured firewall in place. Test the actual management port instead of chasing a "dead" router that's just not answering pings:

timeout 5 bash -c '</dev/tcp/<router-ip>/22' && echo SSH_OPEN || echo SSH_CLOSED

Step 2: Reaching Routers That Aren't Directly Exposed

Not every router in a mesh has (or should have) a management port open to the whole internet. Two patterns that reach an isolated router without opening anything new:

A — SSH jump host:

ssh user@jump-host-public-ip \

"sshpass -p '<router-password>' ssh -o StrictHostKeyChecking=accept-new admin@<internal-router-ip> 'system resource print'"

B — Temporary non-persistent IP on the hypervisor bridge, when a router's LAN is only reachable from the host it runs on:

# On the Proxmox/KVM host running the router VM

ip addr add 172.20.70.1/24 dev vmbr1 # non-persistent — gone on reboot

ssh [email protected] "system identity print"

ip addr del 172.20.70.1/24 dev vmbr1 # clean up immediately after

Neither pattern opens a new port or changes firewall state — both use paths that already exist, and (B) is reverted the moment it's no longer needed.

A Windows-Specific Gotcha Worth Knowing

Driving these checks from a Windows box via PuTTY's plink.exe: Windows' own argument parsing strips a leading / from command-line arguments before plink ever sees them. RouterOS CLI commands are conventionally written with a leading slash — passed through plink from Windows, that slash silently disappears and RouterOS throws a confusing "expected command name" error that has nothing to do with the actual command.

# Drop the leading slash — RouterOS accepts commands without it too

plink -ssh -batch admin@<router-ip> "system resource print"

# Pin the host key up front to avoid an interactive prompt in a

# non-interactive/background call

plink -ssh -batch -hostkey "SHA256:<fingerprint-from-first-connect>" admin@<router-ip> "system resource print"

Step 3: The Actual Checklist

Run every one of these against every router in the mesh, hub first:

/system resource print

/interface wireguard peers print detail

# last-handshake should be well under the persistent-keepalive interval

# (typically 25s) if the tunnel is genuinely alive, not just configured

/interface print where type=wg

/ip route print where dst-address~"172.20"

/ip firewall address-list print

/ip firewall filter print where chain=forward

/ip firewall nat print

Step 4: Cross-Reference — Never Trust One Router in Isolation

The single most useful technique in a mesh audit: check the same tunnel from both ends.

# On Site A:

/interface wireguard peers print detail where interface=wg-hub

# On Site B (the hub) — does its record of Site A's peer still make sense?

/interface wireguard peers print detail where name="Site-A"

A peer showing a fresh handshake on one side but disabled or missing on the other means the tunnel is one-way-broken — usually someone edited one side and forgot the other, or a migration moved a service without updating both routers' configs to match.

If the AllowedIPs lists on each side don't mirror each other logically, that mismatch is worth writing down even if it isn't visibly breaking anything yet — it's exactly the shape of gap covered in our AllowedIPs routing bug write-up, where a missing /32 silently dropped traffic without any error on either end.

Step 5: Write Findings Down Before Fixing Anything

Finish the full read-only pass first, list everything found, and only then decide what needs changing versus what's just worth a note for later. Two reasons this order matters:

A fix applied mid-audit can change the state you're still trying to observe elsewhere — restarting a tunnel resets handshake timers on every peer connected to it.

Findings from a full pass often reveal that two "separate" symptoms share one root cause. Fixing the first one you spot in isolation can mean fixing the same underlying thing twice, inconsistently, on different nodes.

If a config change does turn out to be necessary, archive current state first:

/export file=pre-audit-backup-YYYY-MM-DD

Quick Reference: Audit Command Set

CheckCommand

Uptime / resources/system resource print

Tunnel handshake freshness/interface wireguard peers print detail

Interface up?/interface print where type=wg

Routes to other sites/ip route print where dst-address~"<subnet>"

Blocked-IP lists/ip firewall address-list print

Forward chain order/ip firewall filter print where chain=forward

NAT exceptions/ip firewall nat print

FAQ

How often should a mesh like this get audited?

Quarterly is a reasonable baseline for a stable production mesh, with an extra pass after any change to firewall rules, NAT, or routing on any single node — those are the changes most likely to create a one-side-only mismatch.

Is a read-only audit really risk-free?

print commands don't alter router state, so yes — the actual risk in an audit comes from jumping straight to fixes mid-pass, not from the checking itself. That's the entire reason for Rule Zero.

What's the most common finding in an audit like this?

Asymmetric AllowedIPs or peer config between the two ends of a tunnel — one side updated during a past change, the other forgotten. It rarely causes an obvious outage on its own, which is exactly why it survives until an audit catches it.

Time for a health check on your VPN mesh? We run read-only audits across MikroTik fleets and flag exactly what needs attention before it becomes an outage. Talk to us.