ProxyZen

What is a firewall and how does it work

28 November 2026 · 3 min read

What a firewall is, how it filters traffic, the difference between hardware, software and cloud firewalls, and what to do when it blocks a proxy or an app.

A firewall is a filter between your device or network and the internet. It checks every connection against a set of rules and decides whether to let it through or block it.

What a firewall protects from

  • Incoming connections nobody asked for: port scans, attempts to reach open services.
  • Malware that tries to connect to its servers.
  • Access to unwanted websites or services inside a company network.

How it decides

The firewall looks at:

  • IP addresses of the source and destination;
  • ports (80 and 443 for websites, 22 for SSH and so on);
  • protocol (TCP, UDP, ICMP);
  • connection state: is this a reply to your own request, or a new incoming connection?
  • in advanced firewalls, also the application and the content of traffic.

A typical home rule is simple: everything outgoing is allowed, incoming connections only as replies to your own requests.

Types of firewalls

  • Software — built into the system: Windows Defender Firewall, the macOS firewall, ufw/iptables/nftables on Linux.
  • Hardware — in the router or a separate device; protects the whole network.
  • Cloud and WAF — protect websites: they filter attacks and bots before traffic reaches the server.
  • Next-generation firewalls (NGFW) — recognize applications and inspect content; used in companies.

Firewall vs antivirus vs proxy

  • An antivirus looks for malicious files on the device.
  • A firewall controls network connections.
  • A proxy forwards your traffic and changes the IP that websites see. It does not protect the device by itself. More in “What is a proxy server”.

When the firewall blocks a proxy or an app

Signs: the app cannot connect, the browser works but a specific program does not, errors like “connection refused” or timeouts.

  1. Windows: Control Panel → Windows Defender Firewall → “Allow an app through firewall” → add the program (Proxifier, the antidetect browser, a scraper).
  2. macOS: System Settings → Network → Firewall → Options → allow incoming connections for the app.
  3. Corporate network: outgoing connections to non-standard ports may be closed. Ask the administrator or use a proxy port that is allowed.
  4. Check whether the proxy port is reachable with the port check tool, and the proxy itself with the proxy checker.

Summary

A firewall is a set of rules for network connections. Keep it on; if it blocks a needed program, add an exception for that program instead of turning protection off completely.

Try ProxyZen

Private IPv4 and IPv6 for 3 to 90 days, residential and mobile per GB. Instant delivery, HTTP(S) and SOCKS5.

Trustpilot Write a review