Home › Install guides › Packet capture: capture collectors and SPAN ports
Install guide · Packet Capture (capture collector) and Network Pro (short captures)Packet capture: capture collectors and SPAN ports
Install a packet capture collector that records SPAN ports around the clock and let your Uplivra server pull any moment, or take a short capture on any collector. Covers switch mirror commands, capture filters and display filters.
Uplivra Technologies LLC · Guide for Uplivra 26.10 · Updated 12 November 2026 · Latest version: https://uplivra.com/guides/packet-capture.html
What a collector can see
A collector records what reaches its network ports:
- Its own traffic and broadcasts, on the port it uses to reach Uplivra (the management port). This is enough for "can the collector reach the file server?" questions.
- Traffic between other devices, when a switch copies it to a spare collector port. That copy is called a SPAN or mirror port. Use it to see what a server, firewall or phone is really sending.
Captures are short on purpose: up to 10 minutes on a collector, and 60 seconds on a router (120 seconds on a router with 8+ processors and 16 GB+ of memory). By default only the first 128 bytes of each packet are kept. That is enough to diagnose problems, but not enough to read contents. The one exception is the TLS and QUIC hello that starts an encrypted connection: it is kept whole, because it holds the server name Uplivra uses to recognise the application. It contains no user data.
There are two ways to capture:
| Packet capture collector | Short capture on any collector | |
|---|---|---|
| Records | All the time, in a rolling window | Only while a capture runs (up to 10 minutes) |
| Catches what happened before an alert | Yes: Uplivra pulls 3 minutes before to 30 seconds after | Only if a capture was already running |
| Hardware | A computer or VM with 2+ network ports, only for capture | Any collector (a spare port for SPAN) |
| License | Network Pro (Packet Capture is included) | Network Pro |
Set up a packet capture collector
A packet capture collector does one job: it records the traffic a switch mirrors to it. It runs no checks and receives no logs. It still has its own management page, and it gets its license and settings from your Uplivra server, so nothing is recorded until your server's license covers it.
What you need
- 2 or more network ports. 1 for management (it gets an IP address and reaches your Uplivra server over HTTPS 443) and 1 or more for SPAN (no address, listen only). A SPAN port can never be the management port.
- A big disk for the recordings. The collector keeps as much as fits in 80% of the disk (you can change this). As a guide, a link averaging 100 Mbps fills about 1 TB a day with whole packets, and about a tenth of that with headers only.
- At least 4 cores, 8 GB of memory and 500 GB of disk; 8 cores, 16 GB and 2 TB or more is better for 1 Gbps and above.
- Network cards that match the SPAN traffic: a 1 Gbps port can't receive a 10 Gbps mirror.
| Plan | SPAN ports | Recording speed | Price |
|---|---|---|---|
| Free | 1 | 100 Mbps, last 24 hours | Included (one per installation) |
| Lite | 1 | 1 Gbps | Included |
| Standard | 2 | 2 Gbps in total | Included |
| Pro | 4 | 10 Gbps | Included (in development) |
1. Install it
Appliance (easiest). Download the Uplivra appliance from the portal's Downloads page (VMware OVA, or the installer ISO for a physical server). It's the same image for every role. The OVA has 2 network adapters: VM Network for management and SPAN for the mirror. The SPAN adapter starts disconnected. Before the first start:
- Make the disk as large as you need for the recordings. The appliance grows into it on first boot.
- Connect the second adapter (tick Connect at power on) to the port group or virtual switch that receives the mirrored traffic. On VMware, that port group needs Promiscuous mode: Accept. On a physical server, plug the second network port into the switch's mirror (SPAN) port.
On first start, choose Packet capture collector; the setup then asks only what a capture collector needs.
Your own Ubuntu computer. Install Uplivra as for any collector (see the Linux collector guide), then run uplivra setup and choose Packet capture collector.
2. Answer the setup questions
- The management port: the port with the address. Give it a fixed address if you can.
- The SPAN ports: setup lists the other ports and suggests them all. They get no address, no DHCP, no IPv6 and no link-local address, so the collector can't be reached through them and never sends on them.
- Where to keep the recordings: a folder on the big disk (normally
/var/lib/uplivra-collector/capture). - Your Uplivra server's address and a setup code (Settings › Sites and collectors › your site › Connect a collector), or connect later from the management page.
- The management page port (443) and its password.
Firewalls between the collector and your server only need TCP 443 out from the management port. uplivra ports -mode capture prints the full list.
3. Mirror the switch ports
Point a switch SPAN (monitor) session at each SPAN port. The commands for Cisco, Aruba, Juniper and UniFi are below.
4. Choose a plan and turn the ports on
In Uplivra, open Settings › Sites and collectors, then the capture collector. The Packet capture section shows each SPAN port's link, speed and drops, and lets you set:
- Plan: which plan this collector uses (the license decides how many of each you have; one collector can use the Free plan).
- Label and filter per port, for example
internet edgeandnot port 22, and turn ports on or off. The plan decides how many ports record. - Disk allowance (80% by default) and hours to keep.
- Headers only (128 bytes per packet, plus TLS and QUIC hellos) or whole packets.
The collector's own management page shows the same status, and whether the license has arrived.
5. Pull packets
On Packet captures, under From a packet capture collector, pick the collector, the last 5, 15 or 60 minutes or a from/to time, and optionally a host and a capture filter (up to 24 hours per pull). Uplivra asks the collector for just those packets, then shows the summary and packet list as for any capture.
To catch the moments before an alert, add a rule under Packet captures › Capture automatically when an alert opens (for one device or any device). When a capture collector is recording, Uplivra uses it instead of a live capture: it prefers one at the device's site, waits 40 seconds, then pulls 3 minutes before to 30 seconds after the alert opened, filtered to the device's address.


Short captures on any collector
Any collector can capture for a short time (Network Pro). The rest of this guide covers it, and the switch commands apply to capture collectors too.


Set up a SPAN port
You need a collector with two network ports: one to reach Uplivra (management), and one spare for the mirror. The mirror port must not be the management port. It gets no IP address, so nothing can reach the collector through it, and a busy mirror can't crowd out the collector's own connection.
1. Cable it
Connect the collector's spare port (for example eth1) to a free port on the switch (for example Gi1/0/48).
2. Bring the port up without an address
On an Ubuntu collector, create /etc/netplan/60-span.yaml with:
network:
version: 2
ethernets:
eth1:
dhcp4: false
dhcp6: false
optional: true
then run netplan apply as root. Uplivra appliances run Ubuntu, so the same steps work there. Check it with ip -br link: eth1 should say UP with no address.
3. Tell the switch what to copy
Cisco IOS (encapsulation replicate keeps VLAN tags, so you can filter on vlan 20):
monitor session 1 source interface Gi1/0/10 both
monitor session 1 source vlan 20 rx
monitor session 1 destination interface Gi1/0/48 encapsulation replicate
Aruba CX:
mirror session 1
source interface 1/1/10 both
destination interface 1/1/48
enable
Juniper EX:
set forwarding-options analyzer SPAN input ingress interface ge-0/0/10
set forwarding-options analyzer SPAN input egress interface ge-0/0/10
set forwarding-options analyzer SPAN output interface ge-0/0/47
Ubiquiti UniFi: Devices › (switch) › Ports › (port 48) › Port profile Mirroring, then choose the port to mirror.
4. Check Uplivra sees the port
On Packet capture, open Collector network ports. The spare port shows as good for a SPAN port (up, no address); the management port is marked management.
5. Capture
Choose the site, enter the interface (eth1), tick This interface is plugged into a switch's SPAN / mirror port, add a capture filter if you want one, and start.
While a SPAN capture runs, the collector listens promiscuously on that port only (it accepts frames addressed to other devices). It goes back to normal by itself when the capture ends. VLAN tags are kept even when the network card removes them, so VLAN filters work on trunk mirrors.
Mirror only what you need. A mirror of a busy uplink can send more than the collector's port can carry; the switch then drops copies, and the capture will be missing packets.
Capture filters: what gets recorded
Capture filters use the tcpdump style most network engineers know:
| Filter | Records |
|---|---|
host 10.0.0.5 | to or from 10.0.0.5 |
src host 10.0.0.5 / dst host 10.0.0.5 | from / to it only |
net 10.1.0.0/16 | to or from anything in that network |
port 443, dst port 53, portrange 5060-5070 | by TCP/UDP port |
tcp, udp, icmp, arp | by protocol |
vlan 20 | frames tagged with VLAN 20 (on trunk mirrors) |
host 10.0.0.5 and port 443 | combine with and, or, not and brackets |
The collector's own connection to Uplivra is always left out.


Display filters: what the packet list shows
After a capture, the Packets list on the capture's page takes Wireshark-style display filters. Capture-filter words work there too.
| Filter | Shows |
|---|---|
ip.addr == 10.0.0.5 | to or from it (ip.src, ip.dst for one direction; ip.addr == 10.0.0.0/24 for a network) |
tcp.port == 443, udp.dstport == 53 | by port |
tcp.flags.syn && !tcp.flags.ack | connection attempts |
tcp.flags.reset == 1 | refused or cut connections |
dns, http, tls, ssh, snmp, syslog, bgp, dhcp, ntp | common services by their ports |
frame.len > 1000, ip.ttl < 5, icmp.type == 3 | by size, hop limit or ICMP type |
vlan.id == 30 | by VLAN |
tcp contains "GET" | payload text (whole-packet captures) |
Combine with && (or and), || (or or), ! (or not) and brackets. Problem packets (resets, ICMP errors, failed DNS lookups) are highlighted. Download for Wireshark gives you the full file.
Applications and JA4
Each capture's page lists the applications in it: Microsoft Teams, Zoom, YouTube, Windows Update, ScreenConnect and many more, grouped by kind (video meetings, remote access, cloud storage, streaming, updates and so on), with connections, packets and bytes.
Applications are recognised by Uplivra's own classifier from SNI, QUIC, DNS and HTTP host names; encrypted content is never decrypted except QUIC Initial packets, whose keys are public by design.
- From the server name. Almost all traffic is encrypted, but the client names the site it wants at the start (the TLS server name, or SNI). Uplivra reads that name, also from QUIC (HTTP/3) connections, and matches it against its list of services.
- From DNS and HTTP. A DNS lookup shortly before a connection names the server; plain HTTP carries the site in its Host line.
- From the protocol itself. SSH, SMB, RDP, SIP, NTP, SNMP, DHCP, LDAP, Kerberos, RADIUS, syslog, NetFlow/IPFIX/sFlow, WireGuard, OpenVPN, IPsec IKE, VXLAN, STUN and BitTorrent are recognised by their first bytes.
- From the port, as a last resort.
The How sure column says which: Sure (a name the client sent), Likely (the protocol's own bytes) or Guess (port only).
Encrypted connections: who was asked for lists each distinct TLS or QUIC hello: the server name, the protocols offered, what the server chose, and the client's JA4 fingerprint. JA4 describes how the client software opens encrypted connections, so the same browser or app gives the same value; an unfamiliar JA4 can point to unexpected software. Wireshark 4.2 and later shows the same value as tls.handshake.ja4, so you can check it there.
Notes:
- A connection that started before the capture has no hello in it, so it is named from DNS or listed by port.
- In a headers-only capture, hellos are kept whole. Captures made before this change, or with very large hellos split in unusual ways, may say some hellos were cut short; capture whole packets to see them.
- Uplivra uses only its own code for this and for the investigation, not third-party packet dissectors or deep-packet-inspection libraries. JA4 is used under FoxIO's BSD 3-Clause license; the other JA4+ methods are not used.
Investigate a capture
Investigate on any capture, or Packet capture › Investigate a file for a .pcap or .pcapng from Wireshark, tcpdump, a firewall or a switch (up to 50 MB). Uplivra reads it on your server and nothing is sent anywhere else.
You can say what you're troubleshooting (slowness, a failed connection, DNS and so on) and give the client and server addresses. Those conversations then come first.
1. Capture health. Before saying anything about the network, Uplivra checks whether the capture can be trusted:
- packets cut short;
- timestamps going backwards;
- duplicate packets from a SPAN port that copies traffic twice;
- conversations that started before the capture;
- one-way traffic;
- data that was delivered but never recorded (the capture dropped packets);
- oversize frames from network-card offload.
It also guesses where the capture was taken, near the clients, near the servers or in the middle, from how far each side's packets have travelled.
2. Findings, kept honest. Every finding is one of three kinds, and lists the packets it rests on (click a number to see that packet):
| Kind | Meaning | Examples |
|---|---|---|
| Proven | The packets show it | A SYN with no answer, a reset, DNS "no such name", ICMP "fragmentation needed", HTTP 503 |
| Inferred | Several packets together point to it | The server was slow while the network was fast; packets were lost between here and the receiver |
| Unknown | This capture can't tell | Which firewall rule; what the server was doing |
Where loss happened is worked out from the capture point:
- a resend of a packet this capture saw means it was lost after this point;
- a resend of one it never saw means it was lost before this point.
3. The story and the fault domain.
- Each conversation has a step-by-step timeline: DNS, connection, TLS, HTTP, who closed it.
- A summary says how strongly the evidence points at the client, the network, the server or the application.
- In long captures, the busiest 10 seconds of trouble are picked out.
4. What would settle it. When the capture can't answer the question, Uplivra says what's missing and where to capture next, with a capture filter. For example: "a capture on the server side, host 10.0.0.5 and port 3389". When the network isn't the cause, it says so and points at the server's logs.
Questions and levels. Ask in plain words: why is it slow?, which side reset the connection?, was anything lost? The answers come only from the packets; no AI service is used. The summary has three versions: plain, network engineer and incident report.
Reviews. Anyone who can start captures can mark a finding Confirmed, Rejected, Needs more evidence or Accepted with changes, with a reason and a ticket or change number. The automated finding is kept as it was, and every review is listed.
Compare. Compare captures offers two comparisons:
- Good against bad shows the first point where a failing capture differs from a working one.
- Same traffic, two points (for example both sides of a firewall) shows which packets reached one point but not the other. It copes with NAT and with firewalls that change sequence numbers.
Evidence and exports.
- Download report is a self-contained page with the findings, the reviews and the provenance: the file's SHA-256, when it was captured and analysed, by whom, and the analyser version.
- Open a ticket with this evidence fills in a Service Desk ticket and links it back.
- The packet list exports as pcap, as headers-only pcap (contents removed) or as CSV, for the whole capture or only what the display filter keeps.
Cloud mirroring. Traffic mirrored from AWS (VXLAN) or Google Cloud (GENEVE) is unwrapped, and the mirrored packets are analysed as if captured directly.
Encrypted traffic. For TLS, Uplivra reads the handshake, the server name, timings and resets, and says plainly that what's inside can't be seen. TLS keys aren't used.


Who can capture
Three permissions control captures, under Settings › People and access:
- Start captures starts them, uploads files and reviews findings.
- See and download captures shows them.
- See packet contents unmasked is needed to see passwords, cookies and tokens inside packets, and to download captures with their contents. Without it, those values show as
**and downloads are headers-only.
Every capture, upload, download, unmasked view, question and review is recorded in the audit log.