unifi security gateway usg setup

Unifi Security Gateway USG Setup Guide

By Christopher Martin
AD

Setting up a Unifi Security Gateway (USG) is a crucial step in securing your network. This comprehensive guide will walk you through the process, ensuring your USG is configured correctly to protect your network from potential threats.

The USG serves as a firewall, providing features like IPsec VPN, content filtering, and Quality of Service (QoS). Here's how to set it up for optimal performance.

Initial USG Setup

Before you begin, ensure you have the USG, an Ethernet cable, and a computer connected to the USG's management interface.

AD
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
My Homelab Setup
My Homelab Setup

Upon powering on the USG, it will self-boot into the setup mode. Open a web browser and navigate to the setup page at http://192.168.1.1.

Login and Initial Configuration

Log in with the default credentials (Username: ubnt, Password: ubnt). You'll be prompted to change the password, set your time zone, and choose your language.

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
UniFi Network setup
UniFi Network setup
UniFi Router Comparison: USG vs UDM vs UXG — McCann Tech
UniFi Router Comparison: USG vs UDM vs UXG — McCann Tech

Afterward, select your deployment type. If you're replacing an existing router, choose 'Replace Existing Router'. If it's a new installation, select ' Bridge Mode' (if you have an existing router) or 'New Network' (if you're starting from scratch).

Network Settings

Next, configure your network settings. Enter a unique Network Name (SSID) and set up both 2.4GHz and 5GHz networks. Define your network passwords and whether to enable or disable each network.

AD

For better security, use unique, complex passwords, enable 802.1x for all networks, and consider using a different SSID for your guest network.

there are many different types of electronic equipment on the shelf in front of the table
there are many different types of electronic equipment on the shelf in front of the table
UniFi rack home
UniFi rack home
Unifi Home Network
Unifi Home Network
1U Rack Mount 10" -- UniFi Security Gateway (USG3)
1U Rack Mount 10" -- UniFi Security Gateway (USG3)
an image of a computer screen with many items on it
an image of a computer screen with many items on it
2022 Complete Unifi Setup Guide
2022 Complete Unifi Setup Guide

USG as a Firewall

Now that the USG is set up, let's configure it as a firewall. The USG uses a stateful inspection firewall to monitor and control incoming and outgoing traffic.

Navigate to the Firewall section and ensure 'Enable Firewall' is checked.

AD

Network Profiles

Create network profiles to define rules for your trusted and untrusted networks. Go to Firewall > Network Profiles, and click Add New to create a new profile. Name it 'Trusted' and add your trusted network's IP range.

Wall Mount For Unifi Cloud Gateway Ultra | UCG Ultra | UCG-Ultra
Wall Mount For Unifi Cloud Gateway Ultra | UCG Ultra | UCG-Ultra
Ubiquiti UniFi Setup at Home 90 Days Later, and Thoughts of Side Hustling
Ubiquiti UniFi Setup at Home 90 Days Later, and Thoughts of Side Hustling
2021 Complete Unifi Setup Guide
2021 Complete Unifi Setup Guide
UniFi Home Network
UniFi Home Network
UniFi USG 3 x Ports 1000Base-T + 1 x Port RJ-45 Serial Dual Core 500MHz 512MB DDR2 2GB Flash Security Gateway
UniFi USG 3 x Ports 1000Base-T + 1 x Port RJ-45 Serial Dual Core 500MHz 512MB DDR2 2GB Flash Security Gateway
Montage en rack 1U 19 pouces -- Passerelle de sécurité UniFi (USG3)
Montage en rack 1U 19 pouces -- Passerelle de sécurité UniFi (USG3)
Considerations for Optimal Wireless Mesh Networks
Considerations for Optimal Wireless Mesh Networks

For the 'Untrusted' profile, add a different IP range, preferably not overlapping with the trusted range.

Firewall Rules

Now, configure firewall rules based on your network's needs. Go to Firewall > Rules and click Add New. Set the source and destination networks and the action (Allow/Deny).

AD

For example, allow trusted network traffic and deny everything else. You can also create rules for specific services (like port forwarding).

Content Filtering and QoS

The USG also provides content filtering and Quality of Service (QoS) to manage bandwidth and restrict access to inappropriate content.

Navigate to the Content Filtering section. Choose the filtering mode (Safe Profiles, Custom, or None) and select the categories you want to block.

Traffic Shaping & QoS

Go to QoS > Traffic Shaping to configure bandwidth limits for each network. Assign a LAN IP and랐 ապր a bandwidth limit for each type of traffic (like HTTP, HTTPS, etc.).

Customize your QoS settings by defining how traffic is prioritized on your network. This is crucial for ensuring critical applications have enough bandwidth.

Regularly review and update your USG settings to maintain optimal performance and security. Consider having a professional IT service provider help with setup and maintenance to ensure your network is always secure and running smoothly.

AD