Check rule creation

  1. Create a new rule for port 8080. Verify that it has been added to the active rules and then you can delete it.

sudo ufw allow 8080
sudo ufw status numbered

To delete the rule, we must use the command:

sudo ufw delete num_rule

We check that it has been deleted

sudo ufw status numbered

and we see the number of the next rule that needs to be deleted..

Delete the new rule.

sudo ufw delete 5

We check that only the required rules in the subject remain:

sudo ufw status numbered

Last updated

Was this helpful?