A few years back, I was helping my cousin set up her small graphic design studio — just her, two freelancers, and five laptops sharing one office Wi-Fi. Everything felt fine until one Monday morning when her computer started acting weird. Files were renaming themselves. Her antivirus was throwing alerts every few minutes. Turns out, one of the freelancers had connected an infected USB drive, and the malware had quietly started scanning the network for other devices to jump into.
That was the day I actually understood what a firewall does. Not from a textbook. From watching chaos happen in real time and realizing there was almost nothing standing between one infected laptop and the rest of the network.
We got through it, cleaned everything up, and the very next thing I did was configure a proper firewall setup for her office. That experience taught me more about network security than any course ever did.
So What Is a Firewall, Really?
Forget the dictionary definition for a second. Think of a firewall like the security guard at the entrance of an office building. Every person walking in gets checked. Not every visitor is let through automatically. If someone looks suspicious, or doesn't have a reason to be there, they get stopped at the door.
A firewall does the same thing for your network. It sits between your devices and the internet (or between different parts of your network) and decides what traffic gets in and what gets blocked, based on a set of rules.
It doesn't scan files for viruses like antivirus software does. Its job is different — it controls the doors, not the rooms.
ALSO READ: Edge Computing: Bringing the Cloud Closer to You
Why This Actually Matters (Not Just Theory)
Here's the thing most people don't realize until something goes wrong: your router already has a basic firewall built in. But "basic" is doing a lot of work in that sentence.
When I checked my cousin's router settings after the incident, the firewall was technically "on," but it was using default settings from the manufacturer — barely doing anything useful. It let almost all outgoing traffic through without question, which is exactly how that malware was able to try reaching out to other devices and even attempt a connection to an external server.
That's the part people miss. A firewall isn't just about stopping hackers from getting in. It's also about stopping something bad that's already inside from calling home or spreading further.
The Two Directions Firewalls Watch
Once I started digging into this properly, I learned firewalls typically monitor traffic in two directions:
- Inbound traffic — stuff trying to come into your network from outside. This is the classic "hacker trying to break in" scenario.
- Outbound traffic — stuff trying to leave your network. This matters way more than people think. If malware infects a device, it often tries to send your data out or download more malicious files. A good firewall catches that too.
Types of Firewalls You'll Actually Run Into
You don't need to memorize every technical category, but knowing the common ones helps you make better decisions.
Hardware firewalls — built into routers like those from Netgear, TP-Link, or Ubiquiti. This protects your whole network at the entry point, before traffic even reaches individual devices.
Software firewalls — like Windows Defender Firewall or the built-in firewall on macOS. These run on individual devices and control what that specific computer sends and receives.
Next-gen firewalls (NGFW) — used more in business environments. Tools like pfSense (which I personally switched to after that studio incident) or commercial options like Fortinet and Cisco Firepower go beyond basic rules. They can inspect traffic patterns, detect unusual behavior, and block threats based on more than just IP addresses and ports.
For a home user, your router's firewall plus your device's built-in firewall is usually enough if configured properly. For a business, even a small one, something like pfSense or a managed firewall service is worth the investment.
Here's a quick breakdown of how I'd compare them, based on what I've actually used:
| Firewall Type | Where It Runs | Best For | What I Noticed Using It |
|---|---|---|---|
| Hardware (router-based) | Network entry point | Homes, small offices | Easy to set up, but default settings are weak until you dig into them |
| Software (Windows/Mac) | Individual device | Laptops, personal computers | Good backup layer, but only protects that one device |
| Next-gen (pfSense, Fortinet) | Dedicated appliance/server | Businesses, serious home labs | Steeper learning curve, but the logging and outbound control are worth it |
Nothing fancy here — just what worked in practice when I compared them side by side after setting each one up at different points.
Setting One Up Properly — What I Actually Did
After the studio incident, here's the process I went through, step by step, in case you're dealing with something similar.
- Step 1: Check what's already running.
On Windows, go to Control Panel > System and Security > Windows Defender Firewall. On Mac, it's System Settings > Network > Firewall. Most people find it's on but never configured beyond default. - Step 2: Change default router credentials.
This has nothing to do with the firewall directly, but if someone can log into your router with the default admin password, they can disable the firewall entirely. I found my cousin's router was still using "admin/admin." That's basically leaving the front door unlocked. - Step 3: Enable outbound filtering.
On pfSense, this meant creating rules that block traffic to known malicious IP ranges and restricting which applications can send data out. For home routers, look for a setting called "outbound rules" or "egress filtering" — not every consumer router has this, which is honestly a limitation worth knowing about. - Step 4: Set up network segmentation.
This was the biggest lesson from that whole event. We put the freelancers' devices on a separate guest network from the main studio computers. Now, even if one device gets compromised, it can't freely talk to everything else. Most modern routers support a guest network option — it takes five minutes to set up and adds a real layer of protection. - Step 5: Turn on logging and actually check it.
pfSense logs every blocked connection attempt. The first week after setup, I checked the logs daily. It was honestly eye-opening how many random connection attempts get blocked just from normal internet use — automated scans, bots probing for open ports, that kind of thing. - Step 6: Keep firmware updated.
Router firmware updates often patch firewall-related vulnerabilities. I set a calendar reminder to check for updates monthly, since most routers don't do this automatically.
Common Mistakes I've Seen (and Made Myself)
Assuming "on" means "working." A firewall that's enabled with default settings isn't doing much. You need to actually look at the rules.
Only worrying about inbound traffic. As mentioned earlier, outbound monitoring is what actually catches infections trying to spread or exfiltrate data.
Disabling the firewall to "fix" a connection problem. I've done this myself out of frustration when a game or app wouldn't connect properly. It's a bad habit — the better fix is creating a specific exception rule for that app instead of turning the whole thing off.
Forgetting about IoT devices. Smart plugs, cameras, and smart TVs often have weak security and can become entry points. Putting them on a separate network segment (many routers now support an "IoT network" option) keeps them isolated from your main devices.
Relying on the firewall alone. A firewall controls traffic, but it won't stop you from clicking a phishing link or downloading a malicious attachment. It works best alongside antivirus software, regular backups, and just being a bit careful about what you click.
A Quick Real-World Example
A friend who runs a small e-commerce store once had his payment processing plugin compromised through a vulnerability. The firewall on his hosting server didn't stop the initial exploit — that part came down to an outdated plugin. But it did stop the attacker's script from establishing an outbound connection to send stolen customer data to an external server. The breach happened, but the damage was contained because outbound rules caught the second half of the attack.
That's the realistic way to think about firewalls. They're not a magic shield that stops everything. They're one solid layer in a system that needs several layers working together.
Final Thoughts
If there's one thing I'd want someone to take from all this, it's that a firewall isn't a "set it and forget it" tool. It needs a bit of attention — checking the settings, updating firmware, separating devices on your network, and actually glancing at the logs once in a while.
It sounds like extra work, but compared to the mess of cleaning up after a real infection, spending twenty minutes configuring things properly is nothing. My cousin's studio has been running clean for over three years now, and the guest network setup alone has probably saved us from at least two potential incidents since then.
Start with what you already have. Check your router's firewall settings today, change any default passwords, and set up a guest network if you haven't already. Small steps, but they genuinely make a difference.

