🥝GuideKiwi
Free Guide

Free Guide to Understanding Firewall Settings

What Firewalls Do and Why They Matter A firewall is software or hardware that acts as a barrier between your computer and the internet. Think of it like a se...

GuideKiwi Editorial Team·

What Firewalls Do and Why They Matter

A firewall is software or hardware that acts as a barrier between your computer and the internet. Think of it like a security guard at a building entrance—it monitors traffic coming in and going out, deciding what should be allowed through and what should be blocked. Firewalls examine data packets (small units of information traveling across the internet) and apply rules to determine if they're safe.

Firewalls have become increasingly important as cyber threats have grown. According to the FBI's 2023 Internet Crime Complaint Center report, there were over 880,000 reported cybercrime incidents, with losses exceeding $14.3 billion. These crimes range from ransomware attacks to data theft. A properly configured firewall can block many of these threats before they reach your device or network.

There are three main types of firewalls you should understand. Network firewalls protect entire networks and are typically managed by organizations or internet service providers. Host-based firewalls protect individual computers and are built into most modern operating systems. Third-party firewalls add an extra layer of protection beyond the built-in options. Many people use a combination of these types for stronger security.

Your firewall works by examining network traffic based on specific rules. These rules look at information like the source of the data, the destination, the type of protocol being used, and the port number. If incoming traffic matches a rule that says "block this," the firewall stops it. If traffic matches a rule that says "allow this," it passes through. Understanding how these rules work helps you make better decisions about your security settings.

Practical Takeaway: Check whether your device has a firewall already running. Windows users can verify this in Windows Defender, while Mac users can check System Preferences under Security & Privacy. Knowing what protection is already in place helps you understand your current security level.

Built-In Firewalls on Windows and Mac

Most computers come with a built-in firewall that's ready to use. Windows devices include Windows Defender Firewall, which has been included in Windows since Windows Vista. This firewall is active by default on most installations and provides baseline protection for your system. Mac computers include a firewall in System Preferences that can be enabled in the Security & Privacy section.

Windows Defender Firewall has two profiles: one for when you're connected to a private network (like your home) and another for when you're on public networks (like coffee shop Wi-Fi). The private profile typically allows more connections since you trust your network, while the public profile is more restrictive for safety. You can view which applications are permitted through your firewall by going to Windows Defender Firewall > Allow an app through firewall. This list shows programs that have requested permission to communicate over the network.

Mac's built-in firewall operates similarly but with fewer granular controls. It can be toggled on or off in System Preferences, and advanced options allow you to set it to allow only specific incoming connections. Unlike Windows, Mac's firewall is not enabled by default on all systems, so Mac users should verify their settings manually.

Both Windows and Mac firewalls use a whitelist approach for outgoing traffic, meaning they generally allow programs to send data out unless you've specifically blocked them. However, they monitor incoming traffic more strictly. Understanding this difference is important—it means a firewall protects you from outside threats trying to get in, but won't necessarily prevent a program on your computer from sending your data elsewhere if it's been compromised.

Practical Takeaway: Open your firewall settings and review the list of applications that have permission to communicate through your firewall. Remove permissions for any programs you don't recognize or no longer use. This reduces the number of potential entry points for threats.

Understanding Ports and Protocols in Firewall Rules

Ports are virtual channels that different types of internet traffic use. Think of them like different doors in a building—web traffic typically enters through port 80 (HTTP) or port 443 (HTTPS), email uses ports like 25, 110, and 587, and many other services have their designated ports. There are 65,535 possible ports on any device, numbered from 0 to 65535. Understanding ports helps you understand why firewalls block or allow certain traffic.

Protocols are the rules that govern how data is transmitted. HTTP and HTTPS are protocols for web traffic. SMTP, POP3, and IMAP are protocols for email. TCP and UDP are transport protocols that determine how data packets are sent. When you configure firewall rules, you often specify which protocol and port combination you want to allow or block. For example, a rule might say "allow incoming TCP traffic on port 443" or "block all UDP traffic on ports 5000-6000."

Common ports you should know about include port 22 (SSH, used for secure remote access), port 80 and 443 (HTTP and HTTPS for websites), port 3306 (MySQL databases), and port 5432 (PostgreSQL databases). If you run a web server on your home computer, you might need to open port 80 or 443. If you use remote desktop software, you might need port 3389 open. The key principle is to only open ports you actually need for services you use.

When setting up firewall rules, you can specify rules based on the source address (where traffic is coming from), destination address (where it's going), port number, and protocol type. An example rule might be: "Allow TCP traffic from any computer on my home network (192.168.1.0/24) to access port 445 on this computer." More restrictive rules might specify a single computer's IP address instead of a whole network. The more specific you can make your rules, the better your security.

Practical Takeaway: If you need to open a port for a specific application, research which port and protocol that application uses before changing your firewall settings. Write down which ports you've opened and why, so you can review them later and close any you no longer need.

Configuring Inbound and Outbound Rules

Firewall rules are divided into two categories: inbound rules and outbound rules. Inbound rules control traffic coming into your computer from the network. Outbound rules control traffic leaving your computer to go to the network. Most firewalls focus heavily on inbound rules to prevent attackers from entering your system, but outbound rules are equally important for preventing malware or unwanted programs from sending your data elsewhere.

The default inbound rule for most firewalls is "deny all" unless specifically allowed. This means incoming traffic is blocked unless you've created a rule permitting it. This is a secure approach because it requires you to explicitly open ports for services you want to receive. For example, if you run a web server, you need an inbound rule allowing traffic on port 80. Without this rule, no one can connect to your server.

Outbound rules typically default to "allow all" on many firewalls, meaning programs on your computer can send data out unless you've specifically blocked them. This is convenient for everyday use but creates a security gap. A compromised program could transmit sensitive data without your knowledge. Some organizations and security-conscious users change their default outbound rule to "deny all" and then create exceptions only for applications they trust. This requires more configuration but provides better protection.

To configure these rules, you typically access your firewall's control panel or settings application. On Windows, this is found in Windows Defender Firewall with Advanced Security. You can create new rules by specifying the direction (inbound or outbound), the action (allow or block), the protocol and port, and which applications the rule applies to. When adding a rule, be as specific as possible—specify the exact port number, the protocol type, and ideally limit it to specific applications rather than allowing all traffic on that port.

Practical Takeaway: Review your outbound firewall rules and consider whether you want to add restrictions on programs that might send data without your knowledge. At minimum, monitor which programs have permission to use the network. If you see a program you don't recognize, research it before allowing it through the firewall.

Firewall Rules for Common Applications and Services

Different applications require different firewall configurations. Web browsers need outbound access to port 443 (HTTPS) to load websites. Email clients need access to ports 25, 587, 110, 993, or 995

🥝

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides →