Firewall PBQs: CompTIA Linux+ (XK0-006)
easyQuestion 1 of 3
You are a Linux system administrator hardening a web server's host-based firewall (iptables). The server should only accept HTTPS traffic from any source and SSH from the management network (10.0.0.0/8). Currently, HTTP is also allowed and SSH is open to everyone. Correct the firewall rules to enforce the security policy.
Firewall Rules
| # | Direction | Source | Port | Protocol | Action | Order | |
|---|---|---|---|---|---|---|---|
| 1 | inbound | any | 443 | tcp | allow | ||
| 2 | inbound | any | 80 | tcp | allow | ||
| 3 | inbound | any | 22 | tcp | allow | ||
| 4 | inbound | any | any | any | deny |
Rules are evaluated top to bottom. Use ▲▼ to reorder.
Progress
0 of 3 rules correctEdit or add rules to configure the firewall, then mark complete
0 of 3 marked complete

