Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux 101: Uncomplicated Firewall
You can easily set local firewall without any advanced knowledge of networking simply by using Uncomplicated Firewall (UFW). This package is preinstalled on Ubuntu.

Basic steps to set up...

Set default rules:

sudo ufw default deny incoming
sudo ufw default allow outgoing

Example rules for basic services:

sudo ufw limit OpenSSH
sudo ufw allow http
sudo ufw allow https
sudo ufw allow mysql

Set logging:

sudo ufw logging on

Disable IPv6 if not used:

sudo nano /etc/default/ufw

Insert line:


Enable firewall:

sudo ufw enable

Check status of firewall:

sudo ufw status verbose

Forum Jump:

Users browsing this thread: 1 Guest(s)