Concepts / Active reconnaissance

Active reconnaissance

Firewalking

Also called firewalk, TCP traceroute, TTL probing, hping3 --traceroute

Using a port the firewall allows, plus TTL-limited probes, to map the routers and hosts hidden behind it.

An allowed port lets the TTL walk continue inside
An allowed port lets the TTL walk continue inside

Each probe expires one hop further, and the router where it expires names itself. That only works past the firewall on a port it allows; on a dropped port the walk stops there.

Firewalking maps the routers behind a firewall with [[ttl|TTL]]-limited probes sent to a port the firewall allows. As in traceroute, the router where a probe's TTL reaches zero answers with an ICMP time-exceeded that names it; an allowed probe passes the firewall, so routers inside answer too. hping3 --traceroute -S -p 80 does it with TCP SYNs. The defence: block outgoing time-exceeded errors at the edge.

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