What is Firewall?
A mechanism (a device or software), usually placed at a network boundary, that passes only traffic allowed by predefined rules and blocks everything else. It decides by source and destination IP addresses, port numbers, protocol, direction of traffic and so on. Its main job is to protect an internal network from unauthorized connections from the internet.
Japanese name: ファイアウォール
Firewall appears in 5 practice questions across 3 topics, including Cyber Attacks and Defense in Practice, Cloud and Container Basics, Computer Networking Basics.
Field: Information Security Basics
Placement and the DMZ
A firewall is normally placed where the internet meets the internal network. Servers that outsiders must reach, such as web and mail servers, go in a separate zone called the DMZ (demilitarized zone). Only the necessary ports are opened from the internet to the DMZ, nothing is allowed from the internet to the internal network, and traffic from the DMZ to the internal network is restricted. That way, even if a public server is taken over, the damage is less likely to spread inside. Besides boundary devices, host-based firewalls run on each PC and server.
FAQ
What is the difference between a firewall and a WAF?
A firewall decides which traffic to pass mainly by IP addresses and port numbers. A WAF (web application firewall) inspects the content of permitted web traffic, the HTTP requests, and blocks attacks such as SQL injection. They protect different layers, so they are used together.
Do I still need antivirus if I have a firewall?
Yes. A firewall passes the traffic it allows, so it cannot stop malware arriving through web browsing or email. It has to be combined with endpoint malware protection or EDR and with software updates.