A network firewall is a security filter that sits between your network and the internet. It checks the traffic going into and out of your network against a set of rules, lets through what the rules allow and blocks the rest. So instead of every computer, printer and server being open to the internet, all traffic has to pass the firewall first.
What does a firewall do?
A firewall stops unauthorised access to your network. It filters what reaches your devices, so malicious traffic and connections your rules don't allow are blocked at the door. It also filters the traffic that leaves your network, so it can stop outgoing connections you haven't allowed.
One set of rules covers every device behind the firewall. Each laptop, phone and printer gets the same protection, because its traffic passes the firewall before it reaches the device. That makes a network firewall especially useful in an office where many computers and servers share one network.
The name comes from buildings, where a firewall is a wall that slows the spread of a fire. A network firewall plays the same part for harmful traffic, stopping it at the edge of your network before it reaches the devices behind it.
How does a network firewall work?
A network firewall works from a list of rules, often called an access control list. Each rule says which traffic may pass and which is blocked. Data travels in small pieces called packets, and the firewall allows or blocks each packet according to these rules.
A rule usually checks a few details of each packet. It looks at the IP address the packet comes from and goes to, and at the port. The port tells a computer what service the traffic is for. It also checks the protocol, the format the data travels in. So a rule can let visitors reach your web server and keep outside connections away from your office computers.
A safe set of rules starts from "deny by default", so only the traffic you explicitly allow gets through. That way a service you forgot about doesn't stay open to the internet. The rules are set by whoever manages the network, which in a small business is often you or your IT provider.
Network firewall or host-based firewall
A firewall can protect a whole network or a single device. A network firewall sits at the edge of a network, while a host-based firewall runs on the device it protects.
| Network firewall | Host-based firewall | |
|---|---|---|
| Where it sits | Between your network and the internet | On one computer |
| What it protects | The devices on the network | The device it runs on |
| Hardware or software | Dedicated hardware, software or a virtual firewall | Software |
| Example | A firewall between an office network and the internet | Windows Firewall or the firewall on a Mac |
You can use both at once. The network firewall filters traffic at the edge of the network. The firewall on each computer adds a second layer that controls the traffic to and from that one device.
Types of network firewall
Network firewalls differ in how closely they look at the traffic, from the details on each packet to what the traffic actually says.
- Packet filtering firewall: checks each packet on its own, by its IP addresses, ports and protocol. It can't read what a message inside a packet says, so its protection is limited.
- Stateful inspection firewall: filters on the same details but also keeps track of the connections that are open. It blocks packets that don't fit the connection they claim to belong to.
- Proxy firewall: stands between your network and the outside and makes the connections on your devices' behalf. Because it reads the content of the traffic, it can filter on much more than addresses and ports.
- Next-generation firewall (NGFW): combines a traditional firewall with intrusion prevention, and some are built to spot specific threats such as advanced malware.
- Web application firewall (WAF): protects a website rather than an office network. It applies its rules to the web traffic going to your site to stop attacks such as SQL injection and cross-site scripting.
What is a domain network firewall?
A domain network firewall is the host-based Windows Firewall with the rules for your work network. "Domain network" is one of the three network profiles of Windows Firewall: domain, private and public. Windows applies the domain profile automatically when your computer is joined to your organisation's Active Directory domain and can reach its domain controller. You can't set it by hand. The domain profile is for a work computer your organisation manages, and this "domain" has nothing to do with your website's domain name.
The private profile is for networks such as your home network. The public profile, built with higher security in mind, is for places like coffee shops, airports and hotels.
To see which profile your computer is using and whether the firewall is on for it, open the Windows Security app and choose Firewall & network protection. Microsoft's guide to Windows Firewall explains what you see there. If an app you need is blocked, allow that app through the firewall instead of switching the firewall off. On a work computer, your employer's settings might stop you from changing any of this.
How to choose a firewall for your business
Start with the firewall you already have. Windows Firewall is included with Windows and enabled by default. A Mac has a firewall of its own. From macOS Ventura, you turn it on in System Settings under Network, and on older versions under System Preferences, Security & Privacy. Apple's guide to the Mac firewall shows the steps.
Our advice: turn on the built-in firewall on each of your computers, or leave it on where it already is. Once several computers, a server or a shared printer sit on one office network, add a network firewall at its edge as well. Your computers then keep their own protection, and the whole office shares one set of rules at the door.
That network firewall can be a dedicated device, software or a virtual firewall, placed where your office network connects to the internet. If you manage the network yourself, start with your router. Its manual or your broadband provider's help pages tell you whether it has a firewall built in and switched on. Otherwise, ask your IT provider to set up the network firewall and write its rules. They can also tell you whether the equipment that connects your office to the internet already does this job.
Your website needs protection of its own as well. With our web hosting, it sits on servers with a web application firewall and protection against DDoS attacks. Our guide explains how to keep your website secure.
Protect your website on the server itself: our hosting comes with a web application firewall, DDoS protection and DNSSEC.
See hosting plansA firewall is one layer of protection. If malware slips past it, you still need antivirus software to find and remove it. Keep your software up to date too, because updates stop cybercriminals using weak spots in it to get in.
Firewalls are also one of the five technical controls of Cyber Essentials, the minimum standard of cyber security the UK government recommends for organisations of every size. If you work for other organisations, this matters, because some ask their suppliers to be certified before they can bid for work.
Now you know what a network firewall does, start by checking that the firewall is on for each of your computers. Then turn to your website and compare our hosting plans.
Recommended reading
Website SecurityNov 6, 2026"Your connection is not private": what it means and how to fix it
"Your connection is not private" means your browser couldn't trust a site's certificate. See when it's safe to continue and how visitors and site owners fix it.
Website SecurityAug 11, 2026Does your website need a cookie banner?
Find out when a cookie banner is required, the legal requirements that apply, and how you can easily make your website GDPR-compliant.
Website SecurityJul 13, 2026What is domain theft and how do you protect your domain?
Learn what domain theft and domain hijacking means and how to protect your domain from external threats.
