Turn on the firewall
ufw enable
Turn off the firewall
ufw disable
Allow all connection by default
ufw default allow
Deny all connection by default
ufw default deny
Current status and rule
ufw status
Allow traffic on port
ufw allow port
Deny port
ufw deny port
Block ip address
ufw deny from ip
Related Articles:
Install My-Sql in Ubuntu
Ubuntu Make IP Static
Install Java in Linux
Share this: