CompTIA
XK0-004 · Question #105
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new servi
The correct answer is B. iptables -A INPUT -p tcp --dport 443 -j ACCEPT. root@ubuntu:/boot/grub# iptables -I INPUT --dport 443 -j ACCEPT iptables v1.8.4 (legacy): unknown option "--dport" Try `iptables -h' or 'iptables --help' for more information
Security
Question
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?
Options
- Aiptables -I OUTPUT -p tcp --sport 443 -j ACCEPT
- Biptables -A INPUT -p tcp --dport 443 -j ACCEPT
- Ciptables -I INPUT --dport 443 -j ACCEPT
- Diptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
How the community answered
(57 responses)- A2% (1)
- B82% (47)
- C5% (3)
- D11% (6)
Explanation
root@ubuntu:/boot/grub# iptables -I INPUT --dport 443 -j ACCEPT iptables v1.8.4 (legacy): unknown option "--dport" Try `iptables -h' or 'iptables --help' for more information
Topics
#iptables#firewall rules#HTTPS#port 443
Community Discussion
No community discussion yet for this question.