Report this

What is the reason for this report?

sudo ufw status return 'inactive'

Posted on March 27, 2018

Trying to set up Nginx in Ubuntu 16.04 following the tutorial given in https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04 everyhting is fine but running the command

sudo ufw status

gives inactive.

What is wrong?

Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

thank you all that worked for me!!

Alternatively instead set up everything you can just use Ubuntu image with LEMP: droplets> destroy> rebuild> choose Ubuntu LEMP > REBUILD

However I face problem that UFW firewall NOT WORKING AT ALL for ubuntu images 16 (with docker) and 17 : https://www.digitalocean.com/community/questions/ubuntu-ufw-firewall-not-working-at-all-2

If you found some solution can you test that UFW really works in your case and give me some info?

Alternative2> Instead of UFW you can use Network Firewall accesed by diitalocean web panel

sudo ufw enable sudo ufw status

eso funciono para mi

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.