CertNova
Menu
← Back to PBQ types

Firewall PBQs: CompTIA Linux+ (XK0-006)

easy

Question 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

#DirectionSourcePortProtocolActionOrder
1inboundany443tcpallow
2inboundany80tcpallow
3inboundany22tcpallow
4inboundanyanyanydeny

Rules are evaluated top to bottom. Use ▲▼ to reorder.

Progress

0 of 3 rules correct

Edit or add rules to configure the firewall, then mark complete

0 of 3 marked complete