Guide
Firewalls
A firewall applies a policy to traffic at a host, network boundary or application layer. Stateless rules inspect packets individually; stateful rules track flows. A WAF interprets selected application traffic and is not equivalent to an IP-layer packet filter. Rule ordering and default actions are part of the policy.
Meaning and purpose
A firewall applies a policy to traffic at a host, network boundary or application layer. Stateless rules inspect packets individually; stateful rules track flows. A WAF interprets selected application traffic and is not equivalent to an IP-layer packet filter. Rule ordering and default actions are part of the policy.
How it works in context
Rules can match addresses, protocols, ports, interfaces and connection state. Allowing a destination port does not prove a process is listening or that a route exists. Host and provider firewalls can both affect a flow. Stateful inspection may fail with asymmetric paths or with traffic that exceeds connection-tracking capacity.
Technical terms in this section
Network firewalls
Network firewalls enforce traffic policy between networks or security zones.
Host-based firewalls
Host firewalls apply traffic rules on the protected endpoint itself.
Stateful firewalls
Stateful firewalls track flow state to apply connection-aware traffic policy.
Stateless firewalls
Stateless firewalls evaluate packets without maintaining connection-tracking state.
Next-generation firewalls
Next-generation firewalls combine traffic filtering with product-specific application and security inspection.
Application firewalls
Application firewalls inspect application-layer traffic under configured protocol-aware policies.
WAF
A WAF filters application requests under configured rules without repairing underlying application flaws.
Firewall rules
Firewall rules match traffic and choose actions under ordered chains or equivalent policy structures.
Allowlisting
Allowlisting permits explicitly approved identities, addresses or operations.
Denylists
Denylists block selected identifiers without proving that all unlisted traffic is safe.
Inbound traffic
Inbound traffic enters a defined interface, host or security boundary.
Outbound traffic
Outbound traffic leaves a defined boundary and may require explicit egress policy.
Port filtering
Port filtering matches transport ports and direction without reliably identifying application protocol alone.
Protocol filtering
Protocol filtering restricts traffic by network protocol or supported higher-layer classification.
GeoIP filtering
GeoIP filtering uses uncertain address-location estimates and can produce geographic misclassification.
IDS
An IDS detects suspicious activity and typically alerts without necessarily blocking traffic.
IPS
An IPS can block detected threats and requires careful false-positive and availability handling.
Fail2ban
Fail2ban applies temporary bans based on configured log-detection patterns.
nftables
nftables is Linux’s packet-filtering framework using tables, chains and rules.
iptables
iptables manages Linux filtering rules with backend behavior depending on the installation.
UFW
UFW simplifies Linux host-firewall management while retaining underlying network-policy responsibilities.
Windows Firewall
Windows Firewall applies host traffic policy using profiles and application or network rules.
Operational checks and security
Preserve administrative access when changing rules and keep a rollback path. Check counters and logs before broadening access. Cover both IP families, limit exposed database services and distinguish a rejected packet from a silently dropped one.
Read-only example
These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.
sudo nft list ruleset
sudo ufw status verbose
Sources and further reading
These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.