Check rule creation
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_ruleWe check that it has been deleted
sudo ufw status numberedand we see the number of the next rule that needs to be deleted..

Delete the new rule.
sudo ufw delete 5We check that only the required rules in the subject remain:
sudo ufw status numberedLast updated
Was this helpful?