New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 2 Question 61 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 61
Topic #: 2
[All XK0-005 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

To allow SFTP (which uses port 22, same as SSH) from a specific subnet using UFW, the most specific and correct syntax is:

bash

sudo ufw allow from 10.10.0.0/24 to any port 22

This allows traffic from a specific subnet to port 22, which is what's required.

Option B allows traffic on an interface but is not limited to the subnet.

Option C is incomplete --- it allows all ports from the subnet.

Option D is malformed syntax --- 0:22/tcp is not a valid port range or UFW format.


''UFW rules can be configured to restrict access by IP range and port. For SFTP, allow port 22 specifically from the required subnet.''

Contribute your Thoughts:

0/2000 characters
Darrel
3 days ago
D looks good too, but A is definitely the way to go. I wonder if the admin has their coffee ready for this configuration session.
upvoted 0 times
...
Shawnda
8 days ago
I agree, A is the way to go. Gotta love those SFTP servers, they're like the secret agents of the networking world.
upvoted 0 times
...
Ben
13 days ago
A is the correct answer. Allowing access to port 22 from the 10.10.0.0/24 network is the way to enable SFTP connectivity.
upvoted 0 times
...
Billye
18 days ago
I’m leaning towards option A as well, but I wonder if there’s a better way to specify the protocol in the command.
upvoted 0 times
...
Henriette
24 days ago
I feel like option B could work, but it doesn't limit the access to just the 10.10.0.0/24 network, which seems less secure.
upvoted 0 times
...
Arlie
29 days ago
I remember practicing a similar question where we had to allow specific IP ranges, and I think option C might be too broad since it doesn't specify the port.
upvoted 0 times
...
Malcolm
1 month ago
I think option A sounds right since it specifies the source network and the port for SFTP, but I'm not entirely sure if the syntax is correct.
upvoted 0 times
...
Terrilyn
1 month ago
Ah, I've got it! The answer is option D - it allows TCP traffic on port 22 from the 10.10.0.0/24 network. That's the best way to enable SFTP connectivity.
upvoted 0 times
...
Mindy
1 month ago
I'm a bit confused on this one. I know it's about the firewall, but I'm not sure which command would be the most appropriate. I'll have to think it through carefully.
upvoted 0 times
...
Sheldon
2 months ago
Okay, I remember learning about this in class. I think the answer is option A - it allows access to port 22 from the 10.10.0.0/24 network.
upvoted 0 times
...
Kanisha
2 months ago
Hmm, let me think this through. I'm pretty sure it has to do with the 'ufw' command, but I'm not sure which option is the best one.
upvoted 0 times
...
Carole
2 months ago
I think I know this one - it's about setting up the firewall to allow SFTP access from the 10.10.0.0/24 network.
upvoted 0 times
...

Save Cancel