Problem Statement
Which command lists all current firewall rules in iptables?
Explanation
iptables -L displays all firewall rules applied to INPUT, OUTPUT, and FORWARD chains.
It’s used for fine-grained control over packets and ports.
Code Solution
SolutionRead Only
sudo iptables -L -v -n
Practice Sets
This question appears in the following practice sets: