Skip to content
עברית

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.

Zaltzman.net · Your choice

Privacy preferences

Choose whether to link returning visits and remember display settings. Public content remains available without optional cookies.

Essential cookies

Always on

Secure forms, login sessions and your privacy choice.

What is included?

Session and CSRF protection, your privacy choice for up to 180 days, and Cloudflare security services. These do not authorise optional visitor analytics.

Analytics & returning visits

Store page history, visit times, IP and approximate location under one browser identifier, including return visits after an IP change.

How is this information used?

Authorised administrators use the history to understand usage and improve the site. No targeted ads, keystroke recording or fingerprinting. Turning this off deletes the history linked to your current identifier from the active database.

Remember display preferences

Save text size, contrast and other accessibility choices locally for your next visit.

Download my browser history

Turning analytics off deletes the current history and stops new collection.

Website operator: The Zaltzman Family
[email protected]

Zaltzman.net · Display settings

Accessibility tools

Adjust reading and navigation to suit you. Analytics consent is not required.

Text size
100%