Network Engineer Interview Question

What is the difference between a stateless access list and a stateful firewall?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

A stateless access list checks each packet against its rules in isolation, so you must explicitly allow return traffic, often by permitting high ports or using the TCP established keyword. A stateful firewall tracks connections, so when an inside host opens a session, replies are allowed automatically and unsolicited traffic is dropped. Both process rules in order from the top, the first match wins, and both end with an implicit deny.

Why interviewers ask this

Filtering traffic is a core network engineering task, and getting rules wrong either breaks applications or leaves holes. The interviewer wants to know that you understand state tracking, why stateless filters are harder to write securely for return traffic, and how rule order and the implicit deny work. Knowing where each fits, such as access lists for simple filtering and stateful firewalls at trust boundaries, shows practical design sense.

How to structure your answer

  • Explain stateless packet filtering.
  • Explain stateful connection tracking.
  • Cover rule order and the implicit deny.
  • Explain where you would use each.

Example answer

Spoken example, first person

A stateless access list looks at each packet in isolation: source, destination, protocol and ports, compared against the rules from the top until one matches. It has no memory, so if I allow inside hosts out to web servers on port 443, I also have to allow the replies back in, which usually means permitting traffic to high ports or using the established keyword, which only checks the TCP ACK and RST flags. That is loose, and awkward for UDP. A stateful firewall keeps a table of connections. When an inside host opens a session, the firewall records it and allows the matching return traffic automatically, while unsolicited traffic from outside is dropped. That makes rules simpler and tighter. In both cases order matters, because the first match wins, so specific rules go above general ones, and anything unmatched hits an implicit deny at the end, which I often make explicit with logging to see what is dropped. I use stateless lists for simple jobs, like protecting router management, and stateful firewalls at trust boundaries between the internet, user networks and servers.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • Why is the TCP established keyword weaker than true state tracking?
  • Where would you place an access list to filter traffic from one subnet?
  • How would you clean up a firewall rule base that has grown for years?

Related network engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot