Security

An administrator has a ruleset saved with iptables-save in /etc/iptables.rules. The system is moving to nftables, and the administrator wants the existing rules converted to nftables syntax. Which command should be used?

Show the answer

Correct answerD. iptables-restore-translate -f /etc/iptables.rules

iptables-restore-translate reads an iptables-save file and outputs equivalent nft commands. nft -f loads a file that is already in nft syntax, so it would fail on iptables-save format. ipset restore only handles ipset data.