UniFi Tutorials

Configure Unifi Controller Ports On Ubuntu 20.04

In this tutorial you will be shown how to configure Ubuntu 20.04’s Uncomplicated Firewall (ufw) with the necessary Unifi Controller ports. 

Lets Get Started

  1. First make sure that you have already have your Unifi Controller Installed and working.
  2. Log into your Ubuntu 20.04 using putty via SSH.
  3. We will now configure a proper firewall with rules for your Ubuntu 20.04 Server. We will be using the Uncomplicated Firewall (ufw). Before we turn on the firewall lets add some ports to the firewall rules.
sudo ufw allow 22
sudo ufw allow 8080
sudo ufw allow 8880
sudo ufw allow 8443
sudo ufw allow 80
sudo ufw allow 443
sudo ufw allow 3478/udp
sudo ufw allow 10001/udp
sudo ufw allow 6666/udp
sudo ufw allow 47763/udp

4. Now that we have the rules in place we can enable the ufw firewall and set it to auto start.

sudo systemctl enable ufw
sudo ufw enable

5. All finished. 

If you have any questions about the configuration or run into any issues please feel free to contact me.

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.