UnixDroid

Lesson 5 of 6 · 6 min

Step 5: port states (open, closed, filtered)

What Nmap means by open, closed and filtered, plus the three in-between states you'll meet later.

Nmap's results only make sense once you know what each state means.

The three you'll see most

StateWhat it means
openA service is listening and answered.
closedThe host answered, but nothing is listening on that port.
filteredNo answer came back. A firewall is probably dropping the packets.

The other three

  • unfiltered: reachable, but Nmap can't tell open from closed (seen with ACK scans).
  • open|filtered: no reply, so it could be either (common in UDP scans).
  • closed|filtered: can't tell closed from filtered (rare, idle scans).

Why this matters

  • Closed is useful: it proves the host is alive.
  • Filtered is a clue: there's a firewall in the way.
  • Only open ports have services you can investigate further:
nmap -sV -p 22,80,445 10.0.2.5

-sV asks the open ports which software and version they're running.

Try it yourself
  1. Scan your target and count open, closed and filtered ports.
  2. Turn on the target's firewall and scan again. What changed?
  3. Run -sV on the open ports and note the versions.
No Linux machine? Practise in the free online terminal

Quick check

A port with no reply because a firewall drops packets is shown as ___

Need a hint?

The firewall filters the traffic.

Finished this lesson?

Done lessons keep your daily streak going 🔥

0 day streak

0 lessons done

best 0 days

Log in to keep your streak on every device →