Forward a Port in a UniFi® Security Gateway (USG)

These instructions teach you how to open ports on a Ubiquiti UniFi® Security Gateway (USG)

Prerequisites are that you have the following equipment set up:

  • USG
  • Cloudkey
  • Network Access to the devices

Here’s some Amazon affiliate links to the devices if you need them

Steps:

  1. Log into your Cloud Key
  2. On the left side, hit the Settings icon
  3. In the search box, simply type “port forward” and select the first result which says “Add New Port Forwarding”
  4. Fill in the following fields:
    1. Name is something descriptive for your port forward
    2. Enable Forward Rule should be set to True if you want to activate it upon Applying Changes
    3. Interface is likely your WAN. If you want WAN2 you’ll need to do some manual configurations with a full tutorial available from the Ubiquiti website
    4. From is simply Any (if you put Limited you can set an IP that will be the only IP that can hit this port. You can do a simple IP or an an entire octet like x.x.x.0/24)
    5. Forward IP is the IP of the computer you’re wanting access to
    6. Forward Port is the Port of the computer you’re wanting access to (e.g. 22 for SSH)
    7. Protocol is the protocol type you want going through
    8. Logging is optional but you can log traffic to this port which the USG does by forwarding it to the syslog
  5. Click Apply Changes when complete
  6. It may take a couple minutes to be available

A more comprehensive guide is available here: https://help.ui.com/hc/en-us/articles/235723207-UniFi-USG-UDM-Port-Forwarding-Configuration-and-Troubleshooting

Leave a Comment

Your email address will not be published. Required fields are marked *