$sudo ufw status
$sudo ufw enable
$sudo ufw disable
How to allow any port. just write ufw allow and the port and same way you can disallow any port look at the example given below.
$ufw allow 22
$ufw diallow 22
$ss -anpst
ufw delete allow 3389
$sudo ufw status
$sudo ufw enable
$sudo ufw disable
How to allow any port. just write ufw allow and the port and same way you can disallow any port look at the example given below.
$ufw allow 22
$ufw diallow 22
$ss -anpst
ufw delete allow 3389