Chapters0/43 ▾
- 1.Security Principles & Control Types0/5
- 2.Risk, Policy Hierarchy & Ethics0/4
- 3.Governance, Risk & Compliance0/4
- 4.Continuity, Disaster Recovery & Awareness0/4
- 5.Identity Lifecycle Management0/4
- 6.Logical Access Controls & Models0/4
- 7.Network Security Concepts0/5
- 8.Network Architecture & Cloud Security0/4
- 9.Data Security & Security Operations0/5
- 10.Incident Response, Assets & Testing0/4
Chapter 7 · Lesson 4 of 5
Firewalls, ports and applications
1 min read
The outline lists firewalls with ports and applications as examples. Port numbers fall into three ranges: 0 to 1023 are well-known ports for standard server services, 1024 to 49151 are registered ports, and 49152 to 65535 are dynamic ports that clients borrow for one connection.
Common pairs to know include Telnet 23 and SSH 22, LDAP 389 and LDAPS 636, POP3 110 and POP3 over TLS 995, and SMB file sharing on TCP 445. Wrong options often swap a cleartext port with its secure partner, so 22 offered for Telnet or 389 offered for LDAPS is wrong.
- Packet filter: judges each packet alone by address and port, with no memory between packets.
- Stateful inspection: keeps a state table of established connections and admits the return traffic that belongs to them, so it can tell a real reply from an unsolicited packet.
- Application awareness: identifies the program behind the traffic, which is needed when many applications share TCP 443.
Whatever the type, the rule base should end in default deny: anything not explicitly permitted is dropped. That is least privilege applied to the network. Example: a firewall allows only TCP 443 to the web server and denies everything else, so a forgotten test service on port 8080 stays unreachable.
Check yourself
1. A new firewall is being configured, and the team is debating how the rule base should end. Which posture reflects the standard principle, and why?
2. What distinguishes a stateful inspection firewall from a simple packet-filtering firewall?
Facts checked 2026-11-15 · Sources: ISC2 Certified in Cybersecurity (CC) Exam Outline, RFC 1918 Address Allocation for Private Internets
ISC2 Certified in Cybersecurity (CC) cheat sheet: every key fact on one page →