exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 163 discussion

Actual exam question from CompTIA's XK0-004
Question #: 163
Topic #: 1
[All XK0-004 Questions]

A Linux administrator is updating iptables rules and is given the following tasks:
✑ Output a list of iptables rules.
✑ Remove all iptables rules.
Which of the following actions should be performed from the terminal console to accomplish these tasks? (Choose two.)

  • A. iptables -F
  • B. iptables -L
  • C. iptables -I
  • D. iptables -C
  • E. iptables -A
  • F. iptables -N
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️
Reference:
https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DiaaEmara
2 years, 5 months ago
Listing Rules as Tables Listing the iptables rules in the table view can be useful for comparing different rules against each other. To output all of the active iptables rules in a table, run the iptables command with the -L option: sudo iptables -L Flushing a Single Chain To flush a specific chain, which will delete all of the rules in the chain, you may use the -F, or the equivalent --flush, option and the name of the chain to flush. For example, to delete all of the rules in the INPUT chain, run this command: sudo iptables -F INPUT Flushing All Chains To flush all chains, which will delete all of the firewall rules, you may use the -F, or the equivalent --flush, option by itself: sudo iptables -F
upvoted 1 times
...
pinonino
2 years, 11 months ago
Absolutely agree answers are A and B
upvoted 3 times
...
Dan_Dan_The_Data_Center_Man
3 years, 6 months ago
Correct Answers: A. iptables -F B. iptables -L Listing Rules as Tables To output all of the active iptables rules in a table, run the iptables command with the -L option: sudo iptables -L Flushing Chains For example, to delete all of the rules in the INPUT chain, run this command: sudo iptables -F INPUT
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago