DEV Community

Dalitso Kasonde
Dalitso Kasonde

Posted on

-bash: ufw: command not found (ubuntu 18.04)

UFW - Uncomplicated Firewall

Please note this tutorial is used in configuring the ufw for an ubuntu 18.04 server

  1. Check whether ufw is installed or enabled by typing the following command : sudo ufw enable

  2. If error still prevails install ufw by typing :
    sudo apt-get install ufw

  3. Check status of ufw by typing : sudo ufw status

4.If status show inactive type : sudo ufw enable

NB - after activating ufw ensure that ssh is enable to allow you to access your server through ssh.

Top comments (5)

Collapse
 
maprangsoft profile image
Maprangsoft

thank you.

Collapse
 
rordan1 profile image
R o r d a n ♨️

my man

Collapse
 
dklous profile image
Daniel Klous

thanks

Collapse
 
fagnerlaselva profile image
Fagner La Selva Mendes

valeu

Collapse
 
gokgokay profile image
Gökay Gök

this does not work on macOS terminal :/