Set up a Firewall with UFW on Ubuntu | Linux Today

Set up a Firewall with UFW on Ubuntu

Written By
R
Rosehosting
Nov 16, 2016

If you have an Ubuntu server and you like to control the incoming and outgoing network traffic you need to configure the firewall that is included with your system. Linux kernel includes the netfilter subsystem which is a system for packet filtering. The traditional interface for manipulating netfilter is via iptables, which is primarily a database of firewall rules. The Uncomplicated Firewall or ufw is a frontend for iptables and it makes the iptables firewall configuration and blocking IP addresses much easier. In this guide, we will show you how to set up a firewall using UFW on a Linux VPS running Ubuntu 16.04 as an operating system. Before you start, you should make sure that ufw is installed and running on your server. If not, you can use the apt package manager to install it.

R

Rosehosting

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.