Delete UFW Rule by Number

Removes a UFW rule by number (from ufw status numbered). Using numbers is more reliable than repeating the rule text, especially for complex from/to rules.

When you need this: When revoking a port or IP rule that is no longer needed.

Variables

Command


        
3 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.