Concepts / Firewalls

Firewalls

Drop or reject

Also called filtered, closed, open, port scan states

Two ways to refuse a packet: silence, or an explicit answer.

Silence or an answer
Silence or an answer

A dropped packet gets no reply, so the sender retries and waits for a timeout. A rejected one gets a reset or an ICMP error at once, and for TCP that looks like a closed port.

Drop and reject are the two ways a firewall refuses a packet. Drop gives silence: the client retries until it times out, and a scanner reports filtered. Reject answers at once with a TCP reset or an ICMP unreachable: the client fails immediately, and a reset makes the port look closed. The sender of an ICMP error reveals where the block is.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab