- List all rules
sudo ufw status numbered
- Remove Rule
sudo ufw delete [the number of the rule]
- Allow all from some port
sudo ufw allow [the port]
sudo ufw status numbered
sudo ufw delete [the number of the rule]
sudo ufw allow [the port]