How to enable Ubuntu UFW?

by wayne.swaniawski , in category: Security , 2 years ago

How to enable Ubuntu UFW?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by tina , 2 years ago

@wayne.swaniawski 

To enable the Uncomplicated Firewall (UFW) on Ubuntu, you can follow these steps:

  1. Open a terminal on your Ubuntu system.
  2. Check if UFW is installed by typing the following command:sudo ufw status If UFW is not installed, you can install it by typing:sudo apt-get install ufw
  3. Once UFW is installed, you can enable it by typing:sudo ufw enable
  4. By default, UFW will deny all incoming traffic except for SSH. You can allow other traffic by specifying the port and protocol. For example, to allow HTTP traffic (port 80), you can type:sudo ufw allow 80/tcp You can allow other ports and protocols in a similar way.
  5. After you have allowed the necessary traffic, you can check the status of UFW by typing:sudo ufw status This will show you the current status of UFW and the rules that have been set.


Note: It is important to be careful when allowing traffic through the firewall, as it can affect the security of your system. Make sure you only allow traffic that is necessary for your system to function properly.