nerdexam
CompTIA

XK0-004 · Question #175

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 fr

The correct answer is 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 For example, to delete all of the rules in the INPUT chain, run this command: sudo iptables -F INPUT

Security

Question

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.)

Options

  • Aiptables -F
  • Biptables -L
  • Ciptables -I
  • Diptables -C
  • Eiptables -A
  • Fiptables -N

How the community answered

(71 responses)
  • A
    86% (61)
  • C
    1% (1)
  • D
    7% (5)
  • E
    4% (3)
  • F
    1% (1)

Explanation

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 For example, to delete all of the rules in the INPUT chain, run this command: sudo iptables -F INPUT

Topics

#iptables#firewall rules#flush#list rules

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice