Firewall
security
A firewall filters network traffic by rules — which ports, addresses and protocols may pass. On servers it is the first gate; a web application firewall adds content-level inspection above it.
Default-deny inbound except the ports you actually serve: 80, 443, and SSH restricted to management ranges.
A database port left closed at the firewall is unreachable to scanners no matter what the app does.
Related topics
Frequently asked question
What is Firewall?
A firewall filters network traffic by rules — which ports, addresses and protocols may pass. On servers it is the first gate; a web application firewall adds content-level inspection above it. Default-deny inbound except the ports you actually serve: 80, 443, and SSH restricted to management ranges.
Read the full answer