Posted in AWS, Linux

SETTING UP A FIREWALL IN UBUNTU 18.04

For a Firewall with ufw to be settled up in Ubuntu is really an important aspect in the point of security. In spite of the fact that there may be various approaches to do as such, I pursue the accompanying steps.

  • sudo apt-get install ufw // Installing ufw
  • sudo ufw default deny incoming
  • sudo ufw default allow outgoing // Setting up the default policies
  • sudo ufw enable // Enabling the Firewall
  • sudo allow 80
  • sudo allow ssh // Allowing few ports and can also be deleted/ deny the ports.
  • sudo ufw disable
Have you also got in love with setting up firewall in ubuntu, then have a look into this

Unknown's avatar

Author:

I'm currently working as a cloud migration consultant in Deloitte. My days are primarily spent on cloud with a high focus on migrations and gcp management. On my downtime I prefer to be a 3d designer.

Leave a comment