Now you'll see only your input rules: -P INPUT DROP You can filter to only the types of rule you want to display by writing the chain name after your -S flag. Your list will be presented in this format instead: -N ufw-skip-to-policy-forward For this you can use the -S flag: iptables -S More useful perhaps is listing the rules by their function or specification. This will output a simple table such as: Chain ufw-skip-to-policy-forward (0 references)Ĭhain ufw-skip-to-policy-input (7 references)Ĭhain ufw-skip-to-policy-output (0 references) Listing all iptables rules is quite simple. In this quick guide, we're going to show you several ways to do just that. One of its key functions, however, is its ability to list the rules that have already been created and are active. Command-line utility iptables allows users to configure and view information about their firewall.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |