CompTIA
XK0-006 · Question #79
A systems administrator is working on an SFTP server configuration. Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?
The correct answer is A. sudo ufw allow from 10.10.0.0/24 to any port 22. The command sudo ufw allow from 10.10.0.0/24 to any port 22 explicitly opens TCP port 22 (used by SFTP/SSH) only for hosts in the 10.10.0.0/24 network.
Security
Question
A systems administrator is working on an SFTP server configuration. Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?
Options
- Asudo ufw allow from 10.10.0.0/24 to any port 22
- Bsudo ufw allow in on eth0 to any port 22
- Csudo ufw allow from 10.10.0.0/24
- Dsudo ufw allow 0:22/tcp from 10.10.0.0
How the community answered
(26 responses)- A81% (21)
- B12% (3)
- C4% (1)
- D4% (1)
Explanation
The command sudo ufw allow from 10.10.0.0/24 to any port 22 explicitly opens TCP port 22 (used by SFTP/SSH) only for hosts in the 10.10.0.0/24 network.
Topics
#ufw#firewall rules#SFTP#network access control
Community Discussion
No community discussion yet for this question.