A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?

QuestionsCategory: XK0-005A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?
Admin Staff asked 6 months ago
A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?

A. iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT

B. iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT

C. iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT

D. iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT








 

Suggested Answer: B

Community Answer: B



This question is in XK0-005 CompTIA Linux+ Exam
For getting CompTIA Linux+ Certificate



Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by CompTIA. 
Trademarks, certification & product names are used for reference only and belong to CompTIA.
The website does not contain actual questions and answers from CompTIA's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.