Install and Configure UFW Firewall

Guide to installing and configuring the UFW firewall.

UFW firewalls are easier than most other firewalls. Because it is easier to read and very easy to execute. Available on Debian and Ubuntu.

Proses Install UFW

# apt install ufw

# systemctl enable ufw

UFW Configuration

To add port 8288 to the UFW then :

# ufw allow 8288

Or want to add a website port to UFW then :

# ufw allow http
# ufw allow https

or it could be

# ufw allow 80
# ufw allow 443

Deaktivasi Firewall UFW

To disable the UFW firewall then :

# systemctl stop ufw

# systemctl disable ufw

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.