Back to blog

MikroTik / RouterOS  ·  Monitoring  ·  November 2026

MikroTik
Inline Tap

Sometimes the two devices you need to watch are talking directly to each other and neither will give you a SPAN port. You can cut a spare MikroTik into the link as a transparent bridge — the two switches keep talking as if nothing changed, while a third port mirrors every frame to a capture box at line rate. This is the in-path cousin of Packet Sniffer & Port Mirror: there you mirror a port on a switch you own; here you insert a silent bystander between two you don't. Authorized engagements and your own lab only — see §5.

MikroTik Tap SPAN Capture RouterOS

A tap does one job: copy a conversation without disturbing it. A real hardware tap is passive — it splits the signal and keeps forwarding even if it loses power. A MikroTik can't do that, but it can do the next best thing: bridge two of its ports so traffic flows straight through, give that bridge no IP and no voice of its own, and have the switch chip copy the link to a third port. The two switches see a dumb cable; you see every packet.

The whole value is in being invisible and staying out of the way. That means three deliberate choices — a bridge with no L3 presence, no spanning-tree or discovery chatter of your own, and a copy done in hardware so the box keeps up. Everything else in this post is about the ways that invisibility leaks, and the limits you accept by using a router instead of a real tap.

Prerequisites
SWITCH A production BRIDGE no IP · silent ether1 · ether2 SWITCH B production CAPTURE BOX ether3 · no IP mirror copy

01

The Transparent Bridge

Two ports, one bridge, no IP. The point is that the MikroTik forwards the link like a wire and announces nothing — so the switches on either side never know it's there.

RouterOS — an L2 bridge with no presence of its own
# Bridge the two in-path ports. protocol-mode=none: don't run STP ourselves
# (BPDUs still pass through), so we add no spanning-tree identity to the link.
[admin@tap] > /interface/bridge/add name=tap protocol-mode=none \
     igmp-snooping=no dhcp-snooping=no
[admin@tap] > /interface/bridge/port/add bridge=tap interface=ether1 hw=yes
[admin@tap] > /interface/bridge/port/add bridge=tap interface=ether2 hw=yes

# Silence everything that would reveal us: no IP on the bridge, radios off,
# discovery + management pinned OFF the tapped path (use a separate mgmt port).
[admin@tap] > /interface/wifi/disable [find]
[admin@tap] > /ip/neighbor/discovery-settings/set discover-interface-list=none
[admin@tap] > /tool/mac-server/set allowed-interface-list=none
⚠ Gotcha — A Bridge IP or MNDP Gives You Away

The instant you put an IP on the tap bridge, the box answers ARP and shows up as a hop — not transparent any more. Likewise RouterOS runs MNDP (MikroTik's neighbour discovery) and can emit DHCP/LLDP by default; any of those puts a frame onto the wire with your MAC on it, which a switch's MAC table — or a watchful defender — will notice. Keep all management on a fourth port with its own subnet, and verify the tapped ports are emitting nothing with a quick capture before you trust the tap to be quiet.

02

Copy the Link — in Hardware

Mirror one of the bridged ports to the capture port using the switch chip, so the copy happens at line rate with the CPU idle. Mirroring one direction's port catches the whole conversation, because everything A↔B crosses it.

RouterOS — switch-chip mirror (source + target on the same chip)
# ether1 is the mirror SOURCE (rx+tx), ether3 the TARGET -> capture box.
# Both ports must sit on the same switch chip or the chip refuses it.
[admin@tap] > /interface/ethernet/switch/set switch1 \
     mirror-source=ether1 mirror-target=ether3

The mirror mechanics — switch-chip vs. CPU, /tool sniffer filters, and streaming into Wireshark over TZSP — are the same ones from Packet Sniffer & Port Mirror; the only new thing here is that the source port is one leg of an in-path bridge instead of an access port you administer.

💡 Pro Tip — Filter the Mirror So You Don't Overflow It

A gigabit link running full in both directions is up to 2 Gbps of traffic, and a 1 Gbps mirror port can't carry that — it drops mirrored frames (never the production traffic) and you capture an incomplete picture. If you only need part of the conversation, push the selection into the switch chip with a mirror rule — /interface ethernet switch rule with mirror=yes copy-to-cpu=no and a match like a VLAN or a host pair — so only what you care about lands on the capture port. Confirm the rule is actually matching in Wireshark; the match fields a chip supports in hardware vary by model.

03

The Capture Box

The mirror port is useless without something recording it. The capture host should be as silent as the tap: a NIC that listens and never speaks on the mirrored segment.

Linux — a passive capture NIC + rotating pcap
# Bring the capture NIC up with NO IP, promiscuous — it must not transmit.
capbox# ip link set eth1 up promisc on arp off
capbox# sysctl -w net.ipv6.conf.eth1.disable_ipv6=1   # no SLAAC/DAD chatter

# Rotating ring: new file hourly, keep 48 -> ~2 days, then overwrite oldest.
capbox# tcpdump -i eth1 -nn -s0 -G 3600 -W 48 -w tap-%Y%m%d-%H%M%S.pcap

# Management/exfil goes over a SEPARATE uplink (eth0 / LTE), never eth1.
💡 Pro Tip — Analyse, Don't Just Hoard pcap

For anything beyond a quick look, point Zeek at the capture NIC and let it turn the stream into conn/dns/http/tls logs — you'll search "who talked to what" instead of scrolling frames. Keep the management interface on its own network with a darkreader-style discipline: the capture NIC has no IP and no routes, so even a compromised analysis box can't use it to reach back onto the tapped segment. That one-way split is what keeps a tap a tap.

04

What a MikroTik Tap Is Not

A router pressed into tap duty has real limits. Know them before you cut into a link that matters — some of these will take the whole segment down, not just your capture.

LimitWhat it means in practice
not fail-openLose power and the link goes down. A real passive tap keeps forwarding; this doesn't. Never inline it on a link that must not drop.
insertion flapCabling it in bounces the link and may trigger an STP reconverge on both switches — hence the maintenance window.
oversubscriptionA saturated full-duplex link exceeds a single mirror port; mirrored frames drop under load (production traffic is fine).
reserved multicastLACP, 802.1X/EAPOL, LLDP use 01:80:C2:00:00:0x addresses a bridge may not forward — don't tap a LAG or a port-authenticated link without testing first.
⚠ Gotcha — Test the Link Type Before the Engagement, Not During

If the A↔B link is a port-channel (LACP) or runs 802.1X, inserting a transparent bridge can silently break it: the control-plane frames that keep the bundle or the authenticated session alive may not cross your bridge, and the link drops or deauthenticates the moment you insert. Find this out in the lab on the same gear, not in front of the client. When in doubt, a managed switch's native SPAN (or a real passive/aggregating tap) is the safer instrument — reach for the MikroTik when those aren't available.

05

Verify & Authorize Read Me

RouterOS — confirm it forwards, confirm it's silent
[admin@tap] > /interface/bridge/port/print       # ether1+ether2 on tap, hw=yes
[admin@tap] > /interface/ethernet/switch/print     # mirror-source/target set
[admin@tap] > /ip/address/print                     # NO address on the tap bridge
# On the capture box: tcpdump -i eth1 -c 5 — both switches' traffic appears.
# And prove silence: capture should show ZERO frames sourced from our MACs.
⚠ Authorization — This Intercepts Someone's Traffic

Tapping a link copies whatever crosses it, which in most jurisdictions is interception and is lawful only with clear authority: your own lab, or a signed engagement scope that names the segment. Get it in writing, tap only what the scope covers, keep the captured data encrypted and short-lived, and destroy it on close-out. The technique is neutral; the authorization is what makes using it legitimate. If you can't point to the permission, don't cut the cable.

Takeaways

  1. A tap is a transparent bridge: two ports bridged, protocol-mode=none, no IP, radios off, discovery and management kept off the tapped path.
  2. Copy in hardware with a switch-chip mirror (source + target on the same chip) so the box keeps up at line rate; mirroring one bridged port catches both directions.
  3. Filter the mirror when the link is busy, or a 1 Gbps mirror port drops frames a 2 Gbps full-duplex link overruns.
  4. Keep the capture box silent too — a no-IP promiscuous NIC, management on a separate uplink, Zeek for analysis.
  5. It is not a real tap: not fail-open, it flaps the link on insertion, and LACP/802.1X/LLDP may not cross. Test the link type in the lab first.
  6. Authorization is the whole game — tap only your lab or a signed, scoped engagement, and destroy the capture on close-out.

Need eyes on a link that won't give you a SPAN port?

Troubleshooting a flaky VoIP trunk, verifying what a black-box appliance really sends, validating a segmentation boundary — I build and run authorized capture setups on RouterOS and managed switches, with the analysis and the clean-up that go with them. Let's scope it properly.

Book a Discovery Call →