Network Perimeter Protection · Topic 5 of 6

Firewall Selection, Deployment and Administration

Choose a firewall by inspection depth, follow a deployment process, apply rule base best practices and handle daily administration such as logs and audits.

  • 5 min
In a nutshell
  • Default deny and least privilege rules are the two core practices.
  • Rules are processed in order, and the first match wins on most firewalls.
  • Deeper inspection costs performance, so size the device for traffic with inspection on.

What it is

Buying a firewall is the easy part. The defender must pick the inspection depth the risk demands, roll it out in a controlled way, write a safe rule base and then run it: reviewing logs, changing rules under control and keeping it patched.

The exam asks which firewall depth fits a requirement, the order of deployment steps, and what good rule and administration practice looks like.

Planneeds and policySelectinspection depthConfigurerule baseTestbefore go liveDeployAdministerlogs, changes, audits

How it works

Selecting by inspection capability

Deeper inspection finds more attacks, but it costs more processing and may need decryption.

Inspection levelWhat it seesFits
Stateless filteringHeader fields of one packetSimple edge routers, fast filtering
Stateful inspectionHeaders plus connection stateGeneral purpose perimeter
Deep packet inspection (DPI)Packet payload against signatures and protocol rulesBlock known exploits, identify applications
Application layer proxyFull protocol content, one session at a timeHigh assurance for a few protocols
NGFW with IPS and threat feedsApplications, users, content and reputationModern enterprise edge
TLS inspectionDecrypts, inspects, re encrypts trafficFinds threats hidden in HTTPS

Other selection factors: throughput under inspection, number of concurrent sessions, high availability, number of interfaces and zones, logging, central management, VPN support, vendor support and cost. Match the choice to the traffic: a small office does not need the same device as a data center.

TLS inspection has privacy and legal sides, since users' encrypted traffic is read. It needs a trusted internal certificate on endpoints, and some categories such as banking are often exempted by policy.

Implementation and deployment process

  1. Define requirements and policy: what must be allowed, what is the default stance, and what laws apply.
  2. Design the topology: zones, interfaces, DMZ, high availability and management network.
  3. Select the product and size it for peak traffic.
  4. Build the rule base: start with default deny, then add only needed allow rules.
  5. Harden the firewall itself: change default credentials, restrict and encrypt management access, patch.
  6. Test in a lab or off hours: rule logic, failover, logging, performance.
  7. Deploy in stages with a rollback plan, and tell users of changes.
  8. Monitor and tune after go live, and document the configuration.

Best practices for secure implementation

  • Default deny: block everything not explicitly allowed. This is the key rule.
  • Least privilege rules: specific source, destination and port, not "any".
  • Order matters: most firewalls check rules top down and apply the first match, so specific rules come before general ones.
  • Ingress and egress filtering: drop inbound packets with internal source addresses or private ranges, and restrict outbound traffic to stop data leaks and malware calls home.
  • Block risky services at the edge, such as Telnet, NetBIOS and unneeded remote administration.
  • Secure management: a separate management network, SSH or HTTPS only, multifactor for admins, no management from the internet.
  • Time sync and logging: send logs to a central server with synchronized time.
  • Use high availability so the firewall is not a single point of failure.
  • Document every rule with an owner, reason and expiry or review date.
  • Defense in depth: do not rely on the firewall alone.

Firewall administration activities

ActivityPurpose
Change managementRule changes are requested, approved, tested and recorded
Rule base reviewRemove unused, duplicate, shadowed and overly broad rules on a schedule
Log monitoringWatch denied traffic, scans, repeated failures and new outbound patterns
Configuration backupStore versions securely so a bad change can be rolled back
Patching and firmware updatesFix known firewall vulnerabilities
Access control for adminsNamed accounts, role separation, review of who can change rules
Performance and capacity checksTrack CPU, session counts and throughput
TestingPeriodic vulnerability scans and penetration tests to check rules work
AuditCompare the live rules with the written policy

A shadowed rule is one that can never match because an earlier rule already catches the traffic.

A worked example

An administrator finds that a rule from two years ago allows any source to reach a test server on port 3389. The ticket has no owner and the server was retired.

Following the review process, the admin disables the rule, watches the logs for a week for hits, then removes it with an approved change. The final step is saving the new configuration and updating the rule documentation.

How the exam asks about this

  • "What is the recommended default stance for a firewall rule base?" → Default deny, allowing only what is needed.
  • "Which feature lets a firewall find threats in HTTPS traffic?" → TLS inspection, that is decrypting, inspecting and re encrypting.
  • "What is the purpose of egress filtering?" → To limit outbound traffic so data leaks and malware callbacks are blocked.

What to remember for the exam

  • Default deny and least privilege rules are the two core practices.
  • Rules are processed in order, and the first match wins on most firewalls.
  • Deeper inspection costs performance, so size the device for traffic with inspection on.
  • Changes go through change management, and the rule base is reviewed on schedule.
  • Logs, backups and patching are routine administration duties.
Watch out

An "allow any any" rule at the top of a rule base defeats everything below it. Always check order and breadth, not just whether a rule exists.

Common mistakes

Skipping egress rules. Many teams filter only inbound traffic, which lets malware reach its command server.

Never cleaning the rule base. Old rules for retired systems become hidden holes.

Managing the firewall from the internet. Administration should only be reachable from a protected management network.

Check yourself

  • Why are specific rules placed before general ones?

    Because the first matching rule is applied, so a general rule above would catch the traffic first.

  • What is a shadowed rule?

    A rule that never matches because an earlier rule already handles the same traffic.

  • Why test a firewall before go live?

    To confirm rules, failover, logging and performance work without breaking business traffic.

Topic 5 of 6 in Network Perimeter Protection

Test yourself on Network Perimeter Protection

The full EC-Council 312-38 question bank has 800 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by EC-Council. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.