sudo ufw status return ‘inactive’

Trying to setup NGINX on ubuntu 18x

but while doing firewall setting, getting inactive status

How to fix this..?

Asked on May 18, 2020 in Linux.
Add Comment
1 Answer(s)

First, check your current UFW status:

$ sudo ufw status
Status: inactive

Activate UFW:
$ sudo ufw enable
Firewall is active and enabled on system startup

(optional) Check UFW status:
$ sudo ufw status
Status: active

Answered on May 18, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.