Cybersecurity glossary
Firewall
A firewall is a filter that allows or blocks network traffic according to rules about where it comes from, where it is going and which port and protocol it uses.
Rules are read in order and the first match usually wins, so the order matters. A good rule set ends by blocking everything that was not allowed above it.
A firewall only sees traffic that passes through it. Two machines on the same network segment talk past it, which is why host firewalls on each machine and segmentation are added.
Learn it hands-on
These free lessons teach it with commands to run in a lab of your own and checked tasks. Read them whole with no account.