CompTIA Linux+ (XK0-004) — Question 248
An administrator received a request from a security officer to eliminate a blacklisting set called internal-blocked the company is using in the iptables firewall.
Which of the following commands will complete the task?
Answer options
- A. ipset swap internal-blocked none
- B. ipset destroy internal-blocked
- C. ipset del internal-blocked
- D. ipset remove internal-blocked
Correct answer: B
Explanation
The correct command is 'ipset destroy internal-blocked', which completely removes the specified set. The other options do not fulfill the requirement: 'ipset swap' changes references, 'ipset del' removes entries, and 'ipset remove' is not a valid command for deleting a set.