A firewall is a security system that filters incoming and outgoing network traffic based on rules. It helps protect your computer (and home network) from unwanted connections.
This guide explains firewall types, what they protect you from, and safe baseline configuration steps for Windows, Mac and your router in 2026.
π Table of Contents
π§ What a firewall is
A firewall watches network connections and decides whether to allow or block them. Common rules are based on:
- source/destination IP addresses
- ports (e.g., web 80/443)
- protocols (TCP/UDP)
- user/application identity
Warning: opening ports or allowing βanywhereβ access can increase risk. Use least exposure unless you truly need it.
π§© Main types of firewalls
- Host firewall: runs on your computer/phone.
- Network firewall: protects the entire router/network.
- Next-generation (NGFW): adds deeper inspection and threat features.
- Application-aware firewalls: filter per app.
π‘οΈ What firewalls protect against (and what they don't)
- help block unsolicited inbound connections
- reduce exposure to scanning and basic attacks
- do not replace antivirus or 2FA
- cannot stop all phishing or credential theft
For login-layer defense, use: 2FA guide.
πͺ Windows firewall basics
- Ensure the firewall is enabled.
- Allow apps only when you trust them.
- Review inbound rules and remove unnecessary exceptions.
π Mac firewall basics
- Enable the built-in firewall.
- Prefer allowing connections only for known apps.
- Review prompts and never allow unknown installers to open access.
πΆ Router firewall and home network
- Keep router firmware updated.
- Use strong router admin credentials.
- Disable unnecessary remote administration.
- Apply safe WiFi settings (WPA3, disable WPS): WiFi Security in 2026.
β‘ Build layered home security
Firewalls help with network exposure. Combine them with safe browsing and 2FA.
π Safe Browsing Tips