What Is a Firewall? Hardware vs Software, Settings and Setup
Quick Answer A firewall controls network traffic according to security rules. It permits approved connections and blocks unwanted connections between network...
Quick Answer
A firewall controls network traffic according to security rules. It permits approved connections and blocks unwanted connections between networks or between a device and the network. A hardware firewall usually protects traffic passing through a dedicated network appliance, while a host-based software firewall protects the computer on which it runs.
These protections complement each other. A network firewall controls access between network segments, while a computer’s firewall can restrict connections reaching that computer, including from nearby devices. Configuration involves deciding which connections are necessary and allowing only the appropriate sources, destinations, applications, and services.
Hardware Firewall vs Software Firewall
| Comparison | Hardware firewall | Host-based software firewall |
|---|---|---|
| Deployment | A dedicated appliance placed between networks. | Software running on an individual computer or server. |
| Protection scope | Traffic that passes through the appliance. | Traffic entering or leaving its host. |
| Typical controls | Network addresses, services, security zones, and application inspection where supported. | Applications, services, addresses, protocols, and ports supported by the operating system. |
| Important limitation | Cannot filter traffic that bypasses it, such as some communication within the same local network. | Must be configured and maintained on each protected host, potentially through central management. |
| Example | A FortiGate or Cisco Secure Firewall appliance. | Windows Firewall. |
The terminology is simplified: hardware appliances also run software. A software firewall can additionally run as a virtual network appliance, protecting multiple systems rather than only its own host.
Benefits and Features
The main benefit is controlled access: a service can be available to the people or devices that need it without being available to everyone.
- Connection filtering: Permit or deny traffic using addresses, protocols, ports, or applications.
- Stateful inspection: Track connections so that legitimate response traffic can be distinguished from unsolicited traffic.
- Segmentation: Restrict communication between groups such as employees, guests, and servers.
- Logging: Record connection decisions and administrative activity to support investigation.
Many next-generation firewalls (NGFWs) offer additional application controls, intrusion prevention, malware inspection, website filtering, VPN connectivity, and centralized reporting. These capabilities depend on the product, software release, configuration, and subscription. They are not automatically included or enabled on every firewall.
A firewall does not replace software updates, endpoint protection, secure authentication, or backups. Permitted traffic can still carry threats.
What Are the Default Firewall Settings?
There is no universal default configuration. Distinguish the manufacturer’s initial settings from the effective settings currently applied by an administrator, installer, or management policy.
Windows Firewall Defaults
| Setting | Default behavior | Practical meaning |
|---|---|---|
| Firewall protection | Enabled by default. | Keep protection enabled for applicable network profiles. |
| Inbound traffic | Unsolicited incoming traffic is blocked unless an applicable rule allows it. | Hosting a service may require a specific inbound exception. |
| Outbound traffic | Allowed unless an applicable rule blocks it. | Ordinary browsing generally does not require manually opening an inbound port. |
| Network profiles | Domain, Private, and Public profiles determine applicable rules. | Use rules appropriate to the network’s trust level. |
| Unidentified networks | Use the Public profile by default. | Do not mark an unfamiliar network Private merely to make an application work. |
Responses to permitted outbound connections are not equivalent to unsolicited inbound connections. Microsoft recommends keeping Windows Firewall enabled.
Hardware Firewall Defaults
Check the exact model’s setup guide for its management address, initial credentials or enrollment process, interface assignments, DHCP behavior, and starting rules. A setup wizard may create policies that differ from the untouched factory configuration.
Do not assume that internet access, threat inspection, remote management restrictions, or logging are configured correctly simply because the appliance starts successfully. Inspect the resulting configuration before deployment.
Which Settings Must Be Entered Manually?
The following is a planning checklist. Some values can be learned automatically or supplied by central management; others must come from your internet provider or network design.
| Setting | What to provide or verify |
|---|---|
| Administrator access | Unique administrator credentials, permitted management devices, and multifactor authentication where supported. |
| WAN connection | The internet-facing interface and the provider’s connection method: DHCP, static addressing, or another supported method such as PPPoE. |
| Static WAN addressing | The assigned IP address, subnet mask or prefix length, and gateway. Do not invent these values. |
| LAN addressing | The firewall’s internal address and subnet, avoiding overlap with other local or VPN networks. |
| DHCP service | If this firewall assigns client addresses, configure the address pool, gateway, DNS options, and exclusions. |
| DNS and time | Approved name-resolution and time-server settings, whether learned automatically or configured explicitly. |
| Routing | A default route and any required routes to other networks. Confirm whether they are learned automatically. |
| Security rules | Source, destination, direction or zones, service or application, action, and logging requirements. |
| NAT | Address-translation rules when required by the network design. NAT and permission to pass traffic are separate considerations. |
| Optional services | VPN configuration, security subscriptions, inspection profiles, alerts, and centralized logging as required. |
For a concrete vendor example, Fortinet documents WAN interfaces and default routes in its FortiOS basic settings guide. Follow documentation matching your installed release.
How to Configure a Hardware Firewall
This is a deployment checklist, not a universal sequence of vendor menu commands.
- Define the required connections. List which users and devices need access to which services. Identify employee, guest, server, and management networks.
- Prepare the appliance. Follow its initial setup guide from a trusted management connection. Secure administrator access and follow the vendor’s supported firmware update procedure.
- Configure connectivity. Apply the verified WAN, LAN, DNS, DHCP, and routing settings. Check basic connectivity before adding optional inspection features.
- Restrict management access. Limit administration to approved management sources. Avoid exposing the administrative interface directly to the internet.
- Create the required policies. Permit justified connections and deny unauthorized traffic. Review any broad rules created by the setup wizard. Apply controls to IPv6 as well as IPv4 where used.
- Enable appropriate inspection and monitoring. Configure licensed security services, useful logs, accurate timestamps, and alerts. Test changes before applying them broadly.
- Verify and save. Test required access and prohibited access, then save a protected copy of the working configuration.
A restrictive outbound policy requires planning: identify application dependencies before enforcing it across a business network. Review rules whenever services are introduced, changed, or retired.
How to Configure Windows Firewall
Check Protection First
- Open Windows Security.
- Select Firewall & network protection.
- Identify the active network profile and confirm that Microsoft Defender Firewall is on.
- For a blocked application, investigate a suitable exception instead of turning off the firewall.
Organization policies may prevent local changes. The option to block all incoming connections, including allowed applications, is stricter than normal inbound filtering and can interrupt services.
Create a Restricted Inbound Rule
Requirements: Local administrator rights, the application’s verified executable path, its required protocol and listening port, and the addresses of approved clients. Record the existing settings before making changes.
- From Firewall & network protection, select Advanced settings.
- Select Inbound Rules, then New Rule.
- Select Custom so that application, protocol, port, and address restrictions are available.
- Select the required program or service.
- Choose the documented protocol and local listening port. Do not substitute the client’s temporary source port.
- On Scope, restrict remote addresses to the approved clients or subnet.
- Select Allow the connection and only the necessary network profiles.
- Give the rule a descriptive name and record its purpose.
For an inbound service rule, the local port belongs to the receiving computer. Combining program and port restrictions prevents unrelated programs from using the same exception.
Windows Firewall does not use a manually ordered, first-match rule list. Explicit block rules generally override conflicting allow rules. Centrally managed policies can also prevent local rules from taking effect, so repeatedly adding allow rules may not resolve a conflict.
Verification, Troubleshooting, and Rollback
- Test allowed access: Connect from an approved client using the actual application.
- Test denied access: Confirm that an unauthorized source cannot reach the protected service.
- Check the destination: Verify that the application is running and listening on the expected address and port.
- Check the path: Review routing, address translation, network firewall rules, and the destination’s host firewall.
- Inspect evidence: Compare timestamps, addresses, ports, and matched rules in available logs. A failed ping alone does not prove that an application port is blocked.
- Undo narrowly: Disable a newly added rule or restore the specific settings changed. Use the vendor’s documented recovery process if management access is lost.
Do not use a factory reset as the first troubleshooting step. It can remove the configuration required to restore connectivity. Windows Firewall’s restore-defaults option can also disrupt custom exceptions, and organizational policies may be reapplied afterward.
Firewall Hardware Companies and Example Models
The following are examples listed in official vendor documentation checked on 26 October 2026. They are not a popularity ranking or a recommendation that every model suits every network.
| Company | Product family | Example models |
|---|---|---|
| Fortinet | FortiGate | 70G, 90G, 120G. |
| Sophos | XGS Series | XGS 88, XGS 108, XGS 118. |
| Palo Alto Networks | PA-400 Series | PA-440, PA-450, PA-460. |
| Cisco | Secure Firewall 1200 Series | 1210CE, 1210CP, 1220CX. |
| SonicWall | TZ Series, Generation 8 | TZ280, TZ380, TZ480. |
How to Compare Models
Compare performance with the security functions you intend to enable. Vendors publish separate measurements for basic firewall traffic, threat inspection, VPN traffic, and encrypted-traffic inspection; these figures are not interchangeable. Also check interface speeds, connection capacity, supported software, support lifecycle, management requirements, and renewal costs.
Confirm exactly what happens when a subscription expires. For example, SonicWall documents hardware-only operation for the listed Gen 8 TZ models, while its TZ80 requires an active subscription to function. Subscription behavior should never be assumed across an entire brand.
Sources
- NIST: Guidelines on Firewalls and Firewall Policy — foundational firewall concepts.
- Microsoft: Windows Firewall overview, rule behavior, and configuration procedures.
- Microsoft Support: Firewall and network protection in Windows Security.
- CISA: Enhanced Visibility and Hardening Guidance and NSA: Network Infrastructure Security Guide.
- Fortinet: Small Business Network Firewalls.
- Sophos: XGS Series Firewall Comparison.
- Palo Alto Networks: PA-400 Series Overview.
- Cisco: Secure Firewall 1200 Series Data Sheet.
- SonicWall: TZ Series firewalls and Gen 8 TZ licensing.
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.