How to add comments to iptables rules on Linux
To add comments to iptables rules on Linux, you can use the -m comment option. For example, to add a comment “Allow SSH” to an iptables rule that allows incoming traffic on port 22 (the default port for SSH), you can use the following command: iptables -A INPUT -p tcp –dport 22 -m comment –comment … Read more