What Does a Fresh Debian 13 VM Send on the Network? A Packet-by-Packet Look at the First 90 Seconds After Boot
Before you write a firewall policy or a monitoring rule, it is worth knowing what a machine says when you have asked it to do nothing. I captured a fresh Debian 13 VM from the moment its network interface came up, for the first 90 seconds, and read every packet that it sent.
How I captured it
You cannot start tcpdump by hand and catch the first second of boot, so I let systemd do it. A unit that runs before the network is configured:
[Unit]
Description=Capture the first 90 seconds of eth0
DefaultDependencies=no
After=sys-subsystem-net-devices-eth0.device
Wants=sys-subsystem-net-devices-eth0.device
[Service]
ExecStartPre=/usr/sbin/ip link set eth0 up
ExecStart=/usr/bin/tcpdump -i eth0 -n -U -s 0 -w /var/tmp/boot.pcap -G 90 -W 1 -Z root
[Install]
WantedBy=sysinit.target
-G 90 -W 1 stops after one 90 second file. Two details cost me a couple of reboots, so they are worth passing on:
- Without an
[Install]section,systemctl enabledoes nothing, and the unit is simply not started at boot. - Without the
ip link set eth0 upline, tcpdump exited witheth0: That device is not up, because it ran before systemd-networkd had brought the interface up.
The VM is a Debian 13 cloud image on Proxmox, with the stock systemd-networkd and systemd-resolved stack. The whole boot took 8.5 seconds (systemd-analyze: 2.3 s kernel and 6.2 s userspace).
The result was 287 frames in 90 seconds, and only 54 of them came from the VM. The rest were the rest of my LAN: spanning tree BPDUs from the switch every second, IPv6 multicast listener reports from other machines, and ARP and mDNS between other hosts. I filtered on the VM’s MAC address to keep only its own traffic:
sudo tcpdump -tt -nr boot.pcap ether src bc:24:11:1b:52:2b
The timeline
Times are seconds after the first frame.
| Time | What the VM sent |
|---|---|
| 0.00 | IPv6 neighbor solicitation from :: for its own link-local address (duplicate address detection) |
| 0.23 | IPv6 multicast listener report from :: |
| 1.02 | Router solicitation to ff02::2, plus more multicast listener reports |
| 1.32 | LLMNR over IPv6 (ff02::1:3, port 5355), 3 packets |
| 2.24 | DHCP Discover and Request |
| 2.28 | IGMPv3 report (joining 224.0.0.252 for LLMNR) |
| 2.62 | LLMNR over IPv4 (224.0.0.252), 3 packets |
| 3.25 | ARP reply (the router checked on the new address) |
| 32.38 | NTP query to the router |
| 37.57 | ARP request for the gateway |
After the first four seconds the VM was almost silent. The 24 TCP packets in the VM column are my own SSH session from 61 seconds onward, and are not part of the boot chatter.
By category, the 54 packets were 24 TCP (my SSH session), 13 ICMPv6, 6 LLMNR, 6 ARP, 2 IGMP, 2 DHCP and 1 NTP.
IPv6 first
IPv6 was first on the wire, before DHCP. The VM sends a neighbor solicitation from the unspecified address :: to check nobody else has fe80::be24:11ff:fe1b:522b. That is duplicate address detection, and the address itself is derived from the MAC address (bc:24:11:1b:52:2b becomes be24:11ff:fe1b:522b, with the universal/local bit flipped).
Then it asks for a router, and keeps asking. I counted six router solicitations at 1.0, 2.8, 6.8, 15.0, 30.8 and 62.1 seconds. The gaps are 1.8, 4.0, 8.2, 15.8 and 31.3 seconds, which roughly doubles each time. Nobody answered, as my LAN has no IPv6 router, so this VM has link-local IPv6 only. That is a useful fingerprint: a host that keeps sending ff02::2 solicitations with growing gaps is on a network that does not advertise IPv6.
Alongside it there is a steady trickle of multicast listener reports (MLDv2), 6 in total from this host. These are the VM telling the switch which multicast groups it wants, such as the solicited-node group for its own address. If you run MLD or IGMP snooping on a switch, this is what it is listening to.
DHCP in seven milliseconds
The Discover, Offer, Request and ACK exchange completed in about 7 ms:
21:01:45.199 client > 255.255.255.255.67 DHCP Discover xid 0x3f8b842e
21:01:45.201 192.168.11.1.67 > client DHCP Offer
21:01:45.201 client > 255.255.255.255.67 DHCP Request
21:01:45.206 192.168.11.1.67 > client DHCP ACK
What the client asked for and said about itself, from tcpdump -v:
DHCP-Message (53): Discover
Client-ID (61), length 19: hardware-type 255, ca:53:09:5a:00:02:00:00:ab:11:...
Parameter-Request (55): Domain-Name (15), MTU (26), Static-Route (33), NTP (42),
URL (114), Unknown (120), Classless-Static-Route (121), Unknown (162)
MSZ (57): 1472
Hostname (12): "modern-tools"
Three things stand out.
- The hostname is sent in the clear.
modern-toolsgoes to every device on the broadcast domain. If you name your laptop after yourself, your DHCP server and anyone on the segment get that name. - The client ID is not the MAC address. It is hardware type 255 followed by a 18 byte identifier, not the usual hardware type 1 and MAC. Check this if your DHCP server reserves addresses by client ID, because a reservation written against the MAC address may not match.
- It asks for NTP (42). The Offer and ACK came back with the router’s address as the NTP server, along with the broadcast address, the LAN domain name and the hostname:
DHCP-Message (53): ACK
BR (28): 192.168.11.255
Domain-Name (15): "<lan-domain>"
Hostname (12): "modern-tools"
NTP (42): 192.168.11.1
I trimmed the lease time, subnet mask, router and DNS server options from that display. resolvectl on this machine shows 192.168.11.1 as its DNS server.
LLMNR, a name nobody asked for
Six packets (3 over IPv6, 3 over IPv4) went to port 5355, the Link-Local Multicast Name Resolution port, each with a 30 byte payload. That is the size of a DNS header (12 bytes), a 12 character name encoded as 14 bytes, plus type and class (4 bytes), which matches the VM’s own hostname, modern-tools. I read it as systemd-resolved checking that no one else on the link already uses its name. I inferred this from the packet size and have not decoded the name field.
resolvectl confirms LLMNR is active on this interface:
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
LLMNR is on by default here, mDNS is off, and LLMNR is a classic source of name-spoofing attacks on Windows networks. Where you do not need it, turning it off is a one-line change in a .network file: LLMNR=no.
The IGMP reports at 2.28 and 3.01 seconds are the VM joining 224.0.0.252 so it can receive LLMNR replies.
NTP at 32 seconds
21:02:15.34 192.168.11.154.50517 > 192.168.11.1.123: NTPv4, Client, length 48
The VM asked the router, because the router was handed to it in DHCP option 42. The time sync service here is systemd-timesyncd (systemctl is-active shows timesyncd active and chrony inactive), and timedatectl reports the clock is synchronized. The transmit timestamp in that packet decodes to 1974, which is not the real time, and I did not investigate why. I would not assume anything from it.
What is not there
This is the part I find most useful.
- No DNS queries at all in 90 seconds. A freshly booted Debian does not look anything up until something asks it to.
- No traffic to a cloud metadata address or any other server. The only TCP packets were my own SSH session. cloud-init still ran (
status: done), but nothing it did crossed this interface in the capture. - No apt, no update checks in the first minute. The scheduled timers fire later.
- No telemetry. Nothing left the LAN except what I show above.
Why this is worth knowing
- A default-deny firewall for this host needs to allow: DHCP (UDP 68 from the server), ICMPv6 neighbor and router discovery, and NTP replies. Everything else in the table is optional multicast.
- A new device announcing itself with a hostname, DHCP options and a burst of LLMNR packets is easy to recognise on a monitoring port. That helps with rogue device detection.
- The 13 ICMPv6 packets show how IPv6 behaves with no router: the host keeps quiet apart from solicitations that back off, and runs without a global address.
To repeat this on your own host, copy the unit above, enable it, reboot, and read /var/tmp/boot.pcap afterwards. One limitation is that the capture runs on the VM itself, so it starts at link-up and can only see what reaches the interface. A capture from a mirror port on your switch would also catch what the NIC drops.