Firewalls control which network traffic is allowed to reach devices, operating at both the network edge and directly on individual machines. Most modern operating systems include a built-in software firewall that runs automatically without requiring manual setup.
Firewalls
Another piece of software that helps protect your machine is a firewall.
Here's a diagram of a network. We can think of this as our home network, with a bunch of devices on it, and we want to protect those devices. If we were to just have this open to the outside world, anybody could start trying to hack your different devices on this network. So what we do is we include a firewall on the edge of the network that will stop traffic from being able to just enter into your network unless it's actually called for, unless it's actually legitimate traffic.
But the problem is that your computers also have some threats internally, on your local network. If anybody were to ever get onto your local network, then it could cause a problem and people can actually get to your computer. So we have software firewalls that we install on the computer to protect the computer locally.
Most of the machines already have a software firewall installed. So whether you have Linux or Mac or you have Windows, you probably have a firewall that's up and running, and you don't need to do anything about it to get it up and running.
I'm going to click the start button here, and I'm going to type in Windows Firewall. We see Windows Defender Firewall with Advanced Security, and I can open it up. This is the firewall. I won't get really in depth into what this is all doing, but essentially we've got these different rules that either are going to accept or block traffic that are coming through this machine right here.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →