Remote-access Guide

how to configure remote access on unifi usg

by Prof. Manuel Stanton Published 2 years ago Updated 1 year ago
image

How do I configure syslog remote logging for a Ubiquiti Unifi Security Gateway (USG)

  1. Log in to the Unifi Network Controller and click on Settings (gear icon) at the bottom of the navigation bar.
  2. Click on Network Settings
  3. Click On Advanced
  4. In the Remote Logging Section switch on Enable Syslog
  5. In the Syslog Host field, enter the IP address of the RocketCyber...
  6. Click on Firewall

Full Answer

How do I adopt a USG device in unifi?

UniFi documents remote adoption for access points here, but there is apparently no documentation on adopting USG devices or switches. Here is what finally worked for me. The USG must be able to reach the remote controller on the “inform port,” TCP 8080 by default. On the remote router, forward that port to the computer running the controller.

How do I set up a VPN on unifi?

In the UniFi network app, go to Settings > VPN Enable VPN Server Enable the VPN Server and note or change the Pre-shared Key Make sure that the Server Address is set to your Public IP Address Create a new VPN user The next step is to create a new VPN user.

Does the Ubiquiti unifi Security Gateway (USG) pro provide VPN capability?

The Ubiquiti UniFi Security Gateway (USG) Pro makes a great VPN terminator and is ideal firewall for small and medium business. Occasionally, I am configuring the USG Pro for my clients to protect their networks, be the gateway of their network, and also provide VPN capability.

Is there a free option to configure the gateway to Unifi?

There are a number of free options out there, jsonlint.com is used by the Ubiquiti support team quite often. After adding the config.gateway.json to the UniFi Network site of your choosing, you can test it by running a "force provision" to the USG in UniFi Devices > select the USG > Config > Manage Device > Force provision.

How to tell if USG is connected to VPN?

Why do I need a Radius server on Ubiquiti?

How to add VPN to network?

How to log into VPN remotely?

What is remote IP?

How to configure a VPN?

Does Ubiquiti show VPN status?

See 2 more

image

How do I access USG remotely?

To log in remotely via VPN, you need an account. The first step is to log into your USG or your UniFi management. Under RADIUS and Users, click on Create New User. Type out the account name for this user and give it a strong password.

How do I access my UniFi remote remotely?

UniFi OS consoles can be accessed remotely at unifi.ui.com. We recommend using our UniFi OS Consoles and Gateways for the most seamless remote access experience because it eliminates issues introduced by third party factors.

Does UniFi USG have VPN?

With UniFi network we can easily set up a remote access VPN server on our UDM Pro or USG. The remote VPN doesn't only offer you access to your home network but also allows you to safely browse the internet.

How do I access the UniFi controller web interface?

Windows users: Start > All Programs > Ubiquiti UniFi. 2. The UniFi login screen will appear. Enter the admin name and password in the appropriate fields and click Login.

How do I add UniFi AP to remote controller?

First, power up your AP and find its IP address. Then use SSH to connect to the AP, the default user and password is ubnt . Once you've done this, the AP should show up almost immediately in the interface of your Unifi controller saying 'pending adoption'. Adopt the AP and enjoy the rest of your day.

How do I adopt UniFi AP via SSH?

Use Set-Inform on Unifi Access PointOpen PowerShell. We first need to connect the access point over SSH. ... Connect SSH. Type ssh ubnt@192.168.1.142 (replace 192.168.1.142 with the IP Address of your access point) ... Complete the adoption in the controller.

What port does UniFi use for VPN?

L2TP - UDP port 1701. ESP - protocol 50.

How do I use UniFi VPN server?

Go to Settings > Network & Internet > VPN > Add a VPN connection and select L2TP/IPsec with pre-shared key as your VPN type. Note: Your username, password, and pre-shared key are the same as those in your UniFi Network settings.

How do I use UniFi VPN?

Go to Settings > Network & internet > VPN > VPN connections > Add VPN and select L2TP/IPsec with pre-shared key as your VPN type. Note: Your username, password, and pre-shared key are the same as those in your UniFi Network settings. Click the Security tab, then set your authentication method to MS-CHAP v2.

What is the web address for UniFi controller?

Note: The default fallback IP address of the UniFi Cloud Key is 192.168. 1.30.

Does UniFi have a web interface?

Accepted solution There is no web engine in a UniFi AP. You can try accessing it all day but I am afraid there isn't a web GUI there. You have to run the UniFi Controller to set these devices up.

How do I find the IP address of my UniFi controller?

How to Find External or Internet IP Address for Unifi Access...From the Unifi Controller click on the Unifi AP.Click on tools in the right hand pane then under Debug Terminal click on Open Terminal.Type the following in to the Terminal Windows that Opens. ... The Internet / External IP address is returned.

How do I access my ubiquiti cloud key?

Launch the Chrome web browser and type https://unifi.ubnt.com in the address field. Press enter (PC) or return (Mac). 3. Enter the username and password for your UBNT account.

Is UniFi cloud access free?

Unlimited Number of Devices and Clients for Free However, to avoid misuse of this free service, we just require users to connect at least one Ubiquiti device within the first day of usage and at least 10 devices during the first month.

What ports need to be open for UniFi controller?

Ingress (Incoming) Ports required for L3 management over the internetProtocolPort numberUsageTCP8443Port used for application GUI/API as seen in a web browser. Applications hosted on Windows/macOS/LinuxTCP8843Port used for HTTPS portal redirection.TCP6789Port used for UniFi mobile speed test.3 more rows

How do I access UniFi Dream Machine Pro?

4:1315:2701 - Initial Setup Wizard - UDM-Pro Complete Setup 2021 - YouTubeYouTubeStart of suggested clipEnd of suggested clipAddress of the udm pro is 192.168. 1.1 so the first thing that you have to do to set up this deviceMoreAddress of the udm pro is 192.168. 1.1 so the first thing that you have to do to set up this device is connect your computer to it. And then set up your computer in that same.

How to tell if USG is connected to VPN?

The only way to tell the status is through the CLI of the USG using show vpn remote-accessand show vpn ipsec sa

Why do I need a Radius server on Ubiquiti?

We will need to configure a RADIUS Server on the Ubiquiti USG in order to accept remote VPN connections from various users that we can set up for remote access.

How to add VPN to network?

Open Network Preferences. Click on the + icon on the bottom left to add a new VPN interface. Under Interface, select VPN. For VPN Type, select L2TP over IPsec. Create a descriptive name under Service Name. Click Create. In the configuration of the VPN profile, keep Configuration at Default.

How to log into VPN remotely?

To log in remotely via VPN, you need an account. The first step is to log into your USG or your UniFi management. Go to Settings and then click on Services. Under RADIUS and Users, click on Create New User. RADIUS Users. Type out the account name for this user and give it a strong password.

What is remote IP?

The Remote IP is the Remote VPN network that I created earlier.

How to configure a VPN?

When users VPN into the network, we need to place them on their own subnet. On the left side navigation, under Settings, click on Networks. Click on Create a New Network. Networks. Give the network a descriptive name such as Remote User VPN. For purpose, select Remote User VPN.

Does Ubiquiti show VPN status?

At the time of this writing, Ubiquiti doesn’t offer any way to easily see the status of remote access VPN users on the GUI dashboard.

Where is config.gateway.json placed?

Therefore, the config.gateway.json should be placed inside <unifi_base>/data/sites/ceb1m27d/ .

How to remove advanced configuration?

To remove a certain advanced configuration, just delete the section pertinent to that configuration in the config.gateway.json file. To completely remove all advanced configurations created in the config.gateway.json file, delete the file or rename it. This will void all manual changes. The USG will be provisioned with the current config contained within the UniFi Network application.

How to change config.gateway.json file?

You can check to verify with ls -l <unifi_base>/data/sites/site_ID. To change it, once you're in the site directory, use the command: chown unifi:unifi config.gateway.json

Can config be exported?

The config can also be exported if preferred. The following example exports the output to the config.txt:

Is jsonlint.com valid for Ubiquiti?

It's recommended to validate the code once finished creating the config.gateway.json. There are a number of free options out there, jsonlint.com is used by the Ubiquiti support team quite often.

Is UniFi Video obsolete?

UniFi Video is an obsolete product line. This application and its related devices will no longer receive any manner of technical support, including functional and security updates. Additionally, there will be no further updates to Help Center content pertaining to UniFi Video. Ubiquiti Support and Help Center.

How to connect USG to the internet?

Plug both the WAN and LAN ports of the USG into your local switch, behind your local router: The WAN port must be able to pull (via DHCP) an IP address that lets the USG connect to the Internet. The LAN port is used for configuring the USG. On the first computer, open a connection to the management interface of the remote controller.

What port does the USG use to connect to the remote controller?

Remote Setup. The USG must be able to reach the remote controller on the “inform port,” TCP 8080 by default. On the remote router, forward that port to the computer running the controller. Theoretically you shouldn’t need to open port 8080 in that computer’s Windows firewall. but I’ve seen one instance where I had to open firewall ports explicitly.

How to log in to SSH again?

If you want to log in via SSH again, you’ll need to use the username and password configured in the controller under Settings > Site > Device Authentication.

Can you configure USG through controller?

You should now be able to continue configuring the USG through the controller .

Enable Remote Logging

1. Log in to the Unifi Network Controller and click on Settings (gear icon) at the bottom of the navigation bar.

Configure Default Action Logging

14. On the Firewall page, scroll down to the Settings section and click on Default Action Logging

How do you install & setup the Ubiquiti USG?

See the comprehensive video below with all you need to know about setting up the Ubiquiti USG . Thanks to Chris from Crosstalk Solutions

How to add Unifi controller to Home Assistant?

To add your Unifi Controller as an integration in Home Assistant, all you need to do is open Home Assistant, click on Configuration > Integrations > + and then add the host IP address/URL and then the username and password of your Unifi Controller, simple as that!

What is the throughput of the Ubiquiti USG?

Here are a few estimates of throughput that you can expect from the Ubiquiti USG. Some services such as DPI, IDS and IPS will significantly reduce throughput as they are not hardware accelerated and are therefore bottle-necked by the capacity of the USG’s CPU.

Is the Ubiquiti USG for home use?

Yes, the Ubiquiti USG is for home use. The Ubiquiti USG is a highly capable UniFi Enterprise System that provides cost-effective, reliable routing and advanced security for your network. Although it is an enterprise networking product, it is priced at a level that makes with very affordable for home or home/office use.

Does the Ubiquiti USG have a built in DHCP server?

Yes, the Ubiquiti USG does have a built in DHCP server. This can be configured when you first plug in the USG and browse to it’s default ip address 192.168.1.1

Can you used a Ubiquiti USG without a Unifi Cloud Key?

Yes, the Ubiquiti USG will function without a Unifi Cloud Key but it will need to be setup with a Unifi Controller running on hardware other than a Unifi Cloud Key.

Will the Ubiquiti USG work without a Unifi Controller?

If you first configure a Ubiquiti USG via a Unifi Controller then if yo shut down the controller or if it we to go offline, then the Ubiquiti USG will continue to function. The only problem is that any statistics, logs, notification etc. will be lost while the Unifi Controller is offline.

How to authenticate a device based on MAC address?

To authenticate devices based on MAC address use the MAC address as the username and password under client creation. This entry should convert lowercase letters to uppercase, and also remove colons or periods from the MAC address. NOTE: MAC-based authentication accounts can only be used for wireless and wired clients.

What attribute will have the VLAN specified if the Radius server is sending it correctly?

An attribute named "vlan-id" will have the VLAN specified if the RADIUS server is sending it correctly.

What is a VLAN field?

VLAN: Field used for assigning a RADIUS authenticated client to a specific VLAN when using RADIUS assigned VLANs.

What is authenticator in a router?

Authenticators: Specifies the port or device that is sending messages to the RADIUS server before permitting system access.

Is UniFi Video obsolete?

UniFi Video is an obsolete product line. This application and its related devices will no longer receive any manner of technical support, including functional and security updates. Additionally, there will be no further updates to Help Center content pertaining to UniFi Video. Ubiquiti Support and Help Center. UniFi Network.

Where to access Unifi network?

Go to unifi.ui.com to access the Network web application.

How to update UniFi OS?

To manage UniFi OS updates, go to unifi.ui.com, select your UniFi OS Console, navigate to System Settings > Updates, and click the update link in the Status field if a console update is available. We also recommend enabling automatic updates.

What is UniFi Network?

UniFi Network pairs with your UniFi OS Console to give you a central hub for monitoring and managing your network without any licensing fees. It can be accessed over the web (unifi.ui.com) or with the mobile app (iOS/Android).

How to apply static IP address to UniFi?

To apply a static IP address to a UniFi device, go to the UniFi Devices page, select the device, navigate to the Device > Network section of its details panel, then select Static IP from the Configure IP drop-down menu.

What does WiFi scheduler do?

WiFi Scheduler: Specify when your network will be disabled.

Can I use UniFi without a console?

Without a UniFi OS Console, you will not be able to remotely manage your network and UniFi applications through unifi.ui.com, but you can still download UniFi Network on a Windows, macOS, or Linux device.

Can you receive push notifications on UniFi?

If you wish to stay informed about your network activity, you may choose to receive email or push notification alerts through the UniFi Network mobile app. By default, these alerts are disabled.

How to tell if USG is connected to VPN?

The only way to tell the status is through the CLI of the USG using show vpn remote-accessand show vpn ipsec sa

Why do I need a Radius server on Ubiquiti?

We will need to configure a RADIUS Server on the Ubiquiti USG in order to accept remote VPN connections from various users that we can set up for remote access.

How to add VPN to network?

Open Network Preferences. Click on the + icon on the bottom left to add a new VPN interface. Under Interface, select VPN. For VPN Type, select L2TP over IPsec. Create a descriptive name under Service Name. Click Create. In the configuration of the VPN profile, keep Configuration at Default.

How to log into VPN remotely?

To log in remotely via VPN, you need an account. The first step is to log into your USG or your UniFi management. Go to Settings and then click on Services. Under RADIUS and Users, click on Create New User. RADIUS Users. Type out the account name for this user and give it a strong password.

What is remote IP?

The Remote IP is the Remote VPN network that I created earlier.

How to configure a VPN?

When users VPN into the network, we need to place them on their own subnet. On the left side navigation, under Settings, click on Networks. Click on Create a New Network. Networks. Give the network a descriptive name such as Remote User VPN. For purpose, select Remote User VPN.

Does Ubiquiti show VPN status?

At the time of this writing, Ubiquiti doesn’t offer any way to easily see the status of remote access VPN users on the GUI dashboard.

image

Table of Contents

Introduction

  • Back to Top The config.gateway.json is a file that sits in the UniFi Network application filesystem and allows custom changes to the USG that aren't available in the web GUI. Some possible customizations will be: configuring site-to-site VPNs with hostnames, policy routing certain traffic out WAN2, or even adding multiple IP addresses on an interface. These features don't exist in th…
See more on help.ui.com

Creating The config.gateway.json File

  • Back to Top By default, the config.gateway.jsonfile doesn't exist, it has to be created in order to use it. 1. Create a new file using a text editor such as TextEdit or Notepad++. 2. The structure of a json file is just as important as the words themselves. Incorrect placement of brackets, indentations, line breaks or any other structural element will make the json file invalid. It is reco…
See more on help.ui.com

Editing The config.gateway.json File

  • Back to Top Before customizing firewall or NAT rules, take note of the rule numbers used in the UniFi Network application under Settings > Routing & Firewall > Firewall. Default firewall rules start at either 3001 or 6001, and NAT rules will also start at 6001 (which don't overlap with firewall rules). The custom rules created in the config.gateway...
See more on help.ui.com

Testing & Verification

  • Back to Top It's recommended to validate the code once finished creating the config.gateway.json. There are a number of free options out there, jsonlint.com is used by the Ubiquiti support team quite often. After adding the config.gateway.json to the UniFi Network site of your choosing, you can test it by running a "force provision" to the USG inUniFi Devices > selec…
See more on help.ui.com

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9