Linux Fundamentals · lesson 14 of 15 · 15 min
Firewall with ufw
summary: A host firewall controls traffic to and from one system. Define the required service and use the narrowest rule possible. Verify that legitimate access still works after a change.
question: What is the safest firewall approach?
options:
- Allow only required traffic
- Allow all ports
- Disable the firewall
- Block all logging
correct: Allow only required traffic
explanation: Allowing only what is needed reduces exposure.
Previous lesson: Hardening user accounts
Back to Linux Fundamentals
Next lesson: Log analysis basics