Monday, June 16, 2014

Deleting a UFW rule in Ubuntu?

How to delete a ufw rule in Ubuntu?


You could just do a "sudo ufw delete ####" and the role would be deleted. 

But how could you get the rule number?

You simply do a "sudo ufw status numbered", this would display you the role number on the left most of the list. Doing just the "sudo ufw status" won't display the rule number.

When you have the rule number already, you could call the "sudo ufw delete  ####" (specifying the rule number from the list)

Hope this helps!

No comments:

Post a Comment