configure unifi security gateway

Configure Unifi Security Gateway: Best Practices

By David Lewis
AD

Securing your network is paramount in today's connected world, and Ubiquiti's UniFi Security Gateway (USG) is a robust solution for achieving this. Configuring a USG involves several steps, from initial setup to advanced security settings. This guide will walk you through the process of configuring your UniFi Security Gateway for optimal network security.

Before we dive in, ensure you have the following ready: your USG device, an Ethernet cable, and a computer with a web browser. You'll also need to know your network's details, such as IP address range and router's current password.

Initial Setup

The initial setup of your USG involves connecting it to your network and accessing its management interface.

AD
How To: Deploying a Ubiquiti UniFi Home Network including Multiple WiFi Access Points (Part 1) - Free Time
How To: Deploying a Ubiquiti UniFi Home Network including Multiple WiFi Access Points (Part 1) - Free Time
the router is white and has four ports on each side, with two green lights
the router is white and has four ports on each side, with two green lights
How To: Ubiquiti UniFi Security Gateway Pro 4 & Intrusion Prevention (IPS) - Free Time
How To: Ubiquiti UniFi Security Gateway Pro 4 & Intrusion Prevention (IPS) - Free Time

Plug one end of the Ethernet cable into your computer and the other into the USG's LAN port (not the WAN port). Connect the USG to power and turn it on. Open a web browser on your computer and navigate to 192.168.1.1, which is the default IP address of the USG.

Accessing the USG Web Management Interface

On the login page, you'll need to enter the USG's username and password. The default credentials are 'ubnt' for both. After logging in, you'll be greeted by the USG's web management interface, called the UniFi Controller.

Ubiquiti Networks UniFi Solutions for Secure Business Networking
Ubiquiti Networks UniFi Solutions for Secure Business Networking
Google Cloud Expands Unified Security Program with Okta, SailPoint, Palo Alto Partners
Google Cloud Expands Unified Security Program with Okta, SailPoint, Palo Alto Partners
Configure VLANs on UniFi Switches for Secure Segmentation
Configure VLANs on UniFi Switches for Secure Segmentation

To change the default password, click on 'Settings' in the left-hand menu, then 'System Settings'. Here, you can enter and confirm your new password.

Configuring the WAN Settings

The WAN settings are used to connect your USG to the internet. If your modem provides a DHCP server, the USG can automatically obtain the WAN IP address. In this case, choose 'Dynamic' IP type. If your modem uses static IPs, choose 'Static' and fill in the necessary information.

AD

Once you've selected the appropriate IP type, click 'Apply' to save the changes. The USG might reboot during this process.

Considerations for Optimal Wireless Mesh Networks
Considerations for Optimal Wireless Mesh Networks
What is an Internet Gateway (IGW)? 🌐 | AWS Networking Explained for Beginners
What is an Internet Gateway (IGW)? 🌐 | AWS Networking Explained for Beginners
UniFi Cloud Gateways - Tech Specs
UniFi Cloud Gateways - Tech Specs
Ubiquiti's UniFi Express: A Review of the Compact Gateway and WiFi 6 AP
Ubiquiti's UniFi Express: A Review of the Compact Gateway and WiFi 6 AP
Unifi Home Network
Unifi Home Network
How to Install and Configure Unifi Controller on Raspberry Pi?
How to Install and Configure Unifi Controller on Raspberry Pi?

Basic Security Settings

After the initial setup, it's time to configure basic security settings on your USG.

In the UniFi Controller, go to 'Wireless' in the left-hand menu. Here, you can create a new network by clicking the '+' icon. Enter a Network Name (SSID) and choose a channel for your wireless network.

AD

Enabling Strong Encryption

To secure your wireless network, you should enable strong encryption. Select 'WPA2 Enterprise' as the Authentication Mode. This requires clients to authenticate with a central server, adding an extra layer of security.

How to backup your Unifi Dream Machine (Pro) config automatically with Synology or any other UNIX device
How to backup your Unifi Dream Machine (Pro) config automatically with Synology or any other UNIX device
2021 Complete Unifi Setup Guide
2021 Complete Unifi Setup Guide
a diagram showing how to set up an equip router for the internet
a diagram showing how to set up an equip router for the internet
Ubiquiti UniFi AC LR Dual-Radio Access Point with Security Gateway Router and UniFi Ethernet Switch
Ubiquiti UniFi AC LR Dual-Radio Access Point with Security Gateway Router and UniFi Ethernet Switch
2022 Complete Unifi Setup Guide
2022 Complete Unifi Setup Guide
HOW TO INSTALL UNIFI CONTROLLER | CARA INSTALL UNIFI CONTROLLER DI WINDOWS PART 1
HOW TO INSTALL UNIFI CONTROLLER | CARA INSTALL UNIFI CONTROLLER DI WINDOWS PART 1

In the 'Security Key' field, enter a strong password for your wireless network. This password should be different from your USG's management password.

Creating a Guest Network (Optional)

If you want to create a separate network for guests, click the '+' icon again to create a new network. Name this network something like 'Guest Network'. Set the 'WPA2 Enterprise' mode to 'Open' to allow guests to connect without a password. However, this network should not have access to the same resources as your main network.

AD

Remember to apply these settings by clicking the 'Apply' button. Your USG might reboot during this process.

Updating the USG Firmware

Ubiquiti regularly releases firmware updates for the USG that include security patches and new features. To ensure your USG is secure, always keep its firmware up-to-date.

Navigate to 'Settings' in the left-hand menu, then 'Firmware'. Here, you can see the current firmware version and check for updates. If an update is available, click 'Update' to install it. This process might take a few minutes.

Advanced Security Settings

For those seeking an extra layer of security, the USG offers advanced settings like a firewall and IDS/IPS protection.

The UniFi Security Gateway includes a stateful inspection firewall that can be configured to restrict traffic based on various factors. Go to 'Firewall' in the left-hand menu to access these settings.

Configuring the Firewall

Here, you can configure rules to allow or deny traffic based on factors like source IP, destination IP, protocol, and port. For instance, you might want to allow SSH connections to your network from a specific IP, but deny all others.

Create a new rule by clicking the '+' icon. Fill in the appropriate fields, then click 'Apply'. Be careful when configuring firewall rules, as incorrect settings can block necessary traffic.

Enabling IDS/IPS Protection

The USG includes an Intrusion Detection System (IDS) and Intrusion Prevention System (IPS). Unlike the firewall, which blocks traffic based on rules, IDS/IPS uses predefined rules to detect and prevent threats in real-time.

To enable IDS/IPS, go to 'Security' in the left-hand menu, then 'Intrusion Detection'. Here, you can choose which threats to detect and prevent. To apply these settings, click the 'Apply' button.

And there you have it! Your UniFi Security Gateway is now configured for optimal network security. Regularly review and update your settings as needed to maintain this robust security posture. Next, consider exploring advanced UniFi features like automated firmware updates and remote access for even greater convenience and protection.

AD