User Tools

Site Tools


Sidebar

ternet:servers:inventory:set_up_firewall_with_ufw_on_ubuntu_server

STEPS ON HOW TO SET UP A FIREWALL WITH UFW ON UBUNTU TO TERNET SERVERS

Introduction

UFW, or Uncomplicated Firewall, is an interface to iptables that is geared towards simplifying the process of configuring a firewall.

This tutorial will show you how to set up a firewall with UFW on Ubuntu 18.04.

Prerequisites

To follow this tutorial, you will need:

UFW is installed by default on Ubuntu. If it has been uninstalled for some reason, you can install it with sudo apt install ufw.

Step 1 — Making Sure IPv6 is Enabled

In recent versions of Ubuntu, IPv6 is enabled by default. In practice that means most firewall rules added to the server will include both an IPv4 and an IPv6 version, the latter identified by v6 within the output of UFW’s status command. To make sure IPv6 is enabled, you can check your UFW configuration file at /etc/default/ufw. Open this file using nano or your favorite command line editor:

ternet/servers/inventory/set_up_firewall_with_ufw_on_ubuntu_server.txt · Last modified: 2021/10/13 11:08 by winluth