EdgeOS UG PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 104

Operating System for Ubiquiti EdgeRouters

Release Version: 1.9


EdgeOS User Guide Table of Contents

Table of Contents

Chapter 1: Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Configuration Interface System Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware Overview and Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Typical Deployment Scenarios. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Chapter 2: Using EdgeOS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3


Ports and Status Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Navigation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Common Interface Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Chapter 3: Dashboard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Chapter 4: Traffic Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17


Traffic Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Top Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Hosts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Category. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Chapter 5: Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
IPv6 Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Routes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
OSPF. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Chapter 6: Firewall/NAT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Port Forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Firewall Policies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
NAT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Firewall/NAT Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Chapter 7: Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
DHCP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
DNS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
PPPoE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Chapter 8: VPN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
PPTP Remote Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
IPsec Site-to-Site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Ubiquiti Networks, Inc. i


Table of Contents EdgeOS User Guide

Chapter 9: QoS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Smart Queue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Basic Queue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Advanced Queue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

Chapter 10: Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61


Local. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Remote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Chapter 11: Config Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63


User Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Discard and Preview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
CLI Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Configuration Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Chapter 12: Wizards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67


Add a New Feature Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Setup Wizards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Feature Wizards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Chapter 13: Toolbox. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85


Ping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Bandwidth. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Trace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Discover. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
Packet Capture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Log Monitor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

Appendix A: Command Line Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89


Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
New Commands for ER-X Platform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Access the CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
CLI Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

Appendix B: Contact Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99


Ubiquiti Networks Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

ii Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 1: Overview

Chapter 1: Overview Service Provider Deployment


This scenario uses six EdgeRouter devices:
Introduction 1. OSPF Area 0 to OSPF Area 1
EdgeOS is a powerful, sophisticated operating system
2. OSPF Area 0 to OSPF Area 2
from Ubiquiti Networks.. It allows you to manage your 3. OSPF Area 1
EdgeRouter and networks. This User Guide is designed for
4. OSPF Area 1 to Internet
use with version 1.9 or above of the EdgeOS Configuration
Interface and all of the EdgePoint and EdgeRouter 5. OSPF Area 2
models, which this User Guide will collectively refer to as 6. OSPF Area 2 to Internet
EdgeRouter. Additional information is available on our
website at:
http://community.ubnt.com/edgemax
http://documentation.ubnt.com/edgemax
Configuration Site A
OSPF
Area 1
The intuitive EdgeOS Configuration Interface allows you
to conveniently manage your EdgeRouter using your
web browser. (See Using EdgeOS on page 3 for Internet
more information.) If you need to configure advanced
features or prefer configuration by command line, you can
Site-to-Site
use the config tree or the Command Line Interface (CLI). Link
(See Config Tree on page 63 or Command Line
OSPF
Interface on page 89 for more information.) Area 0

Configuration Interface System


Requirements
Microsoft Windows 7, Windows 8, Windows 10, Linux, or
Mac OS X
OSPF
Site B
Web Browser: Google Chrome, Mozilla Firefox, Safari Area 2
7 (or higher), Microsoft Edge, or Microsoft Internet
Explorer 10 (or higher)
Internet
Hardware Overview and Installation
The Quick Start Guide that accompanied your EdgeRouter
includes a hardware description and instructions for Here are the typical steps to follow:
hardware installation. 1. Configure the appropriate settings on the System tab
(see System on page 4 for more information):
Typical Deployment Scenarios Host Name
While there are numerous scenarios that are possible, this
Time Zone
section highlights three typical deployments:
Gateway
Small Office/Home Office (SOHO) Deployment
Name Server
Service Provider Deployment
Domain Name
Corporate Deployment
NTP
SOHO Deployment 2. Configure the interfaces on the Dashboard tab; see
Click the Wizards tab and follow the on-screen Interfaces on page 10 for more information.
instructions. See Wizards on page 67 for more
3. Configure OSPF settings on the Routing > OSPF tab; see
information.
OSPF on page 24 for more information.
4. Configure DHCP server(s) on the Services tab; see
DHCP Server on page 39 for more information.
5. Configure NAT rules on the Firewall/NAT > NAT tab; see
NAT on page 33 for more information.

Ubiquiti Networks, Inc. 1


Chapter 1: Overview EdgeOS User Guide

6. Configure firewall rules on the Firewall/NAT > Firewall 3. Configure DHCP server(s) on the Services tab; see
Policies tab; see Firewall Policies on page 28 for DHCP Server on page 39 for more information.
more information. 4. Configure NAT rules on the Firewall/NAT > NAT tab; see
7. Configure additional settings as needed for your NAT on page 33 for more information.
network. 5. Configure firewall rules on the Firewall/NAT > Firewall
Corporate Deployment Policies tab; see Firewall Policies on page 28 for
more information.
This scenario uses a single EdgeRouter device. The three
independent interfaces connect to the following: 6. Configure additional settings as needed for your
network.
Internet
DMZ
LAN

Firewall
Policies

Internet

DMZ

LAN

Here are the typical steps to follow:


1. Configure the appropriate settings on the System tab
(see System on page 4 for more information):
Host Name
Time Zone
Gateway
Name Server
Domain Name
NTP
2. Configure the interfaces on the Dashboard tab; see
Interfaces on page 10 for more information.

2 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 2: Using EdgeOS

Chapter 2: Using EdgeOS Note: To enhance security, we recommend that you


change the default login using one of the following:
EdgeOS is a powerful, sophisticated operating system that Set up a new user account on the Users > Local tab
manages your EdgeRouter. It offers both a browserbased (preferred option). For details, go to Local on
interface (EdgeOS Configuration Interface) for easy page 61.
configuration and a Command Line Interface (CLI) for Change the default password of the ubnt login on
advanced configuration. the Users > Local tab. For details, go to Configure
To access the EdgeOS Configuration Interface: the User on page 62.
1. Connect an Ethernet cable from the Ethernet port Ports and Status Information
of your computer to the port labeled eth0 on the The Ports image displays the active connections. A purple
EdgeRouter. port indicates 10 Mbps, an amber port indicates 100Mbps,
and a green port indicates 1000 Mbps. The Status bar
graphs display the following:
CPU The percentage of processing power used by the
EdgeRouter.
eth2
RAM The percentage of RAM used by the EdgeRouter.
eth1
Uptime The duration of the EdgeRouters activity.
eth0

2. Configure the Ethernet adapter on your computer Place your mouse over a port to view the following:
with a static IP address on the 192.168.1.x subnet (e.g., Enabled/Disabled The administrative status is displayed.
192.168.1.100). Link The connection status is displayed.
Note: As an alternative, you can connect a serial Speed The speed (in Mbps) and duplex mode are
cable to the Console port of the EdgeRouter. See displayed.
Command Line Interface on page 89 for
more information.
3. Launch your web browser. Type https://192.168.1.1 in
the address field. Press enter (PC) or return (Mac).
Navigation
The EdgeOS software consists of 10 primary tabs, and
some of these tabs have sub-tabs. This User Guide covers
each tab with a chapter. For details on a specific tab, refer
4. The login screen will appear. Enter ubnt in the to the appropriate chapter.
Username and Password fields. Read the Ubiquiti Dashboard Dashboard on page 9 displays
License Agreement, and check the box next to I agree status information about services and interfaces. You
to the terms of this License Agreement to accept it. Click can also configure interfaces and Virtual Local Area
Login. Networks (VLANs).
Traffic Analysis Traffic Analysis on page 17
displays Deep Packet Inspection (DPI) information
about the applications and IP addresses using the most
bandwidth.
Routing Routing on page 21 configures static
routes and Open Shortest Path First (OSPF) settings,
including metrics, areas, and interfaces.
Firewall/NAT Firewall/NAT on page 27 configures
port forwarding, firewall policies, Network Address
Translation (NAT) rules, and firewall/NAT groups.
Services Services on page 39 configures DHCP
servers, DNS forwarding, and the PPPoE server.
The EdgeOS Configuration Interface will appear, allowing VPN VPN on page 45 configures PPTP remote
you to customize your settings as needed. access and IPSec site-to-site VPN options.

Ubiquiti Networks, Inc. 3


Chapter 2: Using EdgeOS EdgeOS User Guide

QoS QoS on page 49 configures Smart Queue, Toolbox


Basic Queue, and Advanced Queue management.
At the top right of the screen, click Toolbox . The following
Users Users on page 61 configures user accounts network administration and monitoring tools are
with administrator or operator access. available:
Config Tree Config Tree on page 63 is a graphical Ping on page 85
representation of the CLI config settings.
Bandwidth on page 86
Wizards Wizards on page 67 offers a variety of
Trace on page 86
wizards: setup wizards that configure the EdgeRouter
for typical SOHO deployments, load balancing wizards, Discover on page 87
and feature wizards. Packet Capture on page 87
Depending on the tab you click, some of the screens Log Monitor on page 88
display information and options in multiple sections. You
can click the open/close tab to hide or display a section. Alerts
The number of new alerts is displayed in a red popup.
Open/Close Tab

At the bottom of the screen, click the Alerts tab.


Open/Close Tab

A table displays the following information about each


important event.

Common Interface Options


The common interface options are accessible from all tabs
on the EdgeOS interface: Message A description of the event is displayed.
Welcome Field The settings that are affected by the event are
CLI displayed.

Toolbox Actions The following options are available:

Alerts Remove Click this button to clear an alert.

System Clear All Click this button to clear all alerts.

Required fields are marked by a blue asterisk *. When the Click the top right corner of the Alerts tab to close it.
information icon is displayed, you can click the icon for System
more information about an option.
At the bottom of the screen, click the System tab to access
Welcome the device settings.
At the top left of the screen, click Welcome to view the
Logout option:

The device settings are organized into these sections:


Basic Settings on page 5
Management Settings on page 6
Logout To manually log out of the EdgeRouter Configuration Management & Device Maintenance
Configuration Interface, click this option. on page 7
CLI Restart & Shut Down Router on page 7
Advanced users can make configuration changes using
Linux commands. At the top right of the screen, click CLI .
See Command Line Interface on page 89 for more
information.

4 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 2: Using EdgeOS

Gateway

System gateway address Enter the IP address of your


gateway. This will set up your default route. If you want to
set up additional default routes, configure them as static
routes on the Routing tab. See Routing on page 21
for more information.
Name Server
Domain Name System (DNS) translates domain names to
IP addresses; each DNS server on the Internet holds these
mappings in its respective DNS database.

System name server Enter the IP address of your DNS


Basic Settings server (example: 192.0.2.1 for IPv4 or 2001:db8::1 for IPv6).
Click Add New to add additional servers.
Host Name
Domain Name

System host name Enter a name for the EdgeRouter. The System domain name Enter the domain name of your
host name identifies the EdgeRouter as a specific device. EdgeRouter. The domain name identifies the EdgeRouters
For example, a .com URL typically uses this format: network on the Internet. For example, a .com URL typically
<host_name>.domain_name.com uses this format:
Time Zone host_name.<domain_name>.com
NTP
NTP is a protocol for synchronizing the clocks of computer
systems over packet-switched, variable-latency data
networks. You can use it to set the system time on the
EdgeRouter. If the System Log option is enabled, then
Use Coordinated Universal Time (UTC) UTC is the the system time is reported next to every log entry that
international time standard used by Network Time registers a system event.
Protocol (NTP) servers. If your routers are located in
multiple time zones, then you may want to use UTC.
Time zone To set your network to a specific time zone,
select Time zone and configure the following:
Select continent/ocean Select your location.
Automatically update system time using NTP By
Select country/region Select your location. default, the EdgeRouter obtains the system time from a
Select time zone Select your time zone. time server on the Internet.
Click Save to apply your changes.

Ubiquiti Networks, Inc. 5


Chapter 2: Using EdgeOS EdgeOS User Guide

Management Settings Log Level Select the appropriate level of log messages for
reporting: Emergency, Urgent, Critical, Error, Warning,
SSH Server
Further Investigation, Informational, or Debug. The
default is Error.
Note: Properly configure the remote host to receive
syslog protocol messages.

UBNT Discovery
The UBNT Discovery feature enables the EdgeRouter to
Enable Enabled by default. This option allows SSH be discovered by other Ubiquiti devices through the
(Secure Shell) access to the EdgeRouter for remote Discovery tool, which is available in the Toolbox (refer to
configuration by command line. SSH uses encryption and Discover on page 87) or as a separate download at:
authentication, so it is a secure form of communication. www.ubnt.com/download/utilities
See Command Line Interface on page 89 for more
information.
Port Specify the TCP/IP port of the SSH server. The default
is 22.
Telnet Server
Enable Enabled by default. This option activates the UBNT
Discovery feature.
SNMP Agent
Simple Network Monitor Protocol (SNMP) is an
application layer protocol that facilitates the exchange
Enable Disabled by default. This option allows Telnet of management information between network
access to the EdgeRouter for remote configuration devices. Network administrators use SNMP to monitor
by command line. Telnet is not a secure form of networkattached devices for issues that warrant
communication, so we recommend SSH. See Command attention.
Line Interface on page 89 for more information. The EdgeRouter contains an SNMP agent, which does the
Port Specify the TCP/IP port of the Telnet server. The following:
default is 23. Provides an interface for device monitoring using SNMP
System Log Communicates with SNMP management applications
for network provisioning
Every logged message contains at least a system time and
host name. Usually a specific service name that generates Allows network administrators to monitor network
the system event is also specified within the message. performance and troubleshoot network problems
Messages from different services have different contexts For the purpose of equipment identification, configure the
and different levels of detail. Usually error, warning, or SNMP agent with contact and location information:
informational system service messages are reported;
however, more detailed debug level messages can also
be reported. The more detailed the system messages
reported, the greater the volume of log messages
generated.

Enable Disabled by default. This option activates the


SNMP agent.
SNMP community Specify the SNMP community string.
Log to remote server This option allows the EdgeRouter
It is required to authenticate access to MIB (Management
to send system log messages to a remote server. Enter
Information Base) objects and functions as an embedded
the remote host IP address and TCP/IP port that should
password. The device supports a read-only community
receive the system log (syslog) messages. 514 is the
string; authorized management stations have read access
default port for the commonly used, system message
to all the objects in the MIB except the community strings,
logging utilities.
but do not have write access. The device supports SNMP
v1. The default is public.

6 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 2: Using EdgeOS

Contact Specify the contact who should be notified in


case of emergency.
Location Specify the physical location of the EdgeRouter.
Click Save to apply your changes.
Configuration Management & Device
Upload system image To update the EdgeRouter with
Maintenance new firmware, click Upload a file and locate the new
The controls in this section manage the device firmware file. Then click Choose.
configuration routines, firmware maintenance, and reset Please be patient, as the firmware update routine can take
to factory default settings. three to seven minutes. You cannot access the EdgeRouter
Back Up Config until the firmware update routine is completed.
We recommend that you back up your current system WARNING: Do not power off, do not reboot, and
configuration before updating the firmware or uploading do not disconnect the EdgeRouter from the power
a new configuration. supply during the firmware update process as these
actions will damage the EdgeRouter!
Reset Config to Default
This option resets the EdgeRouter to the default
configuration. This option will reboot the EdgeRouter, and
the default configuration will be restored. We recommend
Download backup config file Click Download to that you back up your current system configuration before
download the current system configuration file. resetting the EdgeRouter to its default configuration.

Note: We strongly recommend that you save the


configuration file in a secure location because it
includes confidential information. The user login
passwords are encrypted; however, other passwords
and keys (such as those used for VPN, BGP, Reset to Default To reset the EdgeRouter to its default
authentication, and RADIUS) are stored in plain text. configuration, click this option.
Restore Config
Restart & Shut Down Router
Restart Router

Upload config file Click Upload a file to locate the


configuration file previously created by the Back Up Config
option. Select the file and click Choose. We recommend Restart To turn the EdgeRouter off and back on again,
that you back up your current system configuration before click this option.
uploading the new configuration.
Shut Down Router
Note for advanced users: You can also upload a
raw configuration file, /config/config.boot, using
thisoption.
Upgrade System Image
Download the firmware file from downloads.ubnt.com Shut Down To turn off the EdgeRouter, click this option.
and save it on your computer.
WARNING: Click Shut Down to properly shut down
The firmware update is compatible with all configuration
the EdgeRouter. An improper shutdown, such
settings. The system configuration is preserved while
as disconnecting the EdgeRouter from its power
the EdgeRouter is updated with a new firmware version.
supply, runs the risk of data corruption!
However, we recommend that you back up your current
system configuration before updating the firmware. Click the top right corner of the System tab to close it.

Ubiquiti Networks, Inc. 7


Chapter 2: Using EdgeOS EdgeOS User Guide

8 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 3: Dashboard

Chapter 3: Dashboard Services


Services status information is displayed. Each heading is a
The Dashboard tab displays status information about convenient link to the appropriate tab.
services and interfaces. You can also configure interfaces
and Virtual Local Area Networks (VLANs). Any setting
marked with a blue asterisk * is required. When the
information icon is displayed, you can click the icon for
more information about an option.

Hardware
Hardware status information is displayed for the
EdgePoint EP-R8.

Temperature The status is displayed.


Routes
Power The following route types are listed:
Consumption The number of watts used by the Connected
EdgePoint is displayed.
Static
PoE input The PoE amperage is displayed.
RIP (Routing Information Protocol)
DC input The DC amperage is displayed.
OSPF (Open Shortest Path First)
Input voltage The input voltage is displayed.
EBGP (Exterior Border Gateway Protocol)
IBGP (Interior Border Gateway Protocol)

Ubiquiti Networks, Inc. 9


Chapter 3: Dashboard EdgeOS User Guide

The number of each route type and the total number Select the physical or virtual interfaces you want to display
of routes are displayed. Click Routes to display the from the Interfaces column. Click the to hide or display
Routing>Routes tab. Go to Routes on page 22 for this column.
more information.
OSPF
The OSPF status, settings, and number of areas are
displayed. Click OSPF to display the Routing > OSPF tab.
Go to OSPF on page 24 for more information.
NAT
The NAT (Network Address Translation) status and
number of NAT rules are displayed. Click NAT to display
the Firewall/NAT > NAT tab. Go to NAT on page 33 for
more information.
The TX Rate and RX Rate bar graphs display the
Firewall current data traffic, which is colorcoded to match the
The firewall status and numbers of sets and rules are corresponding interface. The graph scale and throughput
displayed. Click Firewall to display the Firewall/NAT > dimension (Mbps, for example) change dynamically
Firewall Policies tab. Go to Firewall Policies on page depending on the mean throughput value. The statistics
28 for more information. are updated automatically.

DHCP
The DHCP server status and numbers of active and
inactive servers are displayed. Click DHCP to display the
Services tab. Go to DHCP Server on page 39 for more
information.

Interfaces
Distribution
Click Hide Distribution to hide the Interfaces > Distribution
section. Click the remaining open/close tab to display the
Interfaces > Distribution section again.

Place your mouse over a bar to view the Current Rate and
Total Amount of traffic for the selected interfaces.

Open/Close Tab

10 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 3: Dashboard

All/Ethernet/VLAN/PPPoE Add PPPoE


Add Interface To create a new VLAN or PPPoE interface, The Create a New PPPoE screen appears.
click Add Interface. Then follow the appropriate
instructions for your interface type.
Add VLAN
The Create a New VLAN screen appears.

PPPoE ID The PPPoE ID is a unique value assigned to


each PPPoE connection at a single device; every PPPoE
ID represents a different PPPoE connection. The valid
PPPoE ID range is 0 to 15.
Interface Select the appropriate interface.
VLAN ID The VLAN ID is a unique value assigned to Account Name Enter the username to connect to the
each VLAN at a single device; every VLAN ID represents PPPoE server; this must match the username configured
a different VLAN. The valid VLAN ID range is 0 to 4094. on the PPPoE server.
Interface Select the appropriate interface. Password Enter the password to connect to the PPPoE
Description Enter keywords to describe this VLAN. server; this must match the password configured on the
MTU Enter the MTU (Maximum Transmission Unit) PPPoE server. Check the box to display the password.
value, which is the maximum packet size (in bytes) that MTU Enter the MTU (Maximum Transmission Unit)
a network interface can transmit. For the ERX, ERXSFP, value, which is the maximum packet size (in bytes) that
and EPR6, the valid MTU range is 68 to 2018. For all a network interface can transmit. The valid MTU range is
other models, the valid MTU range is 68 to 9000. The 68 to 1500. The default is 1492.
default is 1500. Note: Setting the MTU higher than 1492 will
Address Select one of the following: require ISP support and also require increasing
-- No address The VLAN uses no address settings. (In the MTU value of the parent interface (ethX)
most cases, an address is needed.) accordingly.
-- Use DHCP The VLAN acquires network settings from Click Save to apply your changes, or click Cancel.
a DHCPv4 server. Search Allows you to search for specific text. Begin
-- Use DHCP for IPv6 The VLAN acquires network typing; there is no need to press enter. The results are
settings from a DHCPv6 server. filtered in real time as soon as you type two or more
characters.
-- Manually define IP address(es) Enter the static
IP address (example: 192.0.2.1/24 for IPv4 or All/Ethernet/VLAN/PPPoE Click the appropriate tab to
2001:db8::1/32 for IPv6). filter the interfaces as needed.
All All interfaces are displayed by default.
Ethernet All of the Ethernet interfaces are displayed.
VLAN All VLANs are displayed.
A table displays the following information about each
-- Add IP Click Add IP to enter additional IP addresses. interface. Click a column heading to sort by that heading.
Click Save to apply your changes, or click Cancel.

Description The keywords you entered to describe the


interface are displayed.

Ubiquiti Networks, Inc. 11


Chapter 3: Dashboard EdgeOS User Guide

Interface The name of the interface is displayed. Configure the Interface


Note: A switch interface is created by default After you click Config, the Interface Configuration screen
(EdgeRouter PoE, EdgeRouter X, EdgeRouter X SFP, appears.
or EdgePoint EP-R6 only); however, there are no
switched ports by default. To configure ports for the
switch interface, click Actions > Config and go to
the appropriate section:
Configure the Switch (EdgeRouter PoE) on
page 14
Configure the Switch (EdgeRouter X Platform)
on page 14
Type The type of interface is displayed.
PoE (Available for the EdgePoint EP-R6, EdgePoint EP-R8,
or EdgeRouter PoE only.) The status (off) or voltage of the
PoE feature is displayed.
IP Addr The IP address of the interface is displayed. Make changes as needed.
MTU The MTU (Maximum Transmission Unit) value of the Description Enter keywords to describe this interface.
interface is displayed. This is the maximum packet size (in Enable Check the box to enable the interface. All of
bytes) that the interface can transmit. the interfaces are saved in the system configuration file;
TX The transmit speed of the interface is displayed. however, only the enabled interfaces are active on the
device.
RX The receive speed of the interface is displayed.
Status The connection status of the interface is displayed. Note: If you disable a port, its PoE functionality
remains. (This applies only to the EdgeRouter PoE.)
Actions Click the Actions button to access the following
options: Address Select one of the following:
Config To configure the interface, click Config. Proceed -- No address The interface uses no address settings.
to the appropriate interface type: (In most cases, an address is needed.)
-- ethernet If the interface is a physical port, go to the -- Use DHCP The interface acquires network settings
Configure the Interface section in the next column. from a DHCPv4 server. Click the Renew button to
-- VLAN If the interface is a VLAN, go to Configure the acquire fresh network settings.
VLAN on page 13.
-- PPPoE If the interface is a PPPoE connection, go to
Configure PPPoE on page 13.
-- switch If the interface is a switch (available for the
-- Use DHCP for IPv6 The interface acquires network
EdgeRouter PoE only), go to Configure the Switch
settings from a DHCPv6 server.
(EdgeRouter PoE) on page 14.
-- Manually define IP address(es) Enter the static
-- switch If the interface is a switch (available for the
IP address (example: 192.0.2.1/24 for IPv4 or
EdgeRouter PoE only), go to Configure the Switch
2001:db8::1/32 for IPv6).
(EdgeRouter X Platform) on page 14.
PoE (Available for the EdgePoint EP-R6, EdgePoint
EP-R8, or EdgeRouter PoE only.) To configure the PoE
settings, click PoE. Go to Configure the PoE Settings
on page 15.
Disable Disable the interface while keeping its -- Add IP Click Add IP to enter additional IP addresses.
configuration. (The switch interface cannot be disabled.) MTU Enter the MTU (Maximum Transmission Unit)
value, which is the maximum packet size (in bytes) that
Note: If you disable a port, its PoE functionality
a network interface can transmit. For the ERX, ERXSFP,
remains. (This applies only to the EdgeRouter PoE.)
and EPR6, the valid MTU range is 68 to 2018. For all
Delete (Available for VLANs only.) Delete the VLAN from other models, the valid MTU range is 68 to 9000. The
the EdgeRouter configuration. default is 1500.

12 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 3: Dashboard

Speed/Duplex The default is Auto negotiation. The -- Use DHCP The interface acquires network settings
EdgeRouter automatically negotiates transmission from a DHCPv4 server. Click the Renew button to
parameters, such as speed and duplex, with its acquire fresh network settings.
counterpart. In this process, the networked devices
first share their capabilities and then choose the fastest
transmission mode they both support.
To manually specify the transmission link speed and
duplex mode, select one of the following options: -- Use DHCP for IPv6 The interface acquires network
100/full, 100/half, 10/full, or 10/half. settings from a DHCPv6 server.
Full-duplex mode allows communication in both -- Manually define IP address(es) Enter the static
directions simultaneously. Half-duplex mode IP address (example: 192.0.2.1/24 for IPv4 or
allows communication in both directions, but not 2001:db8::1/32 for IPv6).
simultaneously and only in one direction at a time.
Proxy ARP Enable the EdgeRouter to answer a source
hosts ARP (Address Resolution Protocol) requests for
the IP address of a destination host that is not located
on the source hosts network. ARP allows hosts on the
same network to discover each others IP address via a -- Add IP Click Add IP to enter additional IP addresses.
layer 2 broadcast to all MAC addresses. If they are not on MTU Enter the MTU (Maximum Transmission Unit)
the same network, the layer 2 broadcast will not reach value, which is the maximum packet size (in bytes) that
its destination; however, the EdgeRouter can serve as a network interface can transmit. For the ERX, ERXSFP,
the go-between if Proxy ARP is enabled. and EPR6, the valid MTU range is 68 to 2018. For all
Click Save to apply your changes, or click Cancel. other models, the valid MTU range is 68 to 9000. The
default is 1500.
Configure the VLAN Proxy ARP Enable the EdgeRouter to answer a source
After you click Config, the Interface Configuration screen hosts ARP (Address Resolution Protocol) requests for
appears. the IP address of a destination host that is not located
on the source hosts network. ARP allows hosts on the
same network to discover each others IP address via a
layer 2 broadcast to all MAC addresses. If they are not on
the same network, the layer 2 broadcast will not reach
its destination; however, the EdgeRouter can serve as
the go-between if Proxy ARP is enabled.
Click Save to apply your changes, or click Cancel.
Configure PPPoE
After you click Config, the Interface Configuration screen
appears.

Make changes as needed.


VLAN ID The VLAN ID is displayed.
Parent The interface belonging to this VLAN is
displayed.
Description Enter keywords to describe this interface.
Enable Check the box to enable the VLAN. All of
the VLANs are saved in the system configuration file; Make changes as needed.
however, only the enabled VLANs are active on the PPPoE ID The PPPoE ID is displayed.
device.
Address The IP address is displayed.
Address Select one of the following:
Account Name Enter the username to connect to the
-- No address The interface uses no address settings. PPPoE server; this must match the username configured
(In most cases, an address is needed.) on the PPPoE server.

Ubiquiti Networks, Inc. 13


Chapter 3: Dashboard EdgeOS User Guide

Password Enter the password to connect to the PPPoE Switch Ports Select the ports for the switch interface.
server; this must match the password configured on the Proxy ARP Enable the EdgeRouter to answer a source
PPPoE server. Check the box to display the password. hosts ARP (Address Resolution Protocol) requests for
MTU Enter the MTU (Maximum Transmission Unit) the IP address of a destination host that is not located
value, which is the maximum packet size (in bytes) that on the source hosts network. ARP allows hosts on the
a network interface can transmit. The valid MTU range is same network to discover each others IP address via a
68 to 1500. The default is 1492. layer 2 broadcast to all MAC addresses. If they are not on
the same network, the layer 2 broadcast will not reach
Note: Setting the MTU higher than 1492 will
its destination; however, the EdgeRouter can serve as
require ISP support and also require increasing
the go-between if Proxy ARP is enabled.
the MTU value of the parent interface (ethX)
accordingly. Click Save to apply your changes, or click Cancel.
Click Save to apply your changes, or click Cancel. Configure the Switch (EdgeRouter X Platform)
Configure the Switch (EdgeRouter PoE) (Available for the EdgeRouter X, EdgeRouter X SFP, and
The switch configuration is available for EdgeRouter PoE, EdgePoint EP-R6 only.) After you click Config, the Interface
EdgeRouter X, EdgeRouter X SFP, and EdgePoint EP-R6 Configuration screen appears.
only. This section covers the options for the EdgeRouter
PoE only. Proceed to the Configure the Switch (EdgeRouter X
Platform) section in the next column for the other models.
After you click Config, the Interface Configuration screen
appears.

Make changes as needed. There are two tabs: Config and


VLAN.
Config
Description Enter keywords to describe this switch.
Address Select one of the following:
-- No address The switch uses no address settings. (In
Make changes as needed. most cases, an address is needed.)
Description Enter keywords to describe this switch. -- Use DHCP The switch acquires network settings from
a DHCPv4 server. Click the Renew button to acquire
Address Select one of the following:
fresh network settings.
-- No address The switch uses no address settings. (In
most cases, an address is needed.)
-- Use DHCP The switch acquires network settings from
a DHCPv4 server. Click the Renew button to acquire
fresh network settings. -- Use DHCP for IPv6 The switch acquires network
settings from a DHCPv6 server.

-- Use DHCP for IPv6 The switch acquires network


settings from a DHCPv6 server. -- Manually define IP address(es) Enter the
-- Manually define IP address(es) Enter the static IP address (example: 192.0.2.1/24 for IPv4
static IP address (example: 192.0.2.1/24 for IPv4 or 2001:db8::1/32 for IPv6). Click Add IP to enter
or 2001:db8::1/32 for IPv6). Click Add IP to enter additional IP addresses.
additional IP addresses.

Add IP Click to add another IP address.

14 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 3: Dashboard

Proxy ARP Enable the EdgeRouter to answer a source Configure the PoE Settings
hosts ARP (Address Resolution Protocol) requests for
the IP address of a destination host that is not located Note: Before enabling PoE, check the specifications
on the source hosts network. ARP allows hosts on the of your airFiber, airMAX, UniFi, UniFi Video, legacy, or
same network to discover each others IP address via a thirdparty devices to ensure they support passive
layer 2 broadcast to all MAC addresses. If they are not on PoE and require the available amount of voltage.
the same network, the layer 2 broadcast will not reach (Available for the EdgePoint EP-R6, EdgePoint EP-R8, or
its destination; however, the EdgeRouter can serve as EdgeRouter PoE only.) After you click PoE, the PoE tab of
the go-between if Proxy ARP is enabled. the Interface Configuration screen appears.

Click Save to apply your changes, or click Cancel.


VLAN
VLAN Aware Starting with EdgeOS v1.8.5, the per-port
VLAN feature is available. If this option is enabled, then
untagged and tagged VLANS can be set for each port
in switch mode. If this option is kept disabled (default),
then the switch ports will pass all VLANs automatically
(simple layer-2 switching with no per-port VLAN).
Switch Ports Select the ports for the switch interface.
-- pvid If VLAN Aware is enabled, then this option is
available. Enter the Port Virtual Local Area Network
(VLAN) ID. The valid range is 1 to 4087.
-- vid If VLAN Aware is enabled, then this option is PoE is disabled by default on all ports. Follow the
available. Enter the Virtual Local Area Network (VLAN) instructions for your model:
ID. Multiple VIDs are allowed; separate the VIDs with a EdgeRouter X (below)
comma. The valid range is 1 to 4087.
EdgePoint EP-R6/EdgeRouter X SFP (below)
EdgePoint EP-R8 on page 16
EdgeRouter PoE on page 16
EdgeRouter X
Only eth4 supports PoE passthrough.
PoE Select one of the following:
-- Off To disable PoE, select Off.
Note: To disable PoE, you must use this setting. If
you disable a port, its PoE functionality remains.
Click Save to apply your changes, or click Cancel.
-- Passthrough To allow passive PoE pass through,
select Passthrough.
EdgePoint EP-R6/EdgeRouter X SFP
PoE Select one of the following:
-- Off To disable PoE, select Off.
Note: To disable PoE, you must use this setting. If
you disable a port, its PoE functionality remains.
-- 24V To output 24V, 2-pair PoE to the connected
device, select 24V.

Ubiquiti Networks, Inc. 15


Chapter 3: Dashboard EdgeOS User Guide

EdgePoint EP-R8 -- Failure Count Specify the number of ICMP echo


PoE Select one of the following: response replies. If the specified number of ICMP echo
response packets is not received continuously, PoE
-- Off To disable PoE, select Off. Watchdog will reboot the device. The default value
Note: To disable PoE, you must use this setting. If is3.
you disable a port, its PoE functionality remains. -- Cut power for Specify the number of seconds this
-- 24V-4pair (Available for eth1-2 only) To output 24V, port should pause PoE (if applicable). The default
4-pair PoE to the connected device, select 24V-4pair. value is5.
-- 54V-4pair (Available for eth1-2 only) To output 54V, WARNING: Cutting power during a firmware
4-pair PoE to the connected device, select 54V-4pair. upgrade can damage your device. Ensure that you
-- 24V (Available for eth3-7 only) To output 24V, 2-pair specify a safe Ping Interval.
PoE to the connected device, select 24V. Click Save to apply your changes, or click Cancel.
EdgeRouter PoE
PoE Select one of the following:
-- Off To disable PoE, select Off.
Note: To disable PoE, you must use this setting. If
you disable a port, its PoE functionality remains.
-- 24V To output 24V PoE to the connected device,
select 24V.
-- 48V To output 48V PoE to the connected device,
select 48V.
Note: You must have a 48V power adapter
(not included) powering the EdgeRouter PoE;
otherwise, 48V PoE is not allowed.
PoE Watchdog
PoE Watchdog is only for PoE-enabled ports. It configures
the device to continuously ping a user-defined IP address
(it can be the Internet gateway, for example). If it is
unable to ping under the user-defined constraints, then
the device will automatically turn off PoE on the port,
and then turn it back on. This option creates a kind of
failproof mechanism.
PoE Watchdog is dedicated to continuous monitoring of
the specific connection to the remote host using the Ping
tool. The Ping tool works by sending ICMP echo request
packets to the target host and listening for ICMP echo
response replies. If the specified number of replies is not
received, the tool reboots the device.
Enable Watchdog Enable the use of PoE Watchdog.
-- IP Address To Ping Specify the IPv4 or IPv6 address
of the target host to be monitored by PoE Watchdog.
-- Ping Interval Specify the time interval (in seconds)
between the ICMP echo requests that are sent by PoE
Watchdog. The default value is 15 seconds.
-- Startup Delay Specify the initial time delay (in
seconds) until the first ICMP echo requests are sent by
PoE Watchdog. The default value is 300 seconds.
The Startup Delay value should be at least 60 seconds
as the network interface and wireless connection
initialization takes a considerable amount of time if
the device is rebooted.

16 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 4: Traffic Analysis

Chapter 4: Traffic Analysis Open/Close Tab

The Traffic Analysis tab displays status information about


the traffic traveling through the EdgeRouter, including
the local hosts and types of network traffic. You can also
Open/Close Tab
configure the application category options. Any setting
marked with a blue asterisk * is required. When the Open/Close Tab

information icon is displayed, you can click the icon for


more information about an option.
Starting with EdgeOS v1.7, the traffic analysis feature
with Deep Packet Inspection (DPI) is available for the Traffic Analysis
EdgeRouter Lite, EdgeRouter PoE, EdgeRouter, EdgeRouter Clear Data Click to clear the current traffic statistics.
PRO, and EdgePoint EP-R8.
Operational Status You have three options:
Starting with EdgeOS v1.8.5, the traffic analysis feature
with DPI is also available for the EdgeRouter X, EdgeRouter Enabled Select this option to allow traffic analysis with
X SFP, and EdgePoint EP-R6. application identification using DPI. All forwarded traffic
(both offloaded and non-offloaded) is displayed.
DPI is more advanced than conventional Stateful Packet
Inspection (SPI) filtering. Ubiquitis advanced, proprietary Hosts only Select this option to analyze traffic at the
DPI engine includes the latest application identification host level only, without DPI.
signatures to track which applications (and IP addresses) Disabled Disabled by default.
are using the most bandwidth.
The traffic analysis feature provides monitoring and
reporting functionality. There are no licensing fees for DPI
or signature updates, which are automatically updated on
a periodic basis to maintain the accuracy of application
identification.
Click the corresponding open/close tab to hide or display
the Traffic Analysis section, the Top Hosts section, or both
the Top Hosts and Category sections.

Ubiquiti Networks, Inc. 17


Chapter 4: Traffic Analysis EdgeOS User Guide

Top Hosts Hosts


The pie chart represents the use of bandwidth by the Each row corresponds to a single host. Click a row to
hosts using the most bandwidth. display the applications usage of a specifichost.

TX Bytes Displays the transmit bandwidth in bytes used


by the top hosts.
RX Bytes Displays the receive bandwidth in bytes used by
the top hosts. Search Allows you to search for specific text within the
Total Bytes Displays the total bandwidth in bytes used by host table. Begin typing; there is no need to press enter.
the top hosts. The results are filtered in real time as soon as you type two
or more characters.
The list on the right displays the top hosts and their
percentages of bandwidth use. Host Displays the host name and IP address.
Place the mouse over a hosts segment of the pie chart, TX Rate Displays the transmit rate.
and that hosts top applications will be displayed in RX Rate Displays the receive rate.
the middle of the pie chart. Click the hosts segment to TX Bytes Displays the amount of data transmitted.
automatically select the host in the table.
RX Bytes Displays the amount of data received.
Click any row to display the applications usage.
Top Apps (TX Bytes/RX Bytes) Displays the following:
-- (name) Click the application name to add it to a
custom category or create a custom category. Go to
the Application Category section below.
-- (_%) Each applications usage is represented as a
percentage of the hosts bandwidth.
-- (bar graph) The TX and RX usage of anapplication is
represented in a bar graph.
-- (TX/RX) The TX and RX bytes of an application are
displayed.
Application Category
The App Configuration screen appears.
App The name of the application is displayed.
Category If the category already exists, then select
it from the drop-down menu. Otherwise, select
Create New Category and enter the name of the
new category in the field below.

Click Save to apply your changes or click Cancel.

18 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 4: Traffic Analysis

Category Configure the Category


You can create custom application categories for use in After you click Config, the Category Configuration screen
firewall policies. This allows a firewall to match packets appears.
that are identified by DPI as certain applications. (Refer to
Advanced on page 31 for more information.)

Category You can change the name for this category.


Add Category To create a new category, click Add
Category. Apps Click Add App to add an application. Then enter
the name of the application. (An application can only
The Create Category screen appears.
appear in a single custom category.)
Note: The name of the application must match
one of the applications displayed on the Traffic
Analysistab.
Remove Click Remove to delete an application.

Complete the following: Click Save to apply your changes or click Cancel.

Category Enter a name for this category.


Apps Click Add App to add an application. Then enter
the name of the application. (An application can only
appear in a single custom category.)
Note: The name of the application must match
one of the applications displayed on the Traffic
Analysistab.
Remove Click Remove to delete an application.
Click Save to apply your changes or click Cancel.
Search Allows you to search for specific text within the
category table. Begin typing; there is no need to press
enter. The results are filtered in real time as soon as you
type two or more characters.
Category The name of the custom category is displayed.
Apps The names of the included applications are
displayed.
Actions Click the Actions button to access the following
options:
Config To configure the category, click Config. Go to
the Configure the Category section in the next column.
Delete Remove the category.

Ubiquiti Networks, Inc. 19


Chapter 4: Traffic Analysis EdgeOS User Guide

20 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 5: Routing

Chapter 5: Routing Config Tree


(Refer to Config Tree on page 63.)
The Routing tab displays status information about a For IPv6 addresses, the EdgeOS Configuration Interface
variety of connected, static, RIP, and OSPF routes. You supports :: (doublecolon) notation, which substitutes
can also configure static routes and OSPF options. Any :: for a contiguous sequence of 16-bit blocks set to zero.
setting marked with a blue asterisk * is required. When the Here is an example: 2001:db8::1
information icon is displayed, you can click the icon for If written out, the IPv6 address becomes:
more information about an option. 2001:db8:0000:0000:0000:0000:0000:0001
You have two sub-tabs: The EdgeOS Configuration Interface displays IPv6
Routes View route information and create static routes. addresses only in three locations:
OSPF Configure OSPF options. System > Name Server section
Dashboard tab
IPv6 Routing
VPN > IPsec Site-to-Site tab
IPv6 (Internet Protocol version 6) is gaining popularity
and is bound to grow as IP addressing demands increase. The EdgeOS Configuration Interface will increase its
The EdgeOS Configuration Interface supports IPv6 for the support of IPv6 in future releases. For other options, you
following options: can use the config tree or CLI, which has comprehensive
IPv6 support.
System > Name Server configuration
(Refer to Name Server on page 5.) Note: Use the config tree or CLI to view or configure
Dashboard > VLAN creation IPv6 options that are not supported by the rest of
(Refer to Add VLAN on page 11.) the EdgeOS Configuration Interface.
Dashboard > Interface configuration
(Refer to Configure the Interface on page 12.)
Dashboard > VLAN configuration
(Refer to Configure the VLAN on page 13.)
VPN > IPsec Site-to-Site configuration
(Refer to IPsec Site-to-Site on page 46.)

Ubiquiti Networks, Inc. 21


Chapter 5: Routing EdgeOS User Guide

Routes Distance (1-255) Enter the administrative distance.


If there are identical routes from different sources
A route determines how traffic travels to its destination (such as static, RIP, or OSPF), the EdgeRouter
network. If more than one route is suitable, the compares the routes and uses the route with the
EdgeRouter uses administrative distance as a metric to lowest distance.
compare all available routes, including directly connected
routes, manually configured static routes, dynamic routes, Enable Check the box to enable the route.
and the default route. The EdgeRouter uses the route with Click Save to apply your changes.
the lowest administrative distance. -- Interface Define a route using a next hop interface.
All/Static/Connected/RIP/OSPF
Add Static Route To create a new static route, click Add
Static Route.
The Create Static Route screen appears.

Destination network Enter the IP address and


subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
Next hop interface Select the appropriate
Complete the following: interface from the drop-down list.
Select Route Type You have three options: Gateway, Description Enter keywords to identify this route.
Interface, or Black Hole.
Distance (1-255) Enter the administrative distance.
-- Gateway Define a route using the IP address and If there are identical routes from different sources
subnet mask of the next hop gateway. (such as static, RIP, and OSPF), the EdgeRouter
compares the routes and uses the route with the
lowest distance.
Enable Check the box to enable the route.
Click Save to apply your changes.
-- Black Hole Define a route that drops unwanted
traffic.

Destination network Enter the IP address and


subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
The first default route is configured on the System
tab; see System gateway address on page 5
for more information. To create multiple default Destination network Enter the IP address and
routes, set up static routes and enter 0.0.0.0/0. subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
Next hop address Enter the IP address.
(example: 192.0.2.0/24).
Description Enter keywords to identify this route.
Description Enter keywords to identify this route.

22 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 5: Routing

Distance (1-255) Enter the administrative distance. Disable Disable the route while keeping its
If there are identical routes from different sources configuration. (This option is not available for black hole
(such as static, RIP, and OSPF), the EdgeRouter routes.)
compares the routes and uses the route with the
lowest distance.
Configure the Static Route
After you click Config, the Static Route Configuration screen
Enable Check the box to enable the route.
appears.
Click Save to apply your changes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
All/Static/Connected/RIP/OSPF Click the appropriate tab
to filter the routes as needed.
All All routes are displayed by default.
Static All static routes that you have configured are
displayed.
Connected All routes that are directly connected to the Follow the instructions for your route type:
EdgeRouter are displayed.
Gateway
RIP All RIP (Routing Information Protocol) routes are
displayed. RIP is an interior, distance vector routing Route type The gateway route uses the IP address and
protocol that uses hop count as a metric to determine subnet mask of the next hop gateway.
the best route. Destination network The IP address and subnet mask
OSPF All OSPF (Open Shortest Path First) routes are are displayed in slash notation.
displayed. OSPF is an interior, link-state routing protocol Next hop address The IP address of the next hop
that uses cost as a metric to determine the best route. gateway is displayed.
The bandwidth of an interface determines the cost the Description Enter keywords to identify this route.
higher the bandwidth, the lower the cost.
Distance (1-255) Enter the administrative distance. If
A table displays the following information about each there are identical routes from different sources (such
route. Click a column heading to sort by that heading. as static, RIP, and OSPF), the EdgeRouter compares the
routes and uses the route with the lowest distance.
Enable Check the box to enable the route.
Click Save to apply your changes.
Interface
Selected The status of the route, whether it has been
selected for the routing table, is displayed.
Description If available, the keywords describing the
route are displayed.
Destination The destination IP address is displayed.
Next Hop The IP address of the next-hop interface is
displayed.
Interface The name of the interface is displayed.
Route Type The type of route is displayed.
In FIB The forwarding status of the route, whether it is in
the FIB (Forwarding Information Base), is displayed. Route type The interface route uses the next hop
interface.
Actions Click the Actions button to access the following
options: Destination network The IP address and subnet mask
are displayed in slash notation.
Config To configure the route, click Config. Go to the
Configure the Static Route section in the next column. Next hop interface The name of the next hop interface
is displayed.
Delete Delete the route; its configuration will be
removed. Description Enter keywords to identify this route.

Ubiquiti Networks, Inc. 23


Chapter 5: Routing EdgeOS User Guide

Distance (1-255) Enter the administrative distance. If Router


there are identical routes from different sources (such
as static, RIP, and OSPF), the EdgeRouter compares the
routes and uses the route with the lowest distance.
Enable Check the box to enable the route.
Click Save to apply your changes.
Black Hole
Router ID Enter the IP address that identifies a specific
router in an OSPF network. In OSPF, the highest Router ID
determines which router is the Designated Router (DR),
which distributes updates to the other OSPF routers.
Click Save to apply your changes, or click Delete OSPF
to remove the Router, Redistribution, and Area settings
(Interfaces settings are retained).
Redistribution
A single router can use multiple routing protocols, such
as OSPF and RIP, which use incompatible metrics. It
Route type The black hole route drops unwanted traffic. must reconcile information from multiple protocols to
Destination network The IP address and subnet mask determine which route to use for a specific destination
are displayed in slash notation. network. You can change the metrics of the distributed
Description Enter keywords to identify this route. protocol to create protocol compatibility.
Distance (1-255) Enter the administrative distance. If
there are identical routes from different sources (such
as static, RIP, and OSPF), the EdgeRouter compares the
routes and uses the route with the lowest distance.
Enable Check the box to enable the route.
Click Save to apply your changes. Redistribute connected If enabled, the EdgeRouter
connects an OSPF area to a network using a different
OSPF routing protocol and redistributes the other protocols
Using Link State Advertisements, routers communicate directly connected routes into the OSPF area. These routes
with each other when there is a router or link status become external OSPF routes.
change. Each router maintains the information in a -- Metric If there are multiple routes to the same
database, which is used to create and update a network destination, OSPF uses the metric to select a route
map from the routers point of view. Each router then uses for the routing table. Assign a cost value to the
the map to build and update a routing table. redistributed connected routes. The EdgeRouter can
then use this metric to compare these routes to other
OSPF routes.
Redistribute static If enabled, the EdgeRouter connects
an OSPF area to a network using a different routing
protocol and redistributes the other protocols static
routes into the OSPF area. These routes become external
OSPF routes.
-- Metric If there are multiple routes to the same
destination, OSPF uses the metric to select a route
for the routing table. Assign a cost value to the
redistributed static routes. The EdgeRouter can then
use this metric to compare these routes to other OSPF
routes.
Announce default route If enabled, the EdgeRouter
communicates the default route to the other routers of
the OSPF network, eliminating the need to configure
the default route on the other routers. The default route
connects the OSPF network to an outside network.

24 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 5: Routing

Areas Area ID The identification number of the area is


displayed.
To enhance scalability, an OSPF network is comprised of
smaller sections called areas. At the minimum, there is the Area Type The type of area is displayed.
backbone area, called Area 0. Auth Type The authentication type of the area is
displayed.
Network The network address of the area is displayed.
Actions Click the Actions button to access the following
options:
Add Area To create a new area, click Add Area. Config To configure the OSPF Area, click Config. Go to
the Configure the OSPF Area section.
The Create OSPF Area screen appears.
Delete Delete the OSPF Area.
Configure the OSPF Area
After you click Config, the OSPF Area Configuration screen
appears.

Complete the following:


Area ID This is the number that identifies an area. It can
be an integer or use a format similar to an IPv4 address.
Area Type This defines the routes that are acceptable
inside the area. Select the appropriate option:
-- Normal/sec The default type accepts all routes.
-- NSSA A NSSA (Not So Stubby Area) network is a
variation of a stub network. It can import external
routes from type 7 Link State Advertisements, which Make changes as needed.
are NSSA-specific. Area ID This is the number that identifies an area. It can
-- Stub The network has no external routes. Typically, it be an integer or use a format similar to an IPv4 address.
has a default route for outbound traffic. Area Type This defines the routes that are acceptable
Auth Type Authentication helps secure communication inside the area. Select the appropriate option:
between routers. Select the appropriate option: -- Normal/sec The default type accepts all routes.
-- Off No authentication is used. -- NSSA A NSSA (Not So Stubby Area) network is a
-- MD5/sec Each router uses a key (password) and key variation of a stub network. It can import external
ID. This is the most secure option because the key is routes from type 7 Link State Advertisements, which
never transmitted. are NSSA-specific.
-- Plain text Each router uses a key. This provides -- Stub The network has no external routes. Typically, it
minimal security because the key is transmitted in has a default route for outbound traffic.
plain text format. Auth Type Authentication helps secure communication
Network Enter the IP address and subnet mask using between routers. Select the appropriate option:
slash notation: -- Off No authentication is used.
<network_IP_address>/<subnet_mask_number> -- MD5/sec Each router uses a key (password) and key
(example: 192.0.2.0/24). ID. This is the most secure option because the key is
Click Add New to enter more network addresses. never transmitted.
Click Save to apply your changes. -- Plain text Each router uses a key. This provides
A table displays the following information about each minimal security because the key is transmitted in
OSPF Area. Click a column heading to sort by that plain text format.
heading.

Ubiquiti Networks, Inc. 25


Chapter 5: Routing EdgeOS User Guide

Network Enter the IP address and subnet mask using A table displays the following information about each
slash notation: OSPF Interface. Click a column heading to sort by that
<network_IP_address>/<subnet_mask_number> heading.
(example: 192.0.2.0/24).
Click Add New to enter more network addresses.
Click Save to apply your changes.
Interfaces Interface The name of the interface is displayed.
You can configure interfaces with specific OSPF options. Cost The cost of the interface is displayed. OSPF uses cost
as a metric to determine the best route.
Actions Click the Actions button to access the following
options:
Config To configure the OSPF Interface, click Config.
Go to the Configure the OSPF Interface section.
Delete Delete the OSPF Interface.
Configure the OSPF Interface
Add OSPF Interface To create a new interface, click Add After you click Config, the OSPF Interface Configuration
OSPF Interface. screen appears.
The OSPF Interface Configuration screen appears.

Make changes as needed.


Complete the following: Interface The name of the interface is displayed.
Interface Select the appropriate interface from the Auth Type Authentication helps secure communication
drop-down list. between routers. Select the appropriate option:
Auth Type OSPF authentication helps secure -- Off No authentication is used.
communication between routers. Select the appropriate
-- MD5/sec Each router uses a key (password) and key
option:
ID. This is the most secure option because the key is
-- Off No authentication is used. never transmitted.
-- MD5/sec Each router uses a key (password) and key -- Plain text Each router uses a key. This provides
ID. This is the most secure option because the key is minimal security because the key is transmitted in
never transmitted. plain text format.
-- Plain text Each router uses a key. This provides Auth Key Enter the key used for authentication.
minimal security because the key is transmitted in
Cost By default, the cost of an interface is based on its
plain text format.
bandwidth; however, you can manually assign a cost to
Auth Key Enter the key used for authentication. the interface.
Cost By default, the cost of an interface is based on its Click Save to apply your changes.
bandwidth; however, you can manually assign a cost to
the interface.
Click Save to apply your changes.

26 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

Chapter 6: Firewall/NAT Port Forwarding


Typically you configure a port forwarding rule so a host on
The Firewall/NAT tab displays status information about the external network can access a server on the internal
port forwarding, firewall policies, NAT (Network Address network by using the public IP address (or hostname) of
Translation) rules, and firewall/NAT groups. You can also the EdgeRouter.
configure these policies, groups, rules, and options. Any
setting marked with a blue asterisk * is required. When the
information icon is displayed, you can click the icon for
more information about an option.
You have four sub-tabs:
Port Forwarding View and create port forwarding rules.
Firewall Policies Each firewall policy is a set of rules
applied in the order you specify.
NAT View and create NAT rules.
Firewall/NAT Groups Create groups defined by IP Show advanced options Select this checkbox to display
address, network address, or port number. the Auto firewall option.
WAN interface Select the appropriate interface from
the drop-down menu. (If you select Other, then enter the
interface name in the field provided.)
Hairpin NAT Enabled by default. If you want to allow a
host on the internal network to use the public IP address
to access an internal server, then keep Hairpin NAT
enabled. (Hairpin NAT is also known as NAT loopback or
NAT reflection.)
Note: If Hairpin NAT is enabled, then it only enables
Hairpin NAT for the port forwarding rules defined in
the wizard; it does not affect the Destination NAT
Rules defined on the Firewall/NAT>NATtab (refer to
Destination NAT Rules on page 35).
Ubiquiti Networks, Inc. 27
Chapter 6: Firewall/NAT EdgeOS User Guide

Auto firewall Enabled by default. Displayed if Show Description Enter keywords that will identify this rule.
advanced options is enabled. If you want the EdgeRouter Remove Click Remove to delete a rule.
to automatically open ports for the specified port
forwarding rules, then keep Auto firewall enabled. Add Rule Click Add Rule to create a new rule.

If you disable the Auto firewall option, then you will need
to manually define firewall rules on the Firewall/NAT >
Firewall Policies tab (refer to the Firewall Policies section in
the next column).
LAN interface Click Add LAN to display the drop-down
menu. Then select the appropriate interface. (If you select
Other, then enter the interface name in the field provided.)
Remove LAN Click Remove LAN to delete an interface.
Add LAN Click Add LAN to add another new interface.

To remove the entire port forwarding configuration, click


Delete.
Click Apply to apply your changes, or click Cancel.

Firewall Policies
A firewall policy is a set of rules with a default action.
Firewall policies are applied before SNAT (Source Network
Port Forwarding Rules Address Translation) and after DNAT (Destination Network
This section allows you to create port forwarding rules and Address Translation).
manage them. To create a firewall policy:
Show rules stats Select this checkbox to display statistics 1. Click the Firewall/NAT Groups tab, and create the
for each rule: applicable firewall groups. See Firewall/NAT Groups
Packets The number of forwarded packets is displayed. on page 36 for more information.
Bytes The number of forwarded bytes is displayed. 2. Click the Firewall Policies tab, and then click Add
Ruleset. Configure the basic parameters. See the
Add Ruleset description in the next column for more
information.
3. Configure the details of the firewall policy. See
Configure the Firewall Policy on page 29 for
more information.

Add Rule Click Add Rule to create a new rule.


Original port Enter the port or ports that will be
forwarded to the LAN. You can identify the port or ports
by name, number, and/or range. To specify multiple
ports, use a comma-separated list.
Example: https,20-23,554
Protocol Enter the protocol that will be forwarded to
the LAN: Both, TCP, or UDP.
Forward-to address Enter the LAN IP address that will
receive the forwarded port traffic.
Forward-to port Enter the port or ports that will
receive the forwarded port traffic. You can identify the
port or ports by name, number, and/or range. If you
do not specify the Forward-to port, then the original
destination port of the traffic will be used.

28 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

All/Drop/Reject/Accept Actions Click the Actions button to access the following


options:
Add Ruleset To create a new policy, click Add Ruleset.
Edit Rules To configure the rules, click Edit Rules. Go to
The Create New Firewall Ruleset screen appears.
the Rules section in the next column.
Configuration To configure the policy, click
Configuration. Go to Configuration on page 32.
Interfaces To select interfaces and direction of traffic
flow for your policy, click Interfaces. Go to Interfaces
on page 32.
Stats To view statistics on firewall usage, click Stats. Go
to Stats on page 33.
Copy Ruleset To create a duplicate, click Copy Ruleset.
The Copy Firewall Ruleset screen appears.
Complete the following:
Name Enter a name for this policy.
Description Enter keywords to describe this policy.
Default action All policies have a default action if the
packets do not match any rule. Select the appropriate
default action: -- Name Enter a new name for this policy.
-- Drop Packets are blocked with no message. Click Copy to confirm, or click Cancel.
-- Reject Packets are blocked, and an ICMP (Internet Delete Ruleset Remove the ruleset.
Control Message Protocol) message is sent saying the Configure the Firewall Policy
destination is unreachable.
The Ruleset Configuration for _ screen appears.
-- Accept Packets are allowed through the firewall.
Default Log Check this box to log packets that trigger
the default action.
Click Save to apply your changes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more You have four tabs available:
characters. Rules (see below)
All/Drop/Reject/Accept Click the appropriate tab to filter Configuration on page 32
the policies by default action.
Interfaces on page 32
All All policies are displayed by default.
Stats on page 33
Drop All of the drop policies are displayed.
Add New Rule To create a new rule, click Add New Rule.
Reject All of the reject policies are displayed. Go to Add or Configure a Rule on page 30.
Accept All of the accept policies are displayed. Save Rule Order To change the rule order, click and drag
A table displays the following information about each a rule up or down the sequence, and then release the rule.
policy. Click a column heading to sort by that heading. When you are finished, click Save Rule Order.
Rules
A rule tells the EdgeRouter what action to take with a
specific packet. Define the following:
Name The name of the policy is displayed. Criteria for matching packets
Interfaces The specified interface and direction of traffic Action to take with matching packets
flow are displayed. Rules are organized into a set and applied in the specified
Number of Rules The number of rules in the policy is Rule Order. If the packets match a rules criteria, then its
displayed. action is triggered. If not, then the next rule is applied.
Default Action The action that the policy will execute if
the packets do not match any rule is displayed.

Ubiquiti Networks, Inc. 29


Chapter 6: Firewall/NAT EdgeOS User Guide

A table displays the following information about each rule. Basic


Click a column heading to sort by that heading.
Order The rules are applied in the order specified. The
number of the rule in this order is displayed.
Description The keywords you entered to describe this
rule are displayed.
Source The source specified by this rule is displayed.
Destination The destination specified by this rule is
displayed.
Protocol The protocol that matches the rule is displayed.
Action The action specified by this rule is displayed.

Description Enter keywords to describe this rule.


Enable Check the box to enable this rule.
Action Select the action for packets that match this
Actions Click the Actions button to access the following rules criteria.
options:
-- Drop Packets are blocked with no message.
Basic To configure the basic options of a rule, click
-- Reject Packets are blocked, and an ICMP (Internet
Basic. Go to the Basic section in the next column.
Control Message Protocol) message is sent saying the
Advanced To configure the advanced options of a rule, destination is unreachable.
click Advanced. Go to Advanced on page 31.
-- Accept Packets are allowed.
Source To configure the source options of a rule, click
Protocol
Source. Go to Source on page 31.
-- All protocols Match packets of all protocols.
Destination To configure the destination options of a
rule, click Destination. Go to Destination on page -- TCP Match TCP packets.
32. -- UDP Match UDP packets.
Time To configure the time options of a rule, click Time. -- Both TCP and UDP Match TCP and UDP packets.
Go to Time on page 32.
-- Choose a protocol by name Select the protocol from
Copy Rule To create a duplicate, click Copy Rule. The the drop-down list. Match packets of this protocol.
duplicate rule appears at the bottom of the list.
Match all protocols except for this Match packets
Delete Rule Remove the rule. of all protocols except for the selected protocol.
Add or Configure a Rule
The Rule Configuration for _ screen appears. You have five
tabs available:
Basic (see below)
Advanced (see the next column) -- Enter a protocol number Enter the port number of
Source on page 31 the protocol. Match packets of this protocol.

Destination on page 32 Match all protocols except for this Match packets
of all protocols except for the selected protocol.
Time on page 32

Logging Check this box to log instances when the rule


is matched.
Click Save to apply your changes, or click Cancel.

30 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

Advanced Application Select the appropriate application


category from the drop-down menu. (You can create
custom application categories on the Traffic Analysis
tab; go to Traffic Analysis on page 17 for more
information.)
Click Save to apply your changes, or click Cancel.
Source

State This describes the connection state of a packet.


Address Enter the IP address of the source.
-- Established Match packets that are part of a two-way
Port Enter the port number or range of the source.
connection.
MAC Address Enter the MAC address of the source.
-- Invalid Match packets that cannot be identified.
Firewall groups are created on the Firewall/NAT Groups
-- New Match packets creating a new connection.
tab; see Firewall/NAT Groups on page 36 for
-- Related Match packets related to established more information. Select the appropriate group(s);
connections. you can specify up to two groups maximum in these
Recent Time Enter the number of seconds to monitor combinations:
for attempts to connect from the same source. An address group and port group
Recent Count Enter the number of times the same A network group and port group
source is detected within the Recent Time duration.
The packets must match both groups to apply the rule.
This helps thwart attacks using continual attempts to
connect. Address Group or Interface Addr. Select the
appropriate address group or interface address. If you
IPsec IPsec (Internet Protocol security) helps secure
select Other as the interface address, then enter the
packet routing.
interface name in the field provided. The firewall rule
-- Dont match on IPsec packets Do not match any will match the IP address of the selected interface.
IPsec packets.
Network Group Select the appropriate network group.
-- Match inbound IPsec packets Match IPsec packets
Port Group Select the appropriate port group.
that are entering the EdgeRouter.
Click Save to apply your changes, or click Cancel.
-- Match inbound non-IPsec packets Match nonIPsec
packets that are entering the EdgeRouter.
P2P Match P2P (Peer-to-Peer) applications.
-- None Do not match P2P connections.
-- All Match all P2P connections.
-- Choose P2P app(s) by name Match packets of the
selected P2P application(s). Check the box of any P2P
application on this list to select it.

Ubiquiti Networks, Inc. 31


Chapter 6: Firewall/NAT EdgeOS User Guide

Destination Week Days Enter the days of the week when the rule
should be applied. Enter Sun, Mon, Tue, Wed, Thu, Fri,
or Sat. If you enter more than one day, use commas to
separate the days (example: Mon, Tue, Wed).
-- Match all week days except for these Match all days
of the week except for the selected days.
Start Date Enter the date the rule should start being
applied. Use the YYYY-MM-DD (year-month-day) format.
Start Time Enter the time the rule should start
being applied. Use the 24-hour format, HH:MM:SS
Address Enter the IP address of the destination. (hours:minutes:seconds).
Port Enter the port number of the destination. Stop Date Enter the date the rule should stop being
Firewall groups are created on the Firewall/NAT Groups applied. Use the YYYY-MM-DD (year-month-day) format.
tab; see Firewall/NAT Groups on page 36 for Stop Time Enter the time the rule should stop
more information. Select the appropriate group(s); being applied. Use the 24-hour format, HH:MM:SS
you can specify up to two groups maximum in these (hours:minutes:seconds).
combinations: Interpret dates and times as UTC Check the box if
An address group and port group your network uses UTC.
A network group and port group Click Save to apply your changes, or click Cancel.
The packets must match both groups to apply the rule. Configuration
Address Group or Interface Addr. Select the
appropriate address group or interface address. If you
select Other as the interface address, then enter the
interface name in the field provided. The firewall rule
will match the IP address of the selected interface.
Network Group Select the appropriate network group.
Port Group Select the appropriate port group.
Click Save to apply your changes, or click Cancel.
Name The name of this policy is displayed.
Time
Description Enter keywords to describe this policy.
Default action All policies have a default action if the
packets do not match any rule. Select the appropriate
default action:
Drop Packets are blocked with no message.
Reject Packets are blocked, and an ICMP (Internet
Control Message Protocol) message is sent saying the
destination is unreachable.
Accept Packets are allowed.
Default Log Check this box to log packets that trigger the
default action.
Click Add Ruleset to apply your changes.
Interfaces
Month Days Enter the days of the month when the rule
should be applied. Enter numbers in the range 1 to 31.
If you enter more than one day, use commas to separate
the numbers (example: 3, 4, 5).
-- Match all month days except for these Match all
days of the month except for the selected days.
Interface Select the appropriate interface from the
drop-down list.

32 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

Direction Select the direction of the traffic flow. Source NAT Rules
-- in Match inbound packets. Source NAT Rules change the source address of packets;
-- out Match outbound packets. a typical scenario is that a private source needs to
-- local Match local packets. communicate with a public destination. A Source NAT
Rule goes from the private network to the public network
Remove Click Remove to remove an interface. and is applied after routing, just before packets leave the
Add Interface Click Add Interface to enter more EdgeRouter.
interfaces. Add Source NAT Rule To create a new rule, click Add
Click Save Ruleset to apply your changes. Source NAT Rule. Go to Add or Configure a Source NAT
Stats Rule on page 34.
Save Rule Order To change the rule order, click and drag
a rule up or down the sequence, and then release the rule.
When you are finished, click Save Rule Order.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
A table displays the following statistics about each rule. A table displays the following information about each rule.
Click a column heading to sort by that heading. Click a column heading to sort by that heading.
Rule The rules are applied in the order specified. The
number of the rule in this order is displayed.
Packets The number of packets that triggered this rule is
displayed.
Order The rules are applied in the order specified. The
Bytes The number of bytes that triggered this rule is number of the rule in this order is displayed.
displayed.
Description The keywords you entered to describe this
Action The action specified by this rule is displayed. rule are displayed.
Description The keywords you entered to describe this Source The source IP address or group is displayed.
rule are displayed.
Destination The destination IP address or group is
NAT displayed.
NAT changes the addressing of packets. A NAT rule tells Translation A description of the translation (such as
the EdgeRouter what action to take with a specific packet. masquerade to eth_) is displayed.
Define the following: Count The number of translations is displayed.
Criteria for matching packets Actions Click the Actions button to access the following
Action to take with matching packets options:
Rules are organized into a set and applied in the specified Config To configure the rule, click Config. Go to the
Rule Order. If the packets match a rules criteria, then its Add or Configure a Source NAT Rule section below.
action is performed. If not, then the next rule is applied. Copy To create a duplicate, click Copy. The duplicate
rule appears at the bottom of the list.
Delete Remove the rule.

Ubiquiti Networks, Inc. 33


Chapter 6: Firewall/NAT EdgeOS User Guide

Add or Configure a Source NAT Rule Enable Logging Check this box to log instances when
the rule is matched.
After you click Config, the Source NAT Rule Configuration
screen appears. Protocol Select one of the following:
-- All protocols Match packets of all protocols.
-- TCP Match TCP packets.
-- UDP Match UDP packets.
-- Both TCP and UDP Match TCP and UDP packets.
-- Choose a protocol by name Select the protocol from
the drop-down list. Match packets of this protocol.
Match all protocols except for this Match packets
of all protocols except for the selected protocol.

-- Enter a protocol number Enter the port number of


the protocol. Match packets of this protocol.
Match all protocols except for this Match packets
of all protocols except for the selected protocol.

Description Enter keywords to describe this rule.


Src Address Enter the IP address or network address of
Enable Check the box to enable this rule. the source. You can also enter a range of IP addresses;
Outbound Interface Select the interface through one of them will be used.
which the outgoing packets exit the EdgeRouter. This is
Note: If you enter a network address, enter the IP
required only for Source NAT Rules that use Masquerade.
address and subnet mask using slash notation:
Translation Select one of the following: <network_IP_address>/<subnet_mask_number>
-- Use Masquerade Masquerade is a type of Source (example: 192.0.2.0/24).
NAT. If enabled, the source IP address of the packets Src Port Enter the port name or number of the source.
becomes the public IP address of the outbound You can also enter a range of port numbers; one of them
interface. will be used.
-- Specify address and/or port If enabled, the source NAT groups are created on the Firewall/NAT Groups
IP address of the packets becomes the specified IP tab; see Firewall/NAT Groups on page 36 for
address and port. more information. Select the appropriate group(s);
you can specify up to two groups maximum in these
Address Enter the IP address that will replace the
combinations:
source IP address of the outgoing packet. You can
also enter a range of IP addresses; one of them will An address group and port group
be used. A network group and port group
Port Enter the port number that will replace the The packets must match both groups to apply the rule.
source port number of the outgoing packet. You
Src Address Group or Interface Addr. Select the
can also enter a range of port numbers; one of them
appropriate address group or interface address. If you
will be used.
select Other as the interface address, then enter the
interface name in the field provided. The NAT rule will
match the IP address of the selected interface.
Src Network Group Select the appropriate network
group.
Exclude from NAT Check the box to exclude packets Src Port Group Select the appropriate port group.
that match this rule from NAT.

34 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

Dest. Address Enter the IP address or network address Order The rules are applied in the order specified. The
of the destination. You can also enter a range of IP number of the rule in this order is displayed.
addresses; one of them will be used. Description The keywords you entered to describe this
Note: If you enter a network address, enter the IP rule are displayed.
address and subnet mask using slash notation: Source The source IP address or group is displayed.
<network_IP_address>/<subnet_mask_number> Destination The destination IP address or group is
(example: 192.0.2.0/24). displayed.
Dest. Port Enter the port name or number of the
destination. You can also enter a range of port numbers; Translation A description of the translation (such as to
one of them will be used. <IP_address>) is displayed.
Dest Address Group or Interface Addr. Select the Count The number of translations is displayed.
appropriate address group or interface address. If you Actions Click the Actions button to access the following
select Other as the interface address, then enter the options:
interface name in the field provided. The NAT rule will Config To configure the rule, click Config. Go to the
match the IP address of the selected interface. Add or Configure a Destination NAT Rule section below.
Dest Network Group Select the appropriate network Copy To create a duplicate, click Copy. The duplicate
group. rule appears at the bottom of the list.
Dest Port Group Select the appropriate port group. Delete Remove the rule.
Click Save to apply your changes, or click Cancel.
Add or Configure a Destination NAT Rule
Destination NAT Rules After you click Config, the Destination NAT Rule
Destination NAT Rules change the destination address of Configuration screen appears.
packets; a typical scenario is that a public source needs
to communicate with a private destination. A Destination
NAT Rule goes from the public network to the private
network and is applied before routing.

Add Destination NAT Rule To create a new rule, click


Add Destination NAT Rule. Go to the Add or Configure a
Destination NAT Rule section.
Save Rule Order To change the rule order, click and drag
a rule up or down the sequence, and then release the rule.
When you are finished, click Save Rule Order.
Search Allows you to search for specific text. Begin Description Enter keywords to describe this rule.
typing; there is no need to press enter. The results are Enable Check the box to enable this rule.
filtered in real time as soon as you type two or more
characters. Inbound Interface Select the interface through which
the incoming packets enter the EdgeRouter.
A table displays the following information about each rule.
Click a column heading to sort by that heading. Translations Complete the following:
-- Address Enter the IP address that will replace the
destination IP address of the incoming packet.
-- Port Enter the port number that will replace the
destination port number of the incoming packet.

Ubiquiti Networks, Inc. 35


Chapter 6: Firewall/NAT EdgeOS User Guide

Exclude from NAT Check the box to exclude packets Dest. Address Enter the IP address or network address
that match this rule from NAT. of the destination. You can also enter a range of IP
Enable Logging Check this box to log instances when addresses; one of them will be used.
the rule is matched. Note: If you enter a network address, enter the IP
Protocol address and subnet mask using slash notation:
-- All protocols Match packets of all protocols. <network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
-- TCP Match TCP packets. Dest. Port Enter the port name or number of the
-- UDP Match UDP packets. destination. You can also enter a range of port numbers;
-- Both TCP and UDP Match TCP and UDP packets. one of them will be used.
-- Choose a protocol by name Select the protocol from Dest Address Group or Interface Addr. Select the
the drop-down list. Match packets of this protocol. appropriate address group or interface address. If you
select Other as the interface address, then enter the
Match all protocols except for this Match packets interface name in the field provided. The NAT rule will
of all protocols except for the selected protocol. match the IP address of the selected interface.
Dest Network Group Select the appropriate network
group.
Dest Port Group Select the appropriate port group.
Click Save to apply your changes, or click Cancel.
-- Enter a protocol number Enter the port number of
the protocol. Match packets of this protocol. Firewall/NAT Groups
Match all protocols except for this Match packets Create groups organized by IP address, network address,
of all protocols except for the selected protocol. or port number.

Src Address Enter the IP address or network address of


the source. You can also enter a range of IP addresses;
one of them will be used.
Note: If you enter a network address, enter the IP
address and subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
Src Port Enter the port name or number of the source.
You can also enter a range of port numbers; one of them
will be used. All/Address/Network/Port
NAT groups are created on the Firewall/NAT Groups Add Group To create a new group, click Add Group.
tab; refer to the Firewall/NAT Groups section in the next The Create New Firewall/NAT Group screen appears.
column for more information. Select the appropriate
group(s); you can specify up to two groups maximum in
these combinations:
An address group and port group
A network group and port group
The packets must match both groups to apply the rule.
Src Address Group or Interface Addr. Select the
appropriate address group or interface address. If you
select Other as the interface address, then enter the
Complete the following:
interface name in the field provided. The NAT rule will
match the IP address of the selected interface. Name Enter a name for this group.
Src Network Group Select the appropriate network Description Enter keywords to describe this group.
group.
Src Port Group Select the appropriate port group.

36 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 6: Firewall/NAT

Group Type Select the appropriate option: Network Group Make changes as needed.
-- Address Group Define a group by IP address.
-- Network Group Define a group by network address.
-- Port Group Define a group by port numbers.
Click Save to apply your changes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
-- Name The name of this group is displayed.
All/Address/Network/Port Click the appropriate tab to
-- Description Enter keywords to describe this group.
filter the groups as needed.
-- Network Enter the IP address and subnet mask using
All All groups are displayed by default.
slash notation:
Address All of the address groups are displayed. <network_IP_address>/<subnet_mask_number>
Network All of the network groups are displayed. (example: 192.0.2.0/24).
Port All of the port groups are displayed. Click Add New to enter more network addresses.
A table displays the following information about each Click Save to apply your changes.
group. Click a column heading to sort by that heading. Port Group Make changes as needed.

Name The name of the group is displayed.


Description The keywords you entered to describe the
group are displayed.
Type The type of group is displayed.
Number of group members The number of members is
displayed. -- Name The name of this group is displayed.
Actions Click the Actions button to access the following -- Description Enter keywords to describe this group.
options:
-- Port Enter the port name, number, or range. Click
Config To configure the group, click Config. Go to the Add New to enter more ports.
Configure the Firewall/NAT Group section below.
Click Save to apply your changes.
Delete Remove the group.
Configure the Firewall/NAT Group
After you click Config, the Edit Firewall Group screen
appears. Follow the instructions for your group type:
Address Group Make changes as needed.

-- Name The name of this group is displayed.


-- Description Enter keywords to describe this group.
-- Address Enter the IP address or range of addresses
(examples: 192.0.2.1 or 192.0.2.1-15). Click Add New to
enter more IP addresses.
Click Save to apply your changes.

Ubiquiti Networks, Inc. 37


Chapter 6: Firewall/NAT EdgeOS User Guide

38 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 7: Services

Chapter 7: Services The Create DHCP Server screen appears.

The Services tab displays status information about DHCP


servers, Domain Name System (DNS) forwarding, Dynamic
DNS, and the PPPoE server. Any setting marked with a
blue asterisk * is required. When the information icon
is displayed, you can click the icon for more information
about an option.
You have three sub-tabs:
DHCP Server Configure DHCP servers to implement
different subnets on the independent interfaces.
DNS Configure DNS forwarding and Dynamic DNS
interfaces and services. Complete the following:
PPPoE Server Configure the PPPoE server so a remote DHCP Name Enter a name for this DHCP server.
PPPoE client can establish a tunnel to the EdgeRouter for Subnet Enter the IP address and subnet mask using
network access. slash notation:
<network_IP_address>/<subnet_mask_number>
DHCP Server (example: 192.0.2.0/24).
A DHCP server assigns IP addresses to DHCP clients. You Range Start Enter the starting IP address of the range.
can configure multiple DHCP servers to assign IP ranges in
Range Stop Enter the last IP address of the range.
different subnets on the different interfaces.
Router Enter the default route of the DHCP clients. The
Add DHCP Server To create a new DHCP server, click Add
DHCP clients route all packets to this IP address, which is
DHCP Server.
the EdgeRouters own IP address in most cases.
DNS 1 Enter the IP address of the primary DNS server.
Your ISP may provide this information, or you can use
Googles DNS server at 8.8.8.8.
DNS 2 Enter the IP address of the secondary DNS server.

Ubiquiti Networks, Inc. 39


Chapter 7: Services EdgeOS User Guide

UniFi Controller Enter the IP address of the UniFi Configure the DHCP Server
Controller. The DHCP server will return the UniFi
The DHCP Server - screen appears. You have three tabs
Controllers IP address to its DHCP clients, so if a client
available.
is a UniFi AP, it will know how to contact the UniFi
Controller. Leases
Enable Check the box to enable this DHCP server.
Click Save to apply your changes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
A table displays the following information about each
DHCP server. Click a column heading to sort by that
heading.

Name The name of the DHCP server is displayed.


Subnet The IP address and subnet mask of the DHCP
server are displayed.
Pool size The total number of IP addresses is displayed.
The top section displays the following status information:
Leased The number of leased IP addresses is displayed.
Pool Size The total number of IP addresses is displayed.
Available The number of available IP addresses is The DHCP server assigns IP address from the pool (or
displayed. group) of IP addresses.
Static The number of static IP addresses is displayed. Leased The number of used IP addresses is displayed.
Actions Click the Actions button to access the following Available The number of available IP addresses is
options: displayed.
View Leases To view the current DHCP leases, click Static The number of static IP addresses is displayed.
View Leases. Go to the Configure the DHCP Server >
Subnet The IP address and subnet mask of the DHCP
Leases section.
server are displayed in slash notation.
Configure Static Map To map static IP addresses to
Range Start The starting IP address of the range is
MAC addresses, click Configure Static Map. Go to
displayed.
Static MAC/IP Mapping on page 41.
Range End The last IP address of the range is displayed.
View Details To configure the DHCP server, click View
Details. Go to Details on page 42. Router The default route of the DHCP clients is
displayed. The DHCP clients route all packets to this IP
Delete Delete the DHCP server; its configuration will be
address, which is the EdgeRouters own IP address in
removed.
most cases.
Disable Disable the DHCP server while keeping its
DNS The IP address of the DNS server is displayed.
configuration.
Status The Enabled/Disabled status of the DHCP server
is displayed.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.

40 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 7: Services

A table displays the following information about each Static MAC/IP Mapping
DHCP client. Click a column heading to sort by that
heading.

IP Address The IP address assigned to the DHCP client


is displayed.
MAC Address The MAC address of the DHCP client is
displayed.
Lease Expiration The date and time when the DHCP
lease will expire is displayed.
Pool The name of the DHCP server is displayed.
Hostname The name used to identify the DHCP client is
displayed.
Map Static IP To convert a dynamic DHCP lease into The top section displays the following status information:
a static mapping, click Map Static IP. Go to the Add to Pool Size The total number of IP addresses is displayed.
Static MAC/IP Mapping section below. Leased The number of used IP addresses is displayed.
At the bottom of the screen, you can click Delete to Available The number of available IP addresses is
delete the DHCP server and its configuration. displayed.
Add to Static MAC/IP Mapping Static The number of static IP addresses is displayed.
The Add to Static MAC/IP Mapping appears. Subnet The IP address and subnet mask of the DHCP
server are displayed in slash notation.
Range Start The starting IP address of the range is
displayed.
Range End The last IP address of the range is displayed.
Router The default route of the DHCP clients is
displayed. The DHCP clients route all packets to this IP
address, which is the EdgeRouters own IP address in
most cases.
Complete the following: DNS 1/2 The IP address of the DNS server is displayed.
-- IP Address The IP address assigned to the DHCP Status The Enabled/Disabled status of the DHCP server
client is displayed. You can change this as needed. is displayed.
-- MAC Address The MAC address of the DHCP client is Create New Mapping To map a static IP address to a
displayed. specific MAC address, click Create New Mapping.
-- Name The name used to identify the DHCP client is The Create Static MAC/IP Mapping appears.
displayed. You can change this as needed.
Click Save to apply your changes.

Complete the following:


-- ID Enter a name for this mapping.
-- MAC Address Enter the MAC address of the DHCP
client.

Ubiquiti Networks, Inc. 41


Chapter 7: Services EdgeOS User Guide

-- IP Address Enter the IP address that should be Details


assigned.
Click Save to apply your changes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
A table displays the following information about each
static MAC/IP mapping. Click a column heading to sort by
that heading.

The top section displays the following status information:


Name The name of the mapping is displayed. Pool Size The total number of IP addresses is displayed.
MAC Address The MAC address of the DHCP client is Leased The number of used IP addresses is displayed.
displayed. Available The number of available IP addresses is
IP Address The IP address assigned to the displayed.
corresponding MAC address is displayed. Static The number of static IP addresses is displayed.
Actions Click the Actions button to access the Subnet The IP address and subnet mask of the DHCP
following options: server are displayed in slash notation.
-- Config To configure the mapping, click Config. Go to Range Start The starting IP address of the range is
the Configure Static MAC/IP Mapping section below. displayed.
-- Delete Remove the selected mapping. Range End The last IP address of the range is displayed.
At the bottom of the screen, you can click Delete to Router The default route of the DHCP clients is
delete the DHCP server and its configuration. displayed. The DHCP clients route all packets to this IP
Configure Static MAC/IP Mapping address, which is the EdgeRouters own IP address in
The Static MAC/IP Mapping screen appears. most cases.
DNS 1/2 The IP address of the DNS server is displayed.
Status The Enabled/Disabled status of the DHCP server
is displayed.
The rest of the Details tab displays the following:
DHCP Name The name of the DHCP server is displayed.
Subnet The IP address and subnet mask of the DHCP
server are displayed in slash notation.
Make changes as needed to the following options:
Make changes as needed. Range Start Enter the starting IP address of the range.
-- ID The name of this mapping is displayed. Range Stop Enter the last IP address of the range.
-- MAC Address Enter the MAC address of the DHCP Router Enter the default route of the DHCP clients. The
client. DHCP clients route all packets to this IP address, which is
-- IP Address Enter the IP address that should be the EdgeRouters own IP address in most cases.
assigned. UniFi Controller Enter the IP address of the UniFi
Click Save to apply your changes. Controller. The DHCP server will return the UniFi
Controllers IP address to its DHCP clients, so if a client
is a UniFi AP, it will know how to contact the UniFi
Controller.
DNS 1 Enter the IP address of the primary DNS server.
Your ISP may provide this information, or you can use
Googles DNS server at 8.8.8.8.
DNS 2 Enter the IP address of the secondary DNS server.

42 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 7: Services

Domain Enter the domain name for DHCP clients. Click Save to apply your changes, or click Cancel.
Lease Time Enter the period of time (in seconds) that a Dynamic DNS
DHCP lease should last.
Dynamic DNS (DDNS) is a network service that notifies the
Enable Check the box to enable this DHCP server. DNS server in real time of any changes in the devices IP
Click Save to apply your changes. settings. Even if the devices IP address changes, you can
At the bottom of the screen, you can click Delete to still access the device through its domain name.
delete the DHCP server and its configuration.

DNS
DNS translates domain names to IP addresses; each
DNS server on the Internet holds these mappings in its
respective DNS database.
On the DNS tab, you can configure multiple interfaces for
DNS forwarding. You can also configure multiple Dynamic
DNS interfaces using multiple Dynamic DNS services.

Add DDNS Interface To add an interface for DDNS


service, click Add DDNS Interface. Then configure its
settings.
DNS Forwarding Interface Select the appropriate interface of the
EdgeRouter.
The EdgeRouter receives all LAN DNS requests and
forwards them to the service providers DNS server. The Remove Click Remove to delete an interface.
EdgeRouter receives responses from the DNS server and Web Select the appropriate webpage used to obtain
forwards them to the LAN clients. the public IP address, or select URL and enter the
custom URL. The Web and Web-skip settings support
scenarios in which the router is behind another level of
NAT.
Web-skip Enter the text that should be ignored
and precedes the public IP address on the selected
webpage. This will vary depending on the DDNS service
you use. Examples: IP Address: and Current IP Address:
(Ensure you include a space after the colon.)
Cache Size Completed DNS requests are cached so -- Service Select the appropriate DDNS service provider
response time is faster for cached entries, and there is less from the dropdown menu, or select custom and
traffic traveling to the DNS server. Enter the maximum enter the name of the DDNS service provider.
number of DNS queries to cache.
-- Hostname Enter the host name of the device, which
Interface Select the appropriate interface that the has to be updated on the DDNS server.
EdgeRouter will listen to so it can forward DNS requests. Example: sample.ddns.com
Add Listen Interface You can select multiple interfaces. -- Login Enter the username of the DDNS account.
To add another interface for DNS forwarding, click Add
-- Password Enter the password of the DDNS account.
Listen Interface. From the new Interface dropdown
menu, select the appropriate interface. -- Protocol Select the appropriate protocol from the
dropdown menu.
Remove Click Remove to delete an interface.
-- Server Enter the IP address or hostname of the DDNS
You can click Delete to delete the DNS forwarding
server that should receive DDNS updates.
configuration.

Ubiquiti Networks, Inc. 43


Chapter 7: Services EdgeOS User Guide

-- Add Service You can use multiple services as long MTU Enter the MTU (Maximum Transmission Unit)
as they use the same protocol. To add another DDNS value, which is the maximum packet size (in bytes) that a
service, click Add Service. Then configure a new set of network interface can transmit. The default is 1492 for the
DDNS service settings (except for the Protocol setting). PPPoE connection.
Add DDNS Interface You can use multiple DDNS DNS 1 Enter the IP address of the primary remote access
interfaces. To add another interface for DDNS service, click DNS server that your PPPoE client will use.
Add DDNS Interface. Then configure a new set of DDNS DNS 2 Enter the IP address of the secondary remote
interface settings. access DNS server.
You can click Delete to delete the DDNS configuration. Interface Select the appropriate interface that the
Click Apply to save your changes, or click Cancel. EdgeRouter will listen to so it can forward PPPoE requests.
You can click Force Update to initiate an update of the Add Listen Interface You can select multiple interfaces.
devices IP address on the DDNS server. To add another interface for PPPoE connections, click
Add Listen Interface. From the new Interface dropdown
PPPoE menu, select the appropriate interface.
The EdgeRouter can function as a PPPoE (Point-to-Point Click Save to apply your changes, or click Cancel.
Protocol over Ethernet) server so a remote PPPoE client
can establish a tunnel to the EdgeRouter for network
access.
PPPoE Server

Note: If you configured PPPoE using the CLI or the


config tree, then you must disable those changes
before using the PPPoE tab in the web UI.
Client IP pool range start The client IP pool is the pool of
IP addresses that remote PPPoE clients will use. Enter the
starting IP address of the range (this address must in a /24
subnet).
Client IP pool range stop Enter the last IP address of the
range.
RADIUS server IP address The RADIUS (Remote Access
Dial-In User Service) server provides authentication to
help secure PPPoE connections. Enter the IP address of the
RADIUS server.
RADIUS server key Enter the key shared with the RADIUS
server.

44 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 8: VPN

Chapter 8: VPN Client IP pool range start The client IP pool is the pool
of IP addresses that remote VPN clients will use. Enter the
The VPN tab displays status information about PPTP and starting IP address of the range (this address must in a /24
IPsec VPN options. You can also configure these options. subnet).
Any setting marked with a blue asterisk * is required. Client IP pool range stop Enter the last IP address of the
When the information icon is displayed, you can click range.
the icon for more information about an option. Server outside address Enter the IP address that VPN
You have two sub-tabs: clients will connect to; this is the outside or external
PPTP Remote Access Configure the EdgeRouter as a address of the PPTP server.
PPTP VPN server. RADIUS server IP address The RADIUS (Remote Access
IPsec Site-to-Site Configure the EdgeRouter as a peer Dial-In User Service) server provides authentication to
router for a basic IPsec site-to-site VPN tunnel. help secure VPN tunnels. Enter the IP address of the
RADIUS server.
PPTP Remote Access RADIUS server key Enter the key shared with the RADIUS
A common type of VPN uses PPTP (Point-to-Point server.
Tunneling Protocol). The EdgeRouter can function as a MTU Enter the MTU (Maximum Transmission Unit)
PPTP VPN server so a remote VPN client can access the value, which is the maximum packet size (in bytes) that a
LAN using a PPTP VPN tunnel over the Internet. network interface can transmit. The default is 1492 for the
PPTP VPN connection.
DNS 1 Enter the IP address of the primary remote access
DNS server that your VPN client will use.
DNS 2 Enter the IP address of the secondary remote
access DNS server.
You can click Delete to delete the PPTP remote access
configuration.
Click Save to apply your changes, or click Cancel.

Ubiquiti Networks, Inc. 45


Chapter 8: VPN EdgeOS User Guide

IPsec Site-to-Site
A common type of VPN uses IPsec (IP security protocol).
The EdgeRouter can function as a peer router so two peer
routers can create an IPsec site-to-site VPN tunnel over the
Internet. Configuration supports multiple peers, multiple
tunnels per peer, and pre-shared secrets.
Note: Any changes you save in the graphical user
interface will override any changes you made in the
CLI.
Site-to-Site Peers
Add Peer To add a site-to-site peer, click Add Peer.

Show advanced options Select this checkbox to display


the Firewall option. Complete the following:
Peer Enter the host name or IPv4/IPv6 address of the
Global Options peer router.
IPsec Interfaces To create a new IPsec interface, click Add
Description Enter keywords to describe the peer
Interface. Then select the appropriate interface from the
router.
drop-down menu.
Local IP Enter the IPv4/IPv6 address of the EdgeRouter,
Remove Interface To delete an IPsec interface, click
or enter any.
Remove Interface.
Encryption Displayed if Show advanced options
is enabled. Both peer routers must use the same
encryption method. Select the appropriate encryption
method: AES-128, AES-256, or 3DES. The default is
AES-128.
Hash Displayed if Show advanced options is enabled.
Both peer routers must use the same hash algorithm.
Select the appropriate hash algorithm: SHA1 or MD5.
The default is SHA1.
DH Group Displayed if Show advanced options is
enabled. The DH (Diffie-Hellman) group specifies the
Firewall Enabled by default. Displayed if Show advanced strength of the DH encryption key for the key exchange.
options is enabled. If you want the EdgeRouter to Both peer routers must use the same DH group. Select
automatically open the firewall and exclude it from the the appropriate DH group: 2, 5, 14, 15, 16, 19, 20, 21,
NAT, then keep Firewall enabled. 25, or 26. The default is 14.
If you disable the Firewall option, then you will need to Pre-shared secret Enter the pre-shared secret key. Both
manually define firewall rules on the Firewall/NAT > Firewall peer routers must use the same pre-shared secret key
Policies tab (refer to "Firewall Policies" on page 28). for authentication.
Local subnet Enter the local IPv4/IPv6 network address.
Remote subnet Enter the remote IPv4/IPv6 network
address.
Add Subnets To create a new set of subnets, click Add
Subnets. Then complete the new Local subnet and
Remote subnet fields.

46 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 8: VPN

Remove Subnets To delete a set of subnets, click


Remove Subnets.

Remove Peer To delete a peer, click Remove Peer.


You can click Delete to delete the IPsec site-to-site
configuration.

Click Apply to save your changes, or click Cancel.

Ubiquiti Networks, Inc. 47


Chapter 8: VPN EdgeOS User Guide

48 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

Chapter 9: QoS Here are general guidelines on the expected Smart Queue
shaping performance:
The QoS tab displays status information about Smart
Queue, Basic Queue, and Advanced Queue QoS options. Model Expected Maximum Performance
You can also configure these options. Any setting marked EP-R6 100 - 250 Mbps
with a blue asterisk * is required. When the information EP-R8 120 - 330 Mbps
icon is displayed, you can click the icon for more
ER-X 100 - 250 Mbps
information about an option.
ER-X-SFP 100 - 250 Mbps
You have three sub-tabs:
Smart Queue Optimize the usage of overall WAN ERLite-3 60 - 200 Mbps
bandwidth. ERPoe-5 60 - 200 Mbps
Basic Queue Configure simple QoS policies without the ER-8 160 - 450 Mbps
complexity of the Advanced Queue feature. ERPro-8 200 - 550 Mbps
Advanced Queue Configure a hierarchical tree of queues
to implement a sophisticated bandwidth-sharing scheme. It may require some testing to find the actual threshold
in a specific environment, depending on the actual setup,
Smart Queue traffic patterns, and other conditions. The actual rate
The Smart Queue feature provides FQ-CODEL (Fair limits will be set to 95% of the specified value, so you can
Queuing with Controlled Delay) + HTB (Hierarchical Token experiment with different values if necessary.
Bucket) function and supports dynamic interfaces, even if Each smart queue policy applies to one interface. You can
the dynamic interfaces do not exist yet (the policy will be configure multiple policies for different interfaces.
applied later when the interface comes up).
Note: The Smart Queue feature conflicts with the
The HTB rate limiting is computation-intensive, so the rate
existing traffic policy configuration, so the two
limiting will not work well (cannot achieve the specified
should not be applied to the same interface at the
rate) above a certain threshold rate. The actual threshold
same time.
(applied to the sum of the upload and download rates)
depends on the specific model and conditions of the
actual environment.

Ubiquiti Networks, Inc. 49


Chapter 9: QoS EdgeOS User Guide

-- Rate Enter the bandwidth limit, and select the unit of


measurement: bits/sec, Kbits/sec, or Mbits/sec.
-- Burst Displayed if Show advanced options is enabled.
Enter the amount of data that can burst at best-effort,
and select the unit of measurement: bytes, Kbytes, or
Mbytes. The valid range is 1500 bytes to 10Mbytes.
-- Target Displayed if Show advanced options is enabled.
Enter the minimum queue delay, and select the unit of
measurement: microseconds (s), milliseconds (ms),
or seconds. The valid range is 10 s to 10 s.
Note: The Target and Interval are automatically
calculated for low-bandwidth links if the values
are not specified.
Show advanced options Select this checkbox to display -- Interval Displayed if Show advanced options is
the Burst, Target, Interval, ECN, Flows, Limit, FQ_CODEL, enabled. When the minimum queue delay has
Quantum, and HTB Quantum options. exceeded the Target for longer than the configured
Interval, the EdgeRouter will enter drop mode. Enter
the time interval, and select the unit of measurement:
microseconds (s), milliseconds (ms), or seconds.
The valid range is 1 ms to 20 s.
Note: The Target and Interval are automatically
calculated for low-bandwidth links if the values
are not specified.
-- ECN Displayed if Show advanced options is enabled.
Select the ECN (Explicit Congestion Notification)
option if you want to mark packets instead of
dropping them. Enabled by default.
-- Flows Displayed if Show advanced options is enabled.
Enter the number of flows into which the incoming
packets are classified. The valid range is 1 to 65535.
The default is 1024.
-- Limit Displayed if Show advanced options is enabled.
Enter the hard limit on the real queue size. The valid
range in number of packets is 1 to 1000000. The
default is 10240.
-- FQ_CODEL Quantum Displayed if Show advanced
options is enabled. Enter the packet scheduling
quantum for FQ_CODEL. The valid range in bytes is
256 to 65535. The default is 1514.
-- HTB Quantum Displayed if Show advanced options
is enabled. Enter the packet scheduling quantum for
HTB. The valid range in bytes is 1 to 65535.
Download Select Apply to download traffic to
manage QoS for download traffic.
-- Rate Enter the bandwidth limit, and select the unit of
measurement: bits/sec, Kbits/sec, or Mbits/sec.
Smart Queue Management To create a new smart -- Burst Displayed if Show advanced options is enabled.
queue, click Add Smart Queue. Then complete the Enter the amount of data that can burst at best-effort,
following options: and select the unit of measurement: bytes, Kbytes,
Policy name Enter a descriptive name. Mbytes, or Gbytes. The valid range is 1500 bytes to
WAN Interface Select the appropriate interface. 10Mbytes.
Upload Select Apply to upload traffic to manage QoS
for upload traffic.

50 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

-- Target Displayed if Show advanced options is enabled. Basic Queue


Enter the minimum queue delay, and select the unit of
measurement: microseconds (s), milliseconds (ms), The Basic Queue feature allows you to configure simple
or seconds. The valid range is 10 s to 10 s. QoS policies without the complexity of the Advanced
Queue feature.
Note: The Target and Interval are automatically
The Basic Queue feature of the EdgeOS Configuration
calculated for low-bandwidth links if the values
Interface generates Advanced Queue configuration in
are not specified.
the background. If you subsequently make changes
-- Interval Displayed if Show advanced options is outside of the Basic Queue sub-tab (either through the
enabled. When the minimum queue delay has CLI or Advanced Queue sub-tab), then the Basic Queue
exceeded the Target for longer than the configured sub-tab will no longer be able to show the configuration.
Interval, the EdgeRouter will enter drop mode. Enter Therefore, if you want to use the Basic Queue sub-tab, then
the time interval, and select the unit of measurement: you should restrict all QoS configuration changes to the
microseconds (s), milliseconds (ms), or seconds. Basic Queue sub-tab.
The valid range is 1 ms to 20 s.
Note: The Target and Interval are automatically
calculated for low-bandwidth links if the values
are not specified.
-- ECN Displayed if Show advanced options is enabled.
Select this option if you want to mark packets instead
of dropping them. Enabled by default.
-- Flows Displayed if Show advanced options is enabled.
Enter the number of flows into which the incoming
packets are classified. The valid range is 1 to 65535.
The default is 1024.
-- Limit Displayed if Show advanced options is enabled.
Enter the hard limit on the real queue size. The valid
range in number of packets is 1 to 1000000. The Here is an example of a Basic Queue policy: In the
default is 10240. following screen, the first queue specifies that the host,
192.168.100.101, has an upload rate limit of 2Mbps and
-- FQ_CODEL Quantum Displayed if Show advanced a download rate limit of 10 Mbps (using SFQ in both
options is enabled. Enter the packet scheduling directions).
quantum for FQ_CODEL. The valid range in bytes is
256 to 65535. The default is 1514. In this context, upload means source (192.168.100.101)
to destination (not specified so it is defined as any), and
-- HTB Quantum Displayed if Show advanced options download means destination to source.
is enabled. Enter the packet scheduling quantum for
HTB. The valid range in bytes is 1 to 65535. The second queue specifies a rate limit of 20 Mbps for
traffic going from 192.168.1.0/24 to 192.168.2.0/24, and
Remove To delete a smart queue, click Remove. 15 Mbps for the reverse direction (192.168.2.0/24 to
You can click Delete to delete the smart queue 192.168.1.0/24), using simple FIFO in both directions.
configuration.

Click Apply to save your changes, or click Cancel.

Ubiquiti Networks, Inc. 51


Chapter 9: QoS EdgeOS User Guide

Here is another example.The Show burst settings option Burst Size Displayed if Show burst settings is enabled.
is enabled, so the Basic Queue sub-tab shows the Enter the amount of data that can burst at best-effort in
burst rate/size settings for each direction. bytes, from source to destination. Examples: 1200, 5k, or
The first queue specifies the following: 12m.
P2P traffic (as identified by the DPI feature) for the host, Queue Type Select the appropriate queue type:
192.168.100.101 -- FQ_CODEL FQ-CODEL (Fair Queuing with Controlled
2 Mbps upload rate limit, allowing bursting up to Delay) is designed to provide equal service for all
3Mbps for 1 MB of data traffic flows while minimizing delays.
10 Mbps download rate limit (bursting up to 15 Mbps -- HFQ Host Fairness Queueing (HFQ) provides
for 5 MB) simplified policy setup for scenarios in which all
hosts of a specific subnet share the same policy. The
FQ-CODEL in both directions EdgeRouter automatically applies the specified policy
The second queue specifies the following: to every host in the specified subnet.
upload rate limit of 30 Mbps (with FQ-CODEL) for the If you selected HFQ, then you have additional settings
192.168.1.0/24 network to configure:
download (reverse) rate limit of 60 Mbps (with HFQ), Subnet Enter the IP address of the subnet.
each client in the 192.168.1.0/24 subnet has Max Rate Enter the bandwidth limit per host in bits
adownload rate limit of 1 Mbps, bursting up to per second, from source to destination. Examples:
1.5Mbps for 500 KB 1200, 5k, or 12m.
ID Select Source IP or Destination IP.
Burst Rate Enter the rate at which data can burst at
best-effort per host in bits per second, from source
to destination. Examples: 1200, 5k, or 12m.
Burst Size Enter the amount of data that can burst
at best-effort per host in bytes, from source to
destination. Examples: 1200, 5k, or 12m.

Show burst settings Select this checkbox to display the


Burst Rate, Burst Size, Reverse Burst Rate, and Reverse Burst -- SFQ With SFQ (Stochastic Fairness Queueing), traffic
Size options. is separated into multiple FIFO (First In, First Out)
queues, which are then serviced using a round-robin
algorithm.
-- PFIFO With PFIFO (Priority First In, First Out)
queueing, packets are serviced in order of priority, so
Add Queue To create a new basic queue, click Add highest-priority packets are serviced first. Medium-
Queue. Then complete the following options: priority packets are serviced next. Low-priority
packets are serviced last.
Source Enter the source IP or network address.
Examples: 11.1.1.1 or 22.2.2.0/24. Reverse Rate Enter the bandwidth limit in bits per
second, from destination to source. Examples: 1200, 5k,
Destination Enter the destination IP or network or 12m.
address. Examples: 11.1.1.1 or 22.2.2.0/32.
Reverse Burst Size Displayed if Show burst settings
Application Select the appropriate application. is enabled. Enter the rate at which data can burst at
Rate Enter the bandwidth limit in bits per second, from besteffort in bits per second, from destination to
source to destination. Examples: 1200, 5k, or 12m. source. Examples: 1200, 5k, or 12m.
Burst Rate Displayed if Show burst settings is enabled.
Enter the rate at which data can burst at best-effort in
bits per second, from source to destination. Examples:
1200, 5k, or 12m.

52 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

Reverse Queue Type Select the appropriate queue Advanced Queue


type:
The Advanced Queue feature provides more functionality
-- FQ_CODEL FQ-CODEL (Fair Queuing with Controlled and flexibility than the existing traffic policy features.
Delay) is designed to provide equal service for all With the Advanced Queue feature, you can configure a
traffic flows while minimizing delays. hierarchical tree of queues to implement a more complex
-- HFQ Host Fairness Queueing (HFQ) provides bandwidth-sharing scheme, as opposed to the existing
simplified policy setup for scenarios in which all traffic-policy shaper, which only supports flat queues.
hosts of a specific subnet share the same policy. The
EdgeRouter automatically applies the specified policy
to every host in the specified subnet.
If you selected HFQ, then you have additional settings
to configure:
Subnet Enter the IP address of the subnet.
Max Rate Enter the bandwidth limit per host in bits
per second, from destination to source. Examples:
1200, 5k, or 12m.
ID Select Source IP or Destination IP.
Burst Rate Enter the rate at which data can burst
at best-effort per host in bits per second, from
destination to source. Examples: 1200, 5k, or 12m. You can attach a QoS policy globally instead of attaching
Burst Size Enter the amount of data that can burst it to only a specific interface. A global attachment
at best-effort per host in bytes, from destination to designates all traffic not traffic specific to one interface
source. Examples: 1200, 5k, or 12m. and direction. A global attachment can make it easier to
-- SFQ With SFQ (Stochastic Fairness Queueing), traffic design the policy and can also provide greater flexibility,
is separated into multiple FIFO (First In, First Out) as the QoS policy is applied after destination NAT and
queues, which are then serviced using a round-robin before source NAT (for example, private IP addresses can
algorithm. be used for QoS policy matching).
-- PFIFO With PFIFO (Priority First In, First Out) A tree of queues consists of root, branch, and leaf nodes.
queueing, packets are serviced in order of priority, so For example, there is a root node R1, which is attached
highest-priority packets are serviced first. Medium- globally. Branch node B11 represents download policies,
priority packets are serviced next. Low-priority and leaf node L12 represents upload policies. For
packets are serviced last. download, the traffic is further divided to use different
policies according to the subnet.
Remove Queue To delete a basic queue, click Remove
Queue. At each root or branch node, you can attach filters to
classify the different traffic that belongs to different child
Click Apply to save your changes, or click Cancel. nodes. At each leaf node, a separately defined queue
type is attached. For example, the upload direction
uses FQCODEL. For download, one subnet uses SFQ
(Stochastic Fairness Queueing) while the other uses HFQ
(Host Fairness Queueing).

Ubiquiti Networks, Inc. 53


Chapter 9: QoS EdgeOS User Guide

Legend and Instructions Configuration Options


Legend and Instructions Click Legend and Instructions config (to add root node) This option creates a root
to display UI (User Interface) information on-screen. node. Click config in the diagram and then select Add
Root from the drop-down menu. Proceed to Add Root
on page 55.

config (to edit a configuration) This option allows you to


make changes, including changing the interface that the
node is attached to. Click the text next to the node icon.
Proceed to Config on page 55.

Show Filters (Not available for leaf nodes.) This option


displays any filter you have created. The target of a filter
can be any descendant of the selected node. Click the text
next to the node icon and select Show Filters. Proceed to
Show Filters on page 55.

Click OK to close the popup.


Icons
The icons indicate the type of node or interface in the Add Branch This option creates a branch node associated
diagram depicting the tree of queues: with a root node. Click the text next to the node icon
that the added node will be attached to. Then select Add
Icon Description Branch. Proceed to the appropriate section: Add Branch
Config
on page 57.

Interfaces that root nodes are connected to

Root nodes

Branch nodes

Leaf nodes
Add Leaf This option creates a leaf node associated with
a root node. Click the text next to the node that the added
User Interface node will be attached to. Then select Add Leaf. Proceed to
The Advanced Queue tab allows you to set up the the appropriate section: Add Leaf on page 57.
root/branch/leaf nodes, filters, and queue types using an
intuitive graphical user interface. The diagram allows for
the following interactions:
Drag and Drop Drag and drop a node so you can move
a branch node from one root node to another.
Pan Pan the tree of queues by dragging it with your
mouse.
Center Click a node to center the diagram around
thatnode.
Zoom Use your mouse wheel to zoom in or out.

54 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

Delete This option deletes a node, as well as all of its Show Filters
descendants and corresponding filters. Click the text next
to the node icon. Proceed to the appropriate section:
Delete on page 58.

Note: The Show Filters option does not apply to leaf


Add Root nodes.
Search Allows you to search for specific text. Begin
typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
characters.
A table displays the following information about each
filter. Click a column heading to sort by that heading.
Description The keywords describing the filter are
Queue ID Enter an identifier. The valid range is 1 to
displayed.
1023.
Filter ID The identifier is displayed.
Attach to Select global or the appropriate interface
that the queue will attach to. Target The target is displayed.
Description Enter keywords to describe the traffic class. Source The source IP address is displayed.
Bandwidth Enter the bandwidth limit, and select the Destination The destination IP address is displayed.
appropriate unit of measurement: bits/sec, Kbits/sec, or Add New Filter Click to create a new filter. The Create
Mbits/sec. Filter screen appears.
Click Save to apply your changes, or click Cancel.
Config

You have two tabs available:


Basic (below)
Queue ID The identifier is displayed.
Match (next column)
Attach to Select global or the appropriate interface
that the queue will attach to. Basic
Description Enter keywords to describe the traffic class.
Bandwidth Enter the bandwidth limit, and select the
appropriate unit of measurement: bits/sec, Kbits/sec, or
Mbits/sec.
Click Save to apply your changes, or click Cancel.

-- Filter ID Enter the identifier.


-- Attach to The queue ID that the filter will attach to is
displayed.
-- Target Select the appropriate target from the
dropdown menu.
-- Description Enter keywords to describe the filter.
Click Save to apply your changes, or click Cancel.

Ubiquiti Networks, Inc. 55


Chapter 9: QoS EdgeOS User Guide

Match -- Protocol Enter the port number of the protocol. The


valid range is 0 to 255.
-- Source Address Enter the IP address or network
address of the source. You can also enter a range of IP
addresses; one of them will be used.
Note: If you enter a network address, enter the IP
address and subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
-- Source Port Enter the port name or number of the
source. You can also enter a range of port numbers;
You have three options available: one of them will be used.
IP/Ether/Mark (below) -- Destination Address Enter the IP address or network
Interface on page 57 address of the destination. You can also enter a range
of IP addresses; one of them will be used.
Application on page 57
Select the option you want to match and go to the Note: If you enter a network address, enter the IP
appropriate instructions. address and subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
IP/Ether/Mark (example: 192.0.2.0/24).
You can configure one or more of the following options: -- Destination Port Enter the port name or number
IP (below) of the destination. You can also enter a range of port
Ethernet on page 56 numbers; one of them will be used.

Mark on page 57 Click Save to apply your changes, or click Cancel.


Ethernet
Go to the appropriate instructions.
IP
Click configure this section to configure the Ether
settings.
Click configure this section to configure the IP settings.

-- Protocol
-- DSCP Enter the IP DSCP (Differentiated Services Code
Point) value. The valid range is 0 to 63. No restrictions on protocols Match packets of all
protocols.
802.1p Class of Service TOS Range DSCP Range WME Category Choose a protocol by name Select the protocol
from the drop-down list. Match packets of this
0 Best Effort 0x00-0x1f 0-7 Best Effort
protocol.
1 Background 0x20-0x3f 8-15 Background

2 Spare 0x40-0x5f 16-23 Background


3 Excellent Effort 0x60-0x7f 24-25, 28-31 Best Effort
4 Controlled Load 0x80-0x9f 32-39 Video Enter a protocol number Enter the port number
5 Video of the protocol. Match packets of this protocol. The
0xa0-0xbf 40-45 Video
(<100 ms latency) valid range is 0 to 65535.
6 Voice 0x68, 0xb8, 26-27, 46-47,
Voice
(<10 ms latency) 0xc0-0xdf 48-55
7 Network Control 0xe0-0xff 56-63 Voice

56 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

Enter a protocol name Enter the name of the Application


protocol. Match packets of this protocol.

-- Source Enter the Ethernet source address.


-- Destination Enter the Ethernet destination address.
Click Save to apply your changes, or click Cancel.
-- Application Select the appropriate application
Mark category from the drop-down menu. Refer to
Click configure this section to configure the Mark Category on page 19 for more information.
settings. Click Save to apply your changes, or click Cancel.
Add Branch

Queue ID Enter an identifier. The valid range is 1 to


-- Mark Configure the filter to match packets with the 1023.
specified marking. For example, you can configure a Parent The queue ID that the branch node will attach
firewall policy to add different markings to packets to is displayed.
according to certain criteria (refer to Firewall
Policies on page 28 for more information). These Priority Select the appropriate priority for usage of
markings can then be matched in the QoS filters. excess bandwidth.

Enter the appropriate decimal or hexadecimal Description Enter keywords to describe the traffic class.
value. The valid decimal range is 0 to 255. The valid Bandwidth Enter the bandwidth limit, and select the
hexadecimal range is 0x0 to 0xff. appropriate unit of measurement: bits/sec, Kbits/sec, or
Mbits/sec.
Note: Advanced users can use a higher value than
255 or 0xff; however, proceed with caution. Click Save to apply your changes, or click Cancel.

Click Save to apply your changes, or click Cancel. Note: To change the parent of a branch node,
drag the branch node to the desired parent node.
Interface The corresponding filters will also be deleted.
Add Leaf

-- Interface Select the appropriate interface from the


drop-down menu.
Click Save to apply your changes, or click Cancel.

Queue ID Enter an identifier. The valid range is 1 to


1023.
Parent The queue ID that the leaf node will attach to is
displayed.
Priority Select the appropriate priority for usage of
excess bandwidth.

Ubiquiti Networks, Inc. 57


Chapter 9: QoS EdgeOS User Guide

Queue Type Select the queue type for this class. Go to Proceed to the appropriate instructions for your queue
Queue Types on page 58 for more information. type.
Description Enter keywords to describe the traffic class. A table displays the following information about each
Bandwidth Enter the guaranteed bandwidth, and queue type. Click a column heading to sort by that
select the appropriate unit of measurement: bits/sec, heading.
Kbits/sec, or Mbits/sec. Name The identifier of the queue type is displayed.
Ceiling Enter the bandwidth ceiling (maximum Type The queue type is displayed.
allowed bandwidth), and select the appropriate unit of
measurement: bits/sec, Kbits/sec, or Mbits/sec.
Burst Rate Enter the maximum data rate that can
burst at best-effort, and select the unit of meaurement:
bits/sec, Kbits/sec, or Mbits/sec.
Burst Size Enter the maximum amount of data that can
burst at best-effort, and select the unit of measurement:
bytes, Kbytes, or Mbytes, or Gbytes. FQ_CODEL
Click Save to apply your changes, or click Cancel. FQ-CODEL (Fair Queuing with Controlled Delay) is
designed to provide equal service for all traffic flows while
Note: To change the parent of a leaf node, drag minimizing delays.
the leaf node to the desired parent node.

Delete

Click Yes to delete the node and all nodes and filters
attached to it, or click No to cancel.
Queue Types Name Enter a unique identifier for this queue type.
Queueing determines how the EdgeRouter prioritizes Type FQ_CODEL is displayed.
traffic. You can create multiple queue types that use Target Enter the minimum queue delay, and select the
different algorithms to manage traffic. unit of measurement: microseconds (s), milliseconds
Note: The Queue Types option does not apply to root (ms), or seconds. The valid range is 10 s to 10 s.
or branch nodes. Interval When the minimum queue delay has
exceeded the Target for longer than the configured
Search Allows you to search for specific text. Begin Interval, the EdgeRouter will enter drop mode. Enter
typing; there is no need to press enter. The results are the time interval, and select the unit of measurement:
filtered in real time as soon as you type two or more microseconds (s), milliseconds (ms), or seconds. The
characters. valid range is 1 ms to 20 s.
Add Queue Type To add a queue type, click Add Queue ECN Select this option if you want to mark packets
Type and select one of the following options: instead of dropping them. Enabled by default.
FQ_CODEL on page 58 Flows Enter the number of flows into which the
HFQ on page 59 incoming packets are classified. The valid range is 1 to
SFQ on page 59 65535.
PFIFO on page 59 Limit Enter the hard limit on the real queue size. The
valid range in number of packets is 1 to 1000000.
Quantum Enter the packet scheduling quantum for
FQ_CODEL. The valid range in bytes is 256 to 65535.
Click Save to apply your changes, or click Cancel.

58 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 9: QoS

HFQ Hash Interval Enter the hash interval in seconds. The


valid range is 0 to 4294967295.
Host Fairness Queueing (HFQ) provides simplified policy
setup for scenarios in which all hosts of a specific subnet Queue Limit Enter the maximum queue size in packets.
share the same policy. The EdgeRouter automatically The valid range is 1 to 127.
applies the specified policy to every host in the specified Click Save to apply your changes, or click Cancel.
subnet.
PFIFO
With PFIFO (Priority First In, First Out) queueing, packets
are serviced in order of priority, so highest-priority packets
are serviced first. Medium-priority packets are serviced
next. Low-priority packets are serviced last.

Name Enter a unique identifier for this queue type.


Type HFQ is displayed.
Description Enter keywords to describe the queue Name Enter a unique identifier for this queue type.
type. Type PFIFO is displayed.
Host Identifier Select the appropriate host identifier Limit Enter the hard limit on the real queue size. The
for the host fairness queue, Source IP or Destination IP. valid range in number of packets is 1 to 1000000.
The default is Source IP. Click Save to apply your changes, or click Cancel.
Max Rate Enter the maximum bandwidth limit per
host, and select the appropriate unit of measurement:
bits/sec, Kbits/sec, or Mbits/sec.
Subnet Enter the IPv4 subnet (up to /22 in size) for the
host fairness queue.
Note: If you enter a network address, enter the IP
address and subnet mask using slash notation:
<network_IP_address>/<subnet_mask_number>
(example: 192.0.2.0/24).
Click Save to apply your changes, or click Cancel.
SFQ
With SFQ (Stochastic Fairness Queueing), traffic is
separated into multiple FIFO (First In, First Out) queues,
which are then serviced using a round-robin algorithm.

Name Enter a unique identifier for this queue type.


Type SFQ is displayed.
Description Enter keywords to describe the queue
type.

Ubiquiti Networks, Inc. 59


Chapter 9: QoS EdgeOS User Guide

60 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 10: Users

Chapter 10: Users Complete the following:


Username Enter a unique account name for the user.
The Users tab displays account information about users. Full Name Enter the actual name of the user.
You can also configure these user accounts. Any setting
Password Enter the password.
marked with a blue asterisk * is required. When the
information icon is displayed, you can click the icon for Confirm Enter the password again.
more information about an option. Role Select the appropriate permission level:
You have two sub-tabs: -- Admin The user can make changes to the
Local Displays configurable user accounts. EdgeRouter configuration.
Remote Displays statistics about the users who remotely -- Operator The user can view the EdgeRouter
access the EdgeRouter. configuration but cannot make changes.
Click Save to apply your changes.
Local Search Allows you to search for specific text. Begin
Configure user accounts with unique logins. typing; there is no need to press enter. The results are
Add User To create a new user, click Add User. filtered in real time as soon as you type two or more
The Create New Local User screen appears. characters.
A table displays the following information about each
user. Click a column heading to sort by that heading.
Username The account name of the user is displayed.
Name The actual name of the user is displayed.
Level The permission level of the user is displayed.
Active Sessions The number of times the user has
accessed the EdgeRouter is displayed.
Date Connected The date of the users most recent
access is displayed.
Uptime The duration of the users access is displayed.
Status The status of the user is displayed.

Ubiquiti Networks, Inc. 61


Chapter 10: Users EdgeOS User Guide

Actions Click the Actions button to access the following Remote


options:
Remote access of the EdgeRouter is logged on this tab.
Config To configure the user, click Config. Go to the
Configure the User section below.
Delete Delete the user account; its configuration will be
removed.
Configure the User
After you click Config, the Username screen appears. Make
changes as needed.

Search Allows you to search for specific text. Begin


typing; there is no need to press enter. The results are
filtered in real time as soon as you type two or more
Username The unique account name is displayed. characters.
Full Name Enter the actual name of the user. PPTP/L2TP/PPPOE/All Click the appropriate tab to filter
Role Select the appropriate permission level: the remote users as needed.
-- Admin The user can make changes to the PPTP All users who use PPTP (Point-to-Point Tunneling
EdgeRouter configuration. Protocol) connections are displayed.
-- Operator The user can view the EdgeRouter L2TP All users who use L2TP (Layer 2 Tunneling
configuration but cannot make changes. Protocol) connections are displayed.
Password Click Change Password to make a change. PPPOE All users who use PPPOE (Point-to-Point over
-- Password Enter the new password. Ethernet) connections are displayed.
-- Confirm Enter the new password again. All All remote users are displayed by default.
-- Cancel Change Password Click this option to cancel. A table displays the following information about each
remote user. Click a column heading to sort by that
heading.
Name The actual name of the user is displayed.
Type The type of connection used by the user is
displayed.
Time The duration of the users access is displayed.
Interface The specific interface used by the user is
displayed.
Remote IP The remote IP address of the user is displayed.
Click Save to apply your changes, or click Cancel. TX packets The number of packets transmitted is
displayed.
TX bytes The number of bytes transmitted is displayed.
RXpackets The number of packets received is displayed.
RX bytes The number of bytes received is displayed.

62 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 11: Config Tree

Chapter 11: Config Tree User Interface


The following are used throughout the config tree:
The Config Tree tab allows you to view and modify the
node The term node describes any feature or field.
configuration using the config tree in the graphical user
interface instead of typing commands in the Command + (plus sign) Equivalent to the set command in the CLI.
Line Interface (CLI). (Refer to Command Line Interface Completing a field also means set. Click to add a node to
on page 89 for more information about the CLI.) the config. The node is displayed in regular font.
This chapter describes the basic functionality and user When you click + (plus sign), the node + becomes node -.
interface of the Config Tree. - (minus sign) Equivalent to the delete command in the
When the information icon is displayed, you can click CLI. Click to remove a node from the config. The node is
the icon for more information about an option. displayed in boldface.
Click the corresponding open/close tab to hide or display When you click - (minus sign), the node - becomes node +.
the Configuration tree section or the Discard and Preview node (red text) If you click + (plus sign) and the node is
section. new, then the node is displayed in red.
For an existing node, the value of the node or child nodes
will be changed after changes are applied. For example, if
the value of host-name under system changes on the user
interface, then system and host-name are displayed in red.
Open/Close Tab
For a new node, the color red indicates that the node will
be added to the EdgeRouter after changes are applied.
Open/Close Tab
node (red text with red strikethrough) If you click
-(minus sign) for an existing node, then the node is
displayed in red with red strikethrough. It will be removed
after changes are applied.
. (period) Enter . (period) as an empty value.
(blank field) A blank field deletes the value.
Update List If displayed, click Update List when you have
added a node. This adds the node to the Configuration
section on the left.
Ubiquiti Networks, Inc. 63
Chapter 11: Config Tree EdgeOS User Guide

Discard and Preview CLI Modes


Discard Click Discard to cancel your changes. The Discard Operational Mode
Confirmation screen appears.
The root level of the config tree includes the following:
Yes Click Yes to remove your changes.
custom-attribute
No Click No to keep your changes, which are not
applied yet. firewall
interfaces
load-balance
policy
port-forward
protocols
service
system
Preview Click Preview to preview your new configuration
changes. The Commands to commit screen appears and traffic-control
displays a summary of changes. You have two options: traffic-policy
Apply Click Apply to save your changes immediately. vpn
Not Now Click Not Now to wait. zone-policy
Place your mouse over any node to display a brief
description.

Configuration Example
Here is an example:
1. In the Configuration section, click custom-attribute.
2. Click Add to add a custom attribute.

64 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 11: Config Tree

3. In the custom-attribute field, enter the name you want The configuration has been saved.
to use. You have two options:
To add another custom attribute, click Add.
To remove a custom attribute, click Remove.
Note: Type validation for generic types (such as text,
numbers, and IP addresses) is used for fields.

4. Click Update List to update your list of custom


attributes.

5. Click Preview.

6. Click Apply to save your changes.

Ubiquiti Networks, Inc. 65


Chapter 11: Config Tree EdgeOS User Guide

66 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

Chapter 12: Wizards Add a New Feature Wizard


You can add a feature to the EdgeOS Configuration
The Wizards tab allows you to add a new feature wizard Interface by uploading a wizard as an archive file in the
and access any available wizards: tar.gz format. It should include three files:
Setup Wizards wizard.html
Basic Setup on page68 wizard-run
Load Balancing Wizard on page71 validator.json
Load Balancing2 Wizard on page75 Creating a wizard requires some knowledge of
Switch Wizard (ER-X, ER-X-SFP, or EP-R6) on programming. For more information, go to:
page76 ubnt.link/EdgeOS_Feature_Wizard
WAN+2LAN Wizard on page78 + To add a new feature wizard, click +.
WAN+2LAN2 Wizard on page80 The Upload New Feature Wizard screen appears.
Feature Wizards
DNS Host Names on page83
TCP MSS Clamping on page84
UPnP on page84
VPN Status on page84
Required fields are marked by a blue asterisk *. When the
information icon is displayed, you can click the icon for Complete the following:
more information about an option.
Wizard Name Enter the name of the new wizard.
Wizard File Click Upload a file and select your
tar.gzfile.
Click Save to apply your changes.

Ubiquiti Networks, Inc. 67


Chapter 12: Wizards EdgeOS User Guide

Setup Wizards
There are four types of setup wizards:
Basic Setup (see below)
Load Balancing Wizards on page71
Switch Wizard (ER-X, ER-X-SFP, or EP-R6) on
page76
SOHO Deployment Wizards on page77
Basic Setup
The setup wizard will guide you through a typical Small
Office Home Office (SOHO) deployment:
Configures the Internet connection and NAT
masquerade for the Internet port
Static IP Select this option if your ISP has assigned
Configures eth0 as the WAN port
static network settings to your network.
Enables default firewall settings for the Internet port
-- Address Enter the IP address in the first field and the
Enables DHCP server functionality for local networks subnet mask or prefix length in the second field.
Automatically enables DNS (Domain Name System) -- Gateway Enter the IP address of the ISPs gateway
forwarding for local networks server, which provides the point of connection to the
Automatically enables TCP MSS (Maximum Segment Internet.
Size) clamping for a PPPoE (Pointto-Point over Ethernet) -- DNS server Enter the IP address of the ISPs DNS
connection server.
Bridges the LAN interfaces and/or change the subnets
configured on the LAN interfaces
Configure user accounts during setup
Before You Begin
You can still use the Basic Setup wizard even if the
EdgeRouter is already configured. The Basic Setup setup
wizard will replace the entire configuration and require a
reboot when the new configuration is applied.
Note: The Basic Setup wizard is the same as the
WAN+2LAN2 wizard.
Overview
Click the Basic Setup wizard to begin the SOHO
configuration.
Note: The Basic Setup wizard is designed to set PPPoE Select this option if your ISP uses PPPoE.
up a basic SOHO network. For full configuration
-- Account Name Enter the name of your PPPoE
functionality, use the other tabs of the EdgeOS
account.
Configuration Interface or the Command Line
Interface (CLI). -- Password Enter the password of your PPPoE account.
Internet Port (eth0)
Connect eth0 to your Internet connection.
Internet connection type Select the Internet connection
type your network is using.
DHCP Select this option if your ISP automatically
assigns network settings to your network.

68 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

One LAN (ER-X, ER-X-SFP, or EP-R6 Only)


Only use one LAN Select this option to use a single local
area network.

VLAN Some ISPs requires support for an Internet


connection on the VLAN. If your ISP uses a tagged VLAN LAN Ports (ER-X, ER-X-SFP, or EP-R6 Only)
to provide Internet connectivity, select this option. The Address Enter the IP address in the first field, and enter
configuration generated by the wizard will place the the subnet mask or prefix length in the second field.
needed settings under the VLAN interface instead.
DHCP Select this checkbox to have the EdgeRouter assign
VLAN ID Available if VLAN is enabled. Enter the VLAN ID IP addresses.
used by the ISP.

Firewall Enabled by default. This option applies Bridging


the default firewall settings to the EdgeRouter; only If you are using the ERPoe-5, then go to Bridging
established and related traffic types are allowed for local (ERPoe-5) on page70.
and inbound traffic. Bridging Select this option to bridge the LAN interfaces
DHCPv6 PD Some ISPs use DHCPv6 PD (Prefix into a single network.
Delegation) to provide IPv6 service. If required, select this Bridging will decrease performance because it performs
option and configure the following: the task of a switch in software; in most cases, it is better
Prefix length Available if DHCPv6 PD is enabled. Select to use a hardware switch instead. However, bridging may
the appropriate prefix length: /56, /60, or /64. be useful if the extra port provided by bridging is required
Firewall Available if DHCPv6 PD is enabled. This and the performance impact is acceptable.
option applies the default IPv6 firewall settings to the Note: Bridging is not available for the ER-X, ER-X-SFP,
EdgeRouter; only established and related traffic types or EP-R6.
are allowed for local and inbound traffic. Enabled by
default.
IPv6 LANs Available if DHCPv6 PD is enabled. The IPv6
LAN interfaces are displayed. They are not currently
configurable and are the same as the LAN interfaces for
the IPv6 part of the wizard (two LANs are used so the
corresponding interfaces, eth1 and eth2, or eth1 and You have two options:
switch0, are shown in IPv6 LANs). All LAN interfaces use
If Bridging is disabled, then configure the following:
the service slaac.
LAN Port (eth1) on page70
(Optional) Secondary LAN port (eth2) on page70
If Bridging is enabled, then go to LAN Ports (eth1 and
eth2) on page70.

Ubiquiti Networks, Inc. 69


Chapter 12: Wizards EdgeOS User Guide

LAN Port (eth1)


If Bridging is disabled, connect eth1 to your local network,
such as a switch. Then click configure this section.

You have two options:


If Bridging is disabled, then configure the following:
(Optional) Secondary LAN Port (eth1) section below
LAN Ports (eth2, eth3, and eth4) section below
Address Enter the IP address in the first field, and enter
If Bridging is enabled, then go to the LAN ports (eth1, eth2,
the subnet mask or prefix length in the second field.
eth3, and eth4) section below.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses. (Optional) Secondary LAN Port (eth1)
If Bridging is disabled, connect eth1 to your local network,
(Optional) Secondary LAN port (eth2)
such as a switch. Then click configure this section.
If Bridging is disabled, you can connect eth2 to your
secondary local network. Then click configure this
section.
Address Enter the IP address in the first field, and enter
the subnet mask or prefix length in the second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.
Address Enter the IP address in the first field, and enter
the subnet mask or prefix length in the second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.
LAN Ports (eth2, eth3, and eth4)
If Bridging is disabled, connect eth2, eth3, and/or eth4
to your devices and/or a switch. (The eth2, eth3, and/or
LAN Ports (eth1 and eth2)
eth4 become switch ports for a local network.) Then click
If Bridging is enabled, connect the local ports to your configure this section.
devices and/or a switch that connects to additional
devices. Then click configure this section.

Address Enter the IP address in the first field, and enter


the subnet mask or prefix length in the second field.
Address Enter the IP address in the first field, and enter DHCP Select this checkbox to have the EdgeRouter assign
the subnet mask or prefix length in the second field. IP addresses.
DHCP Select this checkbox to have the EdgeRouter assign
LAN ports (eth1, eth2, eth3, and eth4)
IP addresses.
If Bridging is enabled, connect eth1, eth2, eth3, and/or
Bridging (ERPoe-5) eth4 to your devices and/or a switch. (The eth1, eth2, eth3,
Bridging Select this option to bridge the LAN interfaces and/or eth4 become switch ports for a local network.)
into a single network. Then click configure this section.
Bridging will decrease performance because it performs Address Enter the IP address in the first field, and enter
the task of a switch in software; in most cases, it is better the subnet mask or prefix length in the second field.
to use a hardware switch instead. However, bridging may DHCP Select this checkbox to have the EdgeRouter assign
be useful if the extra port provided by bridging is required IP addresses.
and the performance impact is acceptable.

70 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

Keep existing users Keep the existing usernames and


passwords on the EdgeRouter.

User Setup
You can set up the username and password for the new
EdgeRouter configuration.
User Select one of the following options:
Use default user Replace the default user, ubnt.
-- User Enter a new admin username. Click Apply to save your changes, or click Cancel.
-- Password Enter a new password.
Load Balancing Wizards
-- Confirm Password Enter the new password again.
There are two load balancing setup wizards available:
Load Balancing The Load Balancing setup wizard sets
up basic load balancing and failover using two different
Internet connections. You can also configure user
accounts during setup. Go to the Load Balancing Wizard
section below.
Load Balancing2 The Load Balancing2 setup wizard
sets up basic load balancing and failover using two
different wireless links. You can also configure user
accounts during setup. Go to Load Balancing2
Wizard on page75.
Load Balancing Wizard
Before You Begin
Create new admin user Create a new admin user and
remove the default user, ubnt. Complete the following: Use the Load Balancing setup wizard to set up basic load
balancing with two Internet connections from different
-- User Enter a new admin username.
Internet Service Providers (ISPs).
-- Password Enter a new password.
The Load Balancing setup wizard will replace the entire
-- Confirm Password Enter the new password again. configuration and require a reboot when the new
configuration is applied.
Overview
Click the Load Balancing setup wizard to begin.
Go to Load Balancing on page72 unless you have
the ERPoe-5, then go to Load Balancing > ERPoe-5 on
page75.

Ubiquiti Networks, Inc. 71


Chapter 12: Wizards EdgeOS User Guide

Load Balancing
First Internet Port (eth0)
Connect eth0 to your Internet connection.
Internet connection type Select the first Internet
connection type your network is using.
DHCP Select this option if your ISP automatically
assigns network settings to your network.

Firewall Enabled by default. This option applies


the default firewall settings to the EdgeRouter; only
established and related traffic types are allowed for local
and inbound traffic.

Static IP Select this option if your ISP has assigned


static network settings to your network. Second Internet Port (eth1)
-- Address Enter the IP address in the first field and the Connect eth1 to your Internet connection.
subnet mask or prefix length in the second field.
Internet connection type Select the second Internet
-- Gateway Enter the IP address of the ISPs gateway connection type your network is using.
server, which provides the point of connection to the
DHCP Select this option if your ISP automatically
Internet.
assigns network settings to your network.
-- DNS server Enter the IP address of the ISPs DNS
server.

Static IP Select this option if your ISP has assigned


static network settings to your network.
-- Address Enter the IP address in the first field and the
subnet mask or prefix length in the second field.
-- Gateway Enter the IP address of the ISPs gateway
server, which provides the point of connection to the
Internet.
PPPoE Select this option if your ISP uses PPPoE. -- DNS server Enter the IP address of the ISPs DNS
-- Account Name Enter the name of your PPPoE server.
account.
-- Password Enter the password of your PPPoE account.
show password Select to display the password in
plaintext.

72 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

Port Select the appropriate port for Internet


configuration.
Internet connection type Select the second Internet
connection type your network is using.
DHCP Select this option if your ISP automatically
assigns network settings to your network.
Static IP Select this option if your ISP has assigned
static network settings to your network.
-- Address Enter the IP address in the first field and the
subnet mask or prefix length in the second field.
-- Gateway Enter the IP address of the ISPs gateway
server, which provides the point of connection to the
PPPoE Select this option if your ISP uses PPPoE. Internet.
-- Account Name Enter the name of your PPPoE -- DNS server Enter the IP address of the ISPs DNS
account. server.
-- Password Enter the password of your PPPoE account. PPPoE Select this option if your ISP uses PPPoE.
show password Select to display the password in -- Account Name Enter the name of your PPPoE
plaintext. account.
-- Password Enter the password of your PPPoE account.
show password Select to display the password in
plaintext.
Firewall Enabled by default. This option applies
the default firewall settings to the EdgeRouter; only
established and related traffic types are allowed for local
and inbound traffic.
Remove Click Remove to delete the Internet port.
LAN Port (eth2)
Click configure this section if you connect eth2 to your
local network, such as a switch. Go to LAN Ports (eth2,
Firewall Enabled by default. This option applies eth3, and eth4) on page74 if you have the ERPoe-5,
the default firewall settings to the EdgeRouter; only ERX, ER-X-SFP, or EP-R6.
established and related traffic types are allowed for local
Port Select the appropriate port.
and inbound traffic.
Address The IP address is displayed in the first field,
and the subnet mask or prefix length is displayed in the
second field.
Failover Only Disabled by default. Select this option if DHCP Select this checkbox to have the EdgeRouter assign
you want to use eth1 only if eth0 fails. IP addresses.

Add Additional Internet Port


If you need more Internet ports, then click Add Additional
Internet port.

Ubiquiti Networks, Inc. 73


Chapter 12: Wizards EdgeOS User Guide

LAN Ports (eth2, eth3, and eth4)


(ERPoe-5, ER-X, ER-X-SFP, or EP-E6) Click configure this
section if you connect eth2, eth3, and/or eth4 to your
devices and/or a switch. (The eth2, eth3, and/or eth4
become switch ports for a local network.)
Port The switch0 port is automatically selected.
Address The IP address is displayed in the first field,
and the subnet mask or prefix length is displayed in the
second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.

Keep existing users Keep the existing usernames and


passwords on the EdgeRouter.

User Setup
You can set up the username and password for the new
EdgeRouter configuration.
User Select one of the following options:
Use default user Replace the default user, ubnt.
-- User Enter a new admin username. LAN-to-LAN Exclusion
-- Password Enter a new password. The LAN-to-LAN exclusion feature excludes LANtoLAN
-- Confirm Password Enter the new password again. traffic from load-balancing. Click configure this section to
manage this feature.
The load balancing feature creates new routing tables for
the WAN interfaces to use. This works well for LANtoWAN
traffic; however, you do not want to load-balance traffic
that is going from LAN to LAN. We recommend that you
create a firewall/NAT group for the LAN networks and add
a rule to the appropriate firewall policy, so this group uses
the main routing table for LANtoLAN destinations. Refer
to Firewall/NAT on page27 for more information.
Note: The LAN networks rule must precede the
loadbalance rule.
LAN-to-LAN exclusion This option excludes LANtoLAN
traffic from load-balancing. Enabled by default.
Create new admin user Create a new admin user and
remove the default user, ubnt. Complete the following:
-- User Enter a new admin username.
-- Password Enter a new password.
-- Confirm Password Enter the new password again.

Click Apply to save your changes, or click Cancel.

74 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

Load Balancing > ERPoe-5 LAN-to-LAN Exclusion


User Setup The LAN-to-LAN exclusion feature excludes LANtoLAN
You can set up the username and password for the new traffic from load-balancing. Click configure this section to
EdgeRouter configuration. manage this feature.
User Select one of the following options: The load balancing feature creates new routing tables for
the WAN interfaces to use. This works well for LANtoWAN
Use default user Replace the default user, ubnt. traffic; however, you do not want to load-balance traffic
-- User Enter a new admin username. that is going from LAN to LAN. We recommend that you
-- Password Enter a new password. create a firewall/NAT group for the LAN networks and add
a rule to the appropriate firewall policy, so this group uses
-- Confirm Password Enter the new password again.
the main routing table for LANtoLAN destinations. Refer
to Firewall/NAT on page27 for more information.
Note: The LAN networks rule must precede the
loadbalance rule.
LAN-to-LAN exclusion This option excludes LANtoLAN
traffic from load-balancing. Enabled by default.

Create new admin user Create a new admin user and


remove the default user, ubnt. Complete the following: Click Apply to save your changes, or click Cancel.
-- User Enter a new admin username.
Load Balancing2 Wizard
-- Password Enter a new password.
Before You Begin
-- Confirm Password Enter the new password again.
Use the Load Balancing2 setup wizard to set up basic
load balancing and failover using two wireless links. The
setup assumes that all traffic from the target network
(the network behind the EdgeRouter) will be routed by
the EdgeRouter through one of the two wireless links to
the destinations, and vice versa for traffic destined for the
target network.
The Load Balancing2 setup wizard will replace the entire
configuration and require a reboot when the new
configuration is applied.

Keep existing users Keep the existing usernames and


passwords on the EdgeRouter.

Ubiquiti Networks, Inc. 75


Chapter 12: Wizards EdgeOS User Guide

Overview Switch Wizard (ER-X, ER-X-SFP, or EP-R6)


Click the Load Balancing2 setup wizard to begin. The setup wizard will set up the EdgeRouter X, EdgeRouter
X SFP, or EdgePoint EP-R6 as a layer-2 switch.
Management Access
Note: Ensure that the management IP/VLAN
settings and port VLAN settings allow management
access. For example, if the management VLAN is set
but the VLAN is not set on any of the ports, then the
EdgeRouter will not be accessible after the reboot
and a reset to factory defaults will be needed to
reestablish access.
Management VLAN Select this option to use a
nondefault VLAN for management.
VLAN ID Enter the appropriate VLAN ID for
management. The valid range is 1 to 4087.
Management IP Select the appropriate option:
DHCP Select this option to automatically obtain the
management IP address and other network settings
using DHCP.

Target Network
(interface) Select the appropriate interface.
(network address) Enter the IPv4 address with
subnet mask or prefix for the target network. Example:
192.0.3.1/24
First Link Static IP Select this option to set a static management
(interface) Select the appropriate interface. IP address and other network settings.
(network address) Enter the IPv4 address with subnet -- Address Enter the IP address in the first field and the
mask or prefix for the first wireless link. Example: subnet mask or prefix length in the second field.
192.0.1.1/24 -- Gateway Enter the IP address of the ISPs gateway
server, which provides the point of connection to the
Second Link
Internet.
(interface) Select the appropriate interface.
-- DNS server Enter the IP address of the ISPs DNS
(network address) Enter the IPv4 address with subnet server.
mask or prefix for the second wireless link. Example:
192.0.2.1/24
Failover Only
(checkbox) Disabled by default. Select this option if you
want to use the second link only if the first link fails.
First Link Nexthop
(next hop address) Enter the next hop IPv4 address
for the first wireless link (address on the corresponding
interface of the other router). Example: 192.0.1.2
Second Link Nexthop
(next hop address) Enter the next hop IPv4 address for
the second wireless link (address on the corresponding
interface of the other router). Example: 192.0.2.2
Click Apply to save your changes, or click Cancel.

76 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

VLAN Aware Create new admin user Create a new admin user and
remove the default user, ubnt. Complete the following:
Enabled Starting with EdgeOS v1.8.5, the per-port
VLAN feature is available. If this option is enabled, then -- User Enter a new admin username.
untagged and tagged VLANS can be set for each port in -- Password Enter a new password.
switch mode. If this option is kept disabled (default), then
-- Confirm Password Enter the new password again.
the switch ports will pass all VLANs automatically (simple
layer-2 switching with no per-port VLAN).
Switch Ports
If VLAN Aware is enabled, then configure the following
options for each switch port.
pvid Enter the Port Virtual Local Area Network (VLAN)
ID. The valid range is 1 to 4087.
vid Enter the Virtual Local Area Network (VLAN) ID.
Multiple VIDs are allowed; separate the VIDs with a
comma. The valid range is 1 to 4087.

Keep existing users Keep the existing usernames and


passwords on the EdgeRouter.

Click Apply to save your changes, or click Cancel.


SOHO Deployment Wizards
The setup wizard will guide you through a typical Small
User Setup Office Home Office (SOHO) deployment:
You can set up the username and password for the new Configures the Internet connection and NAT
EdgeRouter configuration. masquerade for the Internet port
User Select one of the following options: Enables default firewall settings for the Internet port
Use default user Replace the default user, ubnt. Enables DHCP server functionality for local networks
-- User Enter a new admin username. Automatically enables DNS (Domain Name System)
-- Password Enter a new password. forwarding for local networks
-- Confirm Password Enter the new password again. Automatically enables TCP MSS (Maximum Segment
Size) clamping for a PPPoE (Pointto-Point over Ethernet)
connection

Ubiquiti Networks, Inc. 77


Chapter 12: Wizards EdgeOS User Guide

There are two SOHO deployment setup wizards available: Address The IP address is displayed in the first field,
WAN+2LAN The WAN+2LAN setup wizard is the most and the subnet mask or prefix length is displayed in the
basic version available. The WAN port is eth1. Go to the second field.
WAN+2LAN Wizard section below. DHCP Select this checkbox to have the EdgeRouter assign
WAN+2LAN2 The WAN+2LAN2 setup wizard allows you IP addresses.
to bridge the LAN interfaces and/or change the subnets Internet Port (eth1)
configured on the LAN interfaces. The WAN port is eth0. Connect eth1 to your Internet connection.
You can also configure user accounts during setup. Go
to WAN+2LAN2 Wizard on page80. Internet connection type Select the Internet connection
type your network is using.
Note: The WAN+2LAN2 wizard is the same as the DHCP Select this option if your ISP automatically
Basic Setup wizard. assigns network settings to your network.
WAN+2LAN Wizard
Before You Begin
If the EdgeRouter is already configured, then the
WAN+2LAN setup wizard is not available. It is available only
if the EdgeRouter uses its default configuration.
You can reset the EdgeRouter to its factory defaults using
the EdgeOS Configuration Interface:
System Tab Refer to Reset Config to Default on
page7 for instructions. Static IP Select this option if your ISP has assigned
Wizards Tab Click the WAN+2LAN setup wizard in the static network settings to your network.
column on the left. The following window will appear. -- Address Enter the IP address in the first field and the
subnet mask or prefix length in the second field.
-- Gateway Enter the IP address of the ISPs gateway
server, which provides the point of connection to the
Internet.
-- DNS server Enter the IP address of the ISPs DNS
server.
Click Reset to Default Conguration and then follow the on-screen
instructions.
Overview
Click the WAN+2LAN setup wizard to begin the SOHO
configuration.
Go to the WAN+2LAN section below unless you have
the ERPoe-5, then go to WAN+2LAN > ERPoe-5 on
page79.
Note: The WAN+2LAN setup wizard is designed to
set up a basic SOHO network. For full configuration
functionality, use the other tabs of the EdgeOS
Configuration Interface or the Command Line
PPPoE Select this option if your ISP uses PPPoE.
Interface (CLI).
-- Account Name Enter the name of your PPPoE
WAN+2LAN account.
LAN Port (eth0)
-- Password Enter the password of your PPPoE account.
Connect eth0 to your local network, such as a switch.
show password Select to display the password in
plaintext.

78 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

Internet port (eth1)


Connect eth1 to your Internet connection.
Internet connection type Select the Internet connection
type your network is using.
DHCP Select this option if your ISP automatically
assigns network settings to your network.

Firewall Enabled by default. This option applies


the default firewall settings to the EdgeRouter; only
established and related traffic types are allowed for local
and inbound traffic.

Static IP Select this option if your ISP has assigned


static network settings to your network.
(Optional) Secondary LAN Port (eth2) -- Address Enter the IP address in the first field and the
Click configure this section if you connect eth2 to your subnet mask or prefix length in the second field.
local network, such as a switch. -- Gateway Enter the IP address of the ISPs gateway
Address The IP address is displayed in the first field, server, which provides the point of connection to the
and the subnet mask or prefix length is displayed in the Internet.
second field. -- DNS server Enter the IP address of the ISPs DNS
DHCP Select this checkbox to have the EdgeRouter assign server.
IP addresses.

Click Apply to save your changes, or click Cancel.


WAN+2LAN > ERPoe-5
Optional Secondary LAN Port (eth0) PPPoE Select this option if your ISP uses PPPoE.
Click configure this section if you connect eth0 to your -- Account Name Enter the name of your PPPoE
secondary local network. account.
-- Password Enter the password of your PPPoE account.
show password Select to display the password in
plaintext.

Address The IP address is displayed in the first field,


and the subnet mask or prefix length is displayed in the
second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.

Ubiquiti Networks, Inc. 79


Chapter 12: Wizards EdgeOS User Guide

Firewall Enabled by default. This option applies


the default firewall settings to the EdgeRouter; only
established and related traffic types are allowed for local
and inbound traffic.

LAN Ports (eth2, eth3, and eth4)


Click configure this section if you connect eth2, eth3,
and/or eth4 to your devices and/or a switch. (The eth2,
eth3, and/or eth4 become switch ports for a local network.)
Address The IP address is displayed in the first field,
and the subnet mask or prefix length is displayed in the
second field.
Static IP Select this option if your ISP has assigned
DHCP Select this checkbox to have the EdgeRouter assign static network settings to your network.
IP addresses.
-- Address Enter the IP address in the first field and the
subnet mask or prefix length in the second field.
-- Gateway Enter the IP address of the ISPs gateway
server, which provides the point of connection to the
Internet.
-- DNS server Enter the IP address of the ISPs DNS
server.

Click Apply to save your changes, or click Cancel.


WAN+2LAN2 Wizard
Before You Begin
You can still use the WAN+2LAN setup wizard even if the
EdgeRouter is already configured. The WAN+2LAN setup
wizard will replace the entire configuration and require a
reboot when the new configuration is applied.
Note: The WAN+2LAN2 wizard is the same as the
Basic Setup wizard.
Overview
Click the WAN+2LAN2 setup wizard to begin the SOHO
configuration.
PPPoE Select this option if your ISP uses PPPoE.
Note: The WAN+2LAN2 setup wizard is designed to
set up a basic SOHO network. For full configuration -- Account Name Enter the name of your PPPoE
functionality, use the other tabs of the EdgeOS account.
Configuration Interface or the Command Line -- Password Enter the password of your PPPoE account.
Interface (CLI).
Internet Port (eth0)
Connect eth0 to your Internet connection.
Internet connection type Select the Internet connection
type your network is using.
DHCP Select this option if your ISP automatically
assigns network settings to your network.

80 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

One LAN (ER-X, ER-X-SFP, or EP-R6 Only)


Only use one LAN Select this option to use a single local
area network.

LAN Ports (ER-X, ER-X-SFP, or EP-R6 Only)


Address Enter the IP address in the first field, and enter
the subnet mask or prefix length in the second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.

VLAN Some ISPs requires support for an Internet


connection on the VLAN. If your ISP uses a tagged VLAN
to provide Internet connectivity, select this option. The
configuration generated by the wizard will place the
needed settings under the VLAN interface instead.
VLAN ID Available if VLAN is enabled. Enter the VLAN ID
used by the ISP. Bridging
If you are using the ERPoe-5, then go to Bridging
(ERPoe-5) on page82.
Bridging Select this option to bridge the LAN interfaces
into a single network.
Bridging will decrease performance because it performs
the task of a switch in software; in most cases, it is better
Firewall Enabled by default. This option applies to use a hardware switch instead. However, bridging may
the default firewall settings to the EdgeRouter; only be useful if the extra port provided by bridging is required
established and related traffic types are allowed for local and the performance impact is acceptable.
and inbound traffic. Note: Bridging is not available for the ER-X, ER-X-SFP,
DHCPv6 PD Some ISPs use DHCPv6 PD (Prefix or EP-R6.
Delegation) to provide IPv6 service. If required, select this
option and configure the following:
Prefix length Available if DHCPv6 PD is enabled. Select
the appropriate prefix length: /56, /60, or /64.
Firewall Available if DHCPv6 PD is enabled. This
option applies the default IPv6 firewall settings to the
EdgeRouter; only established and related traffic types You have two options:
are allowed for local and inbound traffic. Enabled by If Bridging is disabled, then configure the following:
default.
LAN Port (eth1) section below
IPv6 LANs Available if DHCPv6 PD is enabled. The IPv6
(Optional) Secondary LAN port (eth2) on page82
LAN interfaces are displayed. They are not currently
configurable and are the same as the LAN interfaces for If Bridging is enabled, then go to LAN Ports (eth1 and
the IPv6 part of the wizard (two LANs are used so the eth2) on page82.
corresponding interfaces, eth1 and eth2, or eth1 and LAN Port (eth1)
switch0, are shown in IPv6 LANs). All LAN interfaces use
If Bridging is disabled, connect eth1 to your local network,
the service slaac.
such as a switch. Then click configure this section.

Ubiquiti Networks, Inc. 81


Chapter 12: Wizards EdgeOS User Guide

Address Enter the IP address in the first field, and enter If Bridging is enabled, then go to the LAN ports (eth1, eth2,
the subnet mask or prefix length in the second field. eth3, and eth4) section below.
DHCP Select this checkbox to have the EdgeRouter assign (Optional) Secondary LAN Port (eth1)
IP addresses. If Bridging is disabled, connect eth1 to your local network,
(Optional) Secondary LAN port (eth2) such as a switch. Then click configure this section.
If Bridging is disabled, you can connect eth2 to your
secondary local network. Then click configure this
section.
Address Enter the IP address in the first field, and enter
the subnet mask or prefix length in the second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses. Address Enter the IP address in the first field, and enter
the subnet mask or prefix length in the second field.
DHCP Select this checkbox to have the EdgeRouter assign
IP addresses.
LAN Ports (eth2, eth3, and eth4)
If Bridging is disabled, connect eth2, eth3, and/or eth4
to your devices and/or a switch. (The eth2, eth3, and/or
LAN Ports (eth1 and eth2) eth4 become switch ports for a local network.) Then click
If Bridging is enabled, connect the local ports to your configure this section.
devices and/or a switch that connects to additional
devices. Then click configure this section.

Address Enter the IP address in the first field, and enter


the subnet mask or prefix length in the second field.
Address Enter the IP address in the first field, and enter DHCP Select this checkbox to have the EdgeRouter assign
the subnet mask or prefix length in the second field. IP addresses.
DHCP Select this checkbox to have the EdgeRouter assign LAN ports (eth1, eth2, eth3, and eth4)
IP addresses. If Bridging is enabled, connect eth1, eth2, eth3, and/or
Bridging (ERPoe-5) eth4 to your devices and/or a switch. (The eth1, eth2, eth3,
and/or eth4 become switch ports for a local network.)
Bridging Select this option to bridge the LAN interfaces
Then click configure this section.
into a single network.
Address Enter the IP address in the first field, and enter
Bridging will decrease performance because it performs
the subnet mask or prefix length in the second field.
the task of a switch in software; in most cases, it is better
to use a hardware switch instead. However, bridging may DHCP Select this checkbox to have the EdgeRouter assign
be useful if the extra port provided by bridging is required IP addresses.
and the performance impact is acceptable.

You have two options:


If Bridging is disabled, then configure the following
(Optional) Secondary LAN Port (eth1) section in the next
column
LAN Ports (eth2, eth3, and eth4) section in the next
column

82 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 12: Wizards

User Setup Feature Wizards


You can set up the username and password for the new Each wizard will guide you through configuration of the
EdgeRouter configuration. corresponding feature:
User Select one of the following options: DNS host names (see below)
Use default user Replace the default user, ubnt. TCP MSS Clamping on page84
-- User Enter a new admin username. UPnP on page84
-- Password Enter a new password. VPN Status on page84
-- Confirm Password Enter the new password again.
DNS Host Names
Click the DNS host names feature wizard to configure
static host names and display a list of dynamic host names
for client devices.

Create new admin user Create a new admin user and


remove the default user, ubnt. Complete the following:
Static Host Names
Add New Click Add New to create a new static host
-- User Enter a new admin username.
name.
-- Password Enter a new password.
Host Name Enter the host name of the device.
-- Confirm Password Enter the new password again.
Alias Enter one or more alias names, separated by
commas. Example: aliasname1, aliasname2
IP Address Enter the appropriate IP address.
Remove Click Remove to delete a static host name.
Add New Click Add New to create another new static
host name.

Keep existing users Keep the existing usernames and


passwords on the EdgeRouter.

Dynamic Host Names


Host Name Displays the host name of the device.
Pool Displays the name of the DHCP server that assigned
the IP address.
IP Address Displays the IP address of the device.
Click Apply to save your changes, or click Cancel.

Ubiquiti Networks, Inc. 83


Chapter 12: Wizards EdgeOS User Guide

(_) If this field is blank, then the entry was created UPnP
dynamically from a DHCP dynamic lease. If this field
Instead of manually configuring port forwarding rules, you
displays static-IP, then the entry stems from a static
can use UPnP for automatic port forwarding when you
mapping configured via the DHCP server configuration
have hardware that supports UPnP.
(see Static MAC/IP Mapping on page41 for more
information). Click the UPnP feature wizard to begin configuration.
Click Apply to save your changes, or click Cancel. Set Up UPnP Interfaces
TCP MSS Clamping Add New Click Add New to create a new UPnP interface.
TCP MSS (Maximum Segment Size) clamping is typically Internal interface Select the appropriate LAN interface
used when Path MTU Discovery is not working properly. from the drop-down menu. (If you select Other, then
enter the interface name in the field provided.)
Using ICMP messages, Path MTU Discovery determines
the highest allowable MTU (Maximum Transmission External interface Select the appropriate WAN
Unit) of traffic traveling between two hosts to avoid interface from the drop-down menu. (If you select
fragmentation. Other, then enter the interface name in the field
provided.)
TCP uses MSS, which is the MTU minus the IP and TCP
headers. The sender should limit its data so it does not Remove Click Remove to delete a UPnP interface.
exceed the MSS reported by the receiver. Add New Click Add New to create another new UPnP
Sometimes security firewalls or other issues interfere interface.
with the Path MTU Discovery process (for example, ICMP
messages are blocked), so you can use a workaround,
TCP MSS clamping, which sets the MSS value for all TCP
connections.
Click the TCP MSS Clamping feature wizard to begin
configuration.
TCP MSS Clamping
Enable MSS clamping for TCP connections Select this
option to specify the MSS value for TCP connections. Click Apply to save your changes, or click Cancel.
Interface Types Select which interface types use MSS VPN Status
clamping: PPPoE, PPTP, Tun, or VTI. All are enabled by Click the VPN status feature wizard to display the status of
default. your IPsec site-to-site VPN tunnels. For information about
MSS Enter the MSS value to use; 1412 is the default. configuration, go to IPsec Site-to-Site on page46.
VPN Status List
Name Displays the descriptive name of the VPN tunnel.
Peer IP Displays the IPv4/IPv6 address of the peer router.
IKE Displays the IKE (Internet Key Exchange) encryption
method, hash algorithm, DH group, and lifetime in this
format:
<encryption>-<hash>-<group>-<lifetime>
Status Displays the status of the VPN tunnel.

Click Apply to save your changes, or click Cancel.

Click Apply to save your changes, or click Cancel.

84 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 13: Toolbox

Chapter 13: Toolbox Ping


You can ping other devices on the network directly from
Each tab of the EdgeOS interface contains network the EdgeRouter. The Ping tool uses ICMP packets to check
administration and monitoring tools. At the top right of the preliminary link quality and packet latency estimation
the screen, click the Toolbox Toolbox button. The Toolbox between two network devices.
drop-down menu appears.
Click Ping, and the Ping screen appears:

The following tools are available: Destination Host/IP Enter the IP address.
Ping Packet Count Enter the number of packets to send for
Bandwidth the ping test.
Trace Packet Size Specify the size of the packet.
Discover Run Test Click this button to start the test.
Packet Capture Packet loss statistics and latency time evaluation are
Log Monitor displayed after the test is completed.

Ubiquiti Networks, Inc. 85


Chapter 13: Toolbox EdgeOS User Guide

Bandwidth Bandwidth statistics are displayed after the test is


completed.
You can run a speed test as the sender or receiver. To run
the test between two routers, run it as a receiver on one
end and sender on the other end. On the sender, enter the
receivers IP address and click Run Test.
Click Bandwidth, and the Bandwidth screen appears:

Sender
Receiver IP Enter the IP address. Receiver
Show advanced settings Click to display settings for
advanced users.
Duration (s) Enter the length of time in seconds.
Protocol Select the appropriate protocol, TCP or UDP.
-- UDP Bandwidth If you use UDP, then this option is
available. Enter the bandwidth to use.
Run Test Click this button to start the test as the receiver.
Parallel flows (1-20) If you want to increase the stress
or saturate the link, enter the number of connections or The bandwidth results are displayed in Mbps after the test
streams that will run simultaneously. is completed.
Reverse direction Select this option to reverse the Trace
direction of the data flow.
The Trace tool traces the hops from the EdgeRouter to a
TCP window size (KBytes) Enter the TCP window size, specified outgoing IP address. Use this tool to find the
which is the maximum amount of data that can be sent route taken by ICMP packets across the network to the
without an acknowledgement. destination host.
Hide advanced settings Click to hide settings for Click Trace, and the Trace screen appears:
advanced users.

Destination Host Enter the IP address of the destination


host.
Resolve IP Address Select this option to resolve the IP
addresses symbolically (as names) instead of numerically.
Run Test Click this button to start the test.
Responses are displayed after the test is completed.

Run Test Click this button to start the test as the sender.

86 Ubiquiti Networks, Inc.


EdgeOS User Guide Chapter 13: Toolbox

Discover
The Discover tool searches for all Ubiquiti devices on your
network. The Search field automatically filters devices
containing specified names or numbers as you enter
them.
Click Discover, and the Discover screen appears:

Packet Capture
Capture packets traveling through the specified interface
for analysis. You can set up filters to capture the specific
types of packets you are seeking.
Click Packet Capture, and the Packet Capture screen
appears:
All/eth_ Select which interface to search, or select All.
The tool reports the number of Discovered and Displayed
Ubiquiti devices. A table displays the following
information about each Ubiquiti device. Click a column
heading to sort by that heading.
Interface The EdgeRouter interface used by the device is
displayed.
Hardware Address The MAC address of the device is
displayed.
Device Name The name assigned to the device is
displayed.
Interface Enter the name of the interface.
Product Name The Ubiquiti name of the device is
displayed. Packet Limit Enter the number of packets to capture. The
maximum number is 150.
IP Address The IP address of the device is displayed. You
can click it to access the devices configuration through its Resolve addresses Select this option to resolve the IP
web management interface. addresses symbolically (as names) instead of numerically.
For more information, click the arrow to view the Filter
following: Protocol Enter the protocol to filter.
Firmware Version The version number of the devices Address Enter the address to filter.
firmware is displayed.
Port Enter the port number to filter.
Uptime The duration of the devices activity is
Negate filter Check this box to capture all packets
displayed.
except for the ones matching the selected filter(s).
Addresses The addresses of the devices interface are
Start Click this button to start the capture. (If a Packet
displayed. If the device has more than one interface,
Limit is not specified, then this button becomes a Stop
addresses for each interface are displayed.
button during the capture.)
-- hwaddr The MAC address of the devices interface is
Capture results are displayed with Time and Packet
displayed.
descriptions.
-- ipv4 The IP address of the devices interface is
displayed.

Ubiquiti Networks, Inc. 87


Chapter 13: Toolbox EdgeOS User Guide

Log Monitor
The Log Monitor is a log displaying live updates.
Click Log Monitor, and the System Log Monitor screen
appears:

Click the pause button to stop the live updates. Click the
play button to resume the live updates.
The System log messages table displays the following
information about each log. Click a column heading to
sort by that heading.
Time The system time is displayed next to every log entry
that registers a system event.
Message A description of the system event is displayed.

88 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix A: Command Line Interface

Appendix A: Command Line Connect to the Console Port


Instructions may vary slightly, depending on your specific
Interface terminal emulator.
1. Use a RJ45-to-DB9, serial console cable, also known
Overview as a rollover cable, to connect the Console port of the
The Command Line Interface (CLI) is available if you EdgeRouter to your computer. (If your computer does
need to configure and monitor advanced features on the not have a DB9 port, then you will also need a DB9
EdgeRouter or prefer configuration by command line. The adapter.)
CLI provides direct access to standard Linux tools and shell Console
commands. This chapter explains how to access the CLI
and describes a basic set of frequently used commands.
Additional information is available on our website at: eth0 eth1 eth2

community.ubnt.com/edgemax

New Commands for ER-X Platform


The EdgeRouter X platform, which includes the
EdgeRouter X, EdgeRouter X SFP, and EdgePoint EP-R6,
now supports the following offload features:
IPsec crypto offload Disabled by default. Starting with
EdgeOS v1.9.0, this option provides significant IPsec
performance improvement. To enable this option, use the
following commands: Computer
set system offload ipsec enable
commit
save
2. Follow the appropriate set of instructions:
A router reboot is required for the setting to take effect.
terminal emulator Go to the following section,
Hardware NAT offload Disabled by default. Starting Access Using a Terminal Emulator.
with EdgeOS v1.8.5, this option can significantly improve
SSH Go to Access Using SSH on page 90.
packet forwarding performance while reducing CPU
utilization. Hardware NAT offload supports IPv4 and IPv6 Telnet Go to Access Using Telnet on page 90.
traffic, such as VLAN, PPPoE, and bridging. To enable this Access Using a Terminal Emulator
option, use the following command:
set system offload hwnat enable Instructions may vary slightly, depending on your specific
terminal emulator.
Access the CLI 1. Open the terminal emulator on your computer, and
There are four methods you can use to access the CLI: configure it with the following serial port settings:
terminal emulator Go to the following section, Connect Baud rate 115200
to the Console Port. Data bits 8
SSH If you are using the console port, go to the Parity NONE
following section, Connect to the Console Port; otherwise,
Stop bits 1
go to Access Using SSH on page 90.
Flow control NONE
Telnet If you are using the console port, go to the
following section, Connect to the Console Port; otherwise, 2. Select Serial as the connection type.
go to Access Using Telnet on page 90. 3. Click Open to connect to the EdgeRouter.
EdgeOS Configuration Interface Go to the Access 4. At the ubnt login prompt, enter the username (the
Using a Terminal Emulator section in the next column. default is ubnt).

Ubiquiti Networks, Inc. 89


Appendix A: Command Line Interface EdgeOS User Guide

5. At the Password prompt, enter the password (the 3. For help with commands, you can either press the ? key
default is ubnt). or enter show and press the ? key.

6. For help with commands, you can either press the ? key
Note: To enhance security, we recommend that you
or enter show and press the ? key.
change the default login using at least one of the
following options:
Set up a new user account (preferred option).
For details, go to Remove the Default User
Account on page 93.
Change the default password of the ubnt login.
Use the set command as detailed in Remove the
Default User Account on page 93.

Note: To enhance security, we recommend that you Access Using Telnet


change the default login using one of the following: Telnet is disabled by default. To use Telnet, enable it on the
Set up a new user account (preferred option). System tab (see Telnet Server on page 6).
For details, go to Remove the Default User 1. Open the telnet client on your computer.
Account on page 93. 2. At the prompt, enter:
Change the default password of the ubnt login. telnet <hostname>
Use the set command as detailed in Remove the The default is 192.168.1.1 for the hostname. You can
Default User Account on page 93. also enter a domain name instead of an IP address for
the hostname.
Access Using SSH
SSH is enabled by default.
1. Open the SSH client on your computer.
3. At the login prompt, enter the username (the default is
2. At the login prompt, enter:
ubnt).
ssh <username>@<hostname>
The defaults are ubnt for the username and 192.168.1.1
for the hostname. You can also enter a domain name
instead of an IP address for the hostname.

Note: Upon initial login, a host key will be 4. At the Password prompt, enter the password (the
displayed. You will be asked to confirm that you default is ubnt).
want to save the host key to the local database.
Click Yes to bypass this message in the future.
At the Password prompt, enter the password (the default
is ubnt).

5. For help with commands, you can either press the ? key
or enter show and press the ? key.

90 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix A: Command Line Interface

Note: To enhance security, we recommend that you CLI Modes


change the default login using at least one of the
following options: Operational Mode
Set up a new user account (preferred option). When you first log in, the CLI is in operational mode. Press
For details, go to Remove the Default User the ? key to view the available commands.
Account on page 93. ubnt@ubnt:~$

Change the default password of the ubnt login. Note: The question mark does not display
Use the set command as detailed in Remove the onscreen.
Default User Account on page 93.
add delete ping6 reset terminal
Access Using the EdgeOS Configuration clear disconnect reboot restart traceroute
Interface configure generate release set traceroute6
connect initial-setup remove show undebug
Each tab of the EdgeOS interface contains CLI access. copy no rename shutdown
1. At the top right of the screen, click the CLI
. debug ping renew telnet

2. The CLI window appears. At the login prompt, enter the Enter show and press the ? key to view the settings that
username (the default is ubnt). you have configured.
ubnt@ubnt:~$ show
arp flow-accounting nat tech-support
bridge hardware ntp ubnt
configuration history openvpn users
date host pppoe-server version
debugging incoming queueing vpn
dhcp interfaces reboot vrrp
dhcpv6 ip route-map webproxy
disk ipv6 shutdown zebra
3. At the Password prompt, enter the password (the dns lldp snmp
default is ubnt). file log system
firewall login table
For example, type show interfaces to display the
interfaces and their status information.
ubnt@ubnt:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down,
A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
eth0 - u/u
4. For help with commands, you can either press the ? key eth1 - u/D
or enter show and press the ? key. eth2 - u/D
lo 127.0.0.1/8 u/u
To properly shut down the EdgeRouter, use the shutdown
command.
ubnt@ubnt:~$ shutdown

WARNING: Use the shutdown command to properly


shut down the EdgeRouter. An improper shutdown,
such as disconnecting the EdgeRouter from its
power supply, runs the risk of data corruption!
Configuration Mode
Note: To enhance security, we recommend that you To switch to configuration mode, use the configure
change the default login using at least one of the command.
following options: ubnt@ubnt:~$ configure
[edit]
Set up a new user account (preferred option). ubnt@ubnt#
For details, go to Remove the Default User
Account on page 93.
Change the default password of the ubnt login.
Use the set command as detailed in Remove the
Default User Account on page 93.

Ubiquiti Networks, Inc. 91


Appendix A: Command Line Interface EdgeOS User Guide

For the show, set, and delete commands, you can press the ubnt@ubnt# set interfaces ethernet eth0 address
? key for help. Possible completions:

set ? View the available commands. <x.x.x.x/x> IP address and prefix length
<h:h:h:h:h:h:h:h/x> IPv6 address and prefix length
show ? View the settings that you have configured. dhcp Dynamic Host Configuration Protocol
(Because configurations vary, the list you see will differ dhcpv6 Dynamic Host Configuration Protocol
from the sample list displayed below.) for IPv6
[edit]
delete ? View the settings that you can delete. ubnt@ubnt# set interfaces ethernet eth0 address
10.1.1.80/23
Enter show and press the ? key.
[edit]
ubnt@ubnt# show
ubnt@ubnt# set interfaces ethernet eth0 description
firewall interfaces protocol service system production LAN
[edit] These changes affect the working configuration, not the
To display the available command completions, press the active configuration. To see what changes have been
tab key. made to the working configuration, use the compare
command:
Note: The tab does not display on-screen. ubnt@ubnt# compare
[edit interfaces ethernet eth0]
ubnt@ubnt# show +address 10.1.1.2/24
Possible completions: +description production LAN
firewall Firewall [edit]
interfaces Network interfaces
To make the changes active, use the commit command:
protocols Routing protocol parameters
ubnt@ubnt# commit
service Services
[edit]
system System parameters
The EdgeRouter uses three configurations: If you reboot the EdgeRouter, the changes will be lost. To
save these changes, use the save command to save the
Working When you make changes to the working
active configuration to the boot configuration.
configuration, they are not applied until you commit the
ubnt@ubnt# save
changes to the active configuration. Saving configuration to /config/config.boot...
Active When you commit changes to the active Done
configuration, they are applied; however, the changes [edit]
do not become part of the boot configuration until you ubnt@ubnt# exit
save the changes to the boot configuration. exit
ubnt@ubnt:~$
Boot When the EdgeRouter reboots, it loads the boot ubnt@ubnt:~$ show interfaces
configuration for use. Codes: S - State, L - Link, u - Up, D - Down,
The following scenarios cover some of the most A - Admin Down

commonly used commands: Interface IP Address S/L Description


--------- ---------- --- -----------
Configure an Interface (below) eth0 10.1.1.80/23 u/u production LAN
Remove the Default User Account (in the next column eth1 - u/D
eth2 - u/D
Create a Firewall Rule on page 93 lo 127.0.0.1/8 u/u
Manage the Configuration File on page 95 ::1/128
ubnt@ubnt:$ ping 10.1.0.1
Configure an Interface PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data.
To configure an interface, do the following: 64 bytes from 10.1.0.1: icmp_req=1 ttl=64 time=0.460 ms
64 bytes from 10.1.0.1: icmp_req=2 ttl=64 time=0.407 ms
Assign an IP address and subnet mask ^C
Enter a description --- 10.1.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time
Use the set, compare, commit, and save commands. 999 ms
To configure an interface, use the set command. rtt min/avg/max/mdev = 0.407/0.433/0.460/0.033 ms
ubnt@ubnt:~$ configure
[edit]
To view the possible completions for the eth0 address,
enter set interfaces ethernet eth0 address and press the
? key.

92 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix A: Command Line Interface

Remove the Default User Account Create a Firewall Rule


To remove the default user account, do the following: To create a firewall rule, use the set or edit commands
Create a new user (both methods are described below). In addition, use the
compare, discard, up, top, copy, and rename commands.
Log out of the default user account
Create a firewall rule using the full syntax:
Log in with the new user account ubnt@ubnt:~$ configure
Delete the default user account [edit]
ubnt@ubnt# set firewall name TEST default-action drop
Use the set, commit, save, exit, and delete commands.
[edit]
ubnt@ubnt:~$ configure
ubnt@ubnt# set firewall name TEST enable-default-log
[edit]
[edit]
ubnt@ubnt:# set system login user admin1 authentication
plaintext-password admin1pass ubnt@ubnt# set firewall name TEST rule 10 description
allow icmp
[edit]
[edit]
ubnt@ubnt:# commit
ubnt@ubnt# set firewall name TEST rule 10 action accept
[edit]
[edit]
ubnt@ubnt:# save
ubnt@ubnt# set firewall name TEST rule 10 protocol icmp
Saving configuration to /config/config.boot...
[edit]
Done
[edit] To display uncommitted changes, use the compare
ubnt@ubnt:# exit command:
exit ubnt@ubnt# compare
ubnt@ubnt:~$ exit [edit firewall]
logout +name TEST {
+ default-action drop
Welcome to Edge OS ubnt ttyS0 + enable-default-log
+ rule 10 {
ubnt login: admin1
+ action accept
Password:
+ description allow icmp
Linux ubnt 2.6.32.13-UBNT #1 SMP Fri Jun 8 09:48:31 PDT
2012 mips64 + protocol icmp
Welcome to EdgeOS + }
admin1@ubnt:~$ configure +}
[edit] [edit]
admin1@ubnt# delete system login user ubnt To undo uncommitted changes, use the discard
[edit] command:
admin1@ubnt# commit ubnt@ubnt# discard
[edit] Changes have been discarded
admin1@ubnt# save [edit]
Saving configuration to /config/config.boot... ubnt@ubnt# compare
Done No changes between working and active configurations
[edit] [edit]
admin@ubnt# exit
exit
To create the same firewall rule while reducing the amount
admin1@ubnt:~$ of repetition in the full syntax, use the edit command:
ubnt@ubnt# edit firewall name TEST
The plaintext password that you entered is converted to [edit firewall name TEST]
an encrypted password. ubnt@ubnt#set default-action drop
admin1@ubnt:~$ configure [edit firewall name TEST]
[edit] ubnt@ubnt# set enable-default-log
admin1@ubnt# show system login [edit firewall name TEST]
user admin1 { ubnt@ubnt#edit rule 10
authentication { [edit firewall name TEST rule 10]
encrypted-password
$1$mv8ERQ1T$7xq/eUDwy/5And7nV.9r6.
plaintext-password

}
}
[edit]
admin1@ubnt# exit
exit
admin1@ubnt:~$

Ubiquiti Networks, Inc. 93


Appendix A: Command Line Interface EdgeOS User Guide

Press the ? or tab key to display options for the specified To return to the top edit level, use the top command:
edit level. ubnt@ubnt# top
ubnt@ubnt# set [edit]
ubnt@ubnt# compare
action disable ipsec p2p source time
description fragment limit protocol state [edit firewall]
destination icmp log recent tcp +name TEST{
[edit firewall name TEST rule 10] + default-action drop
ubnt@ubnt# set description allow icmp + enable-default-log
[edit firewall name TEST rule 10] + rule 10 {
ubnt@ubnt# set action accept + action accept
[edit firewall name TEST rule 10] + description allow icmp
ubnt@ubnt# set protocol icmp + protocol icmp
[edit firewall name TEST rule 10] + }
+}
To show changes within the edit level, use the compare
[edit]
command:
ubnt@ubnt# compare To display the existing firewall rule, use the show firewall
[edit firewall name TEST rule 10] command:
+action accept ubnt@ubnt# show firewall
+description allow icmp name WAN1_LOCAL {
+protocol icmp default-action drop
[edit firewall name TEST rule 10] rule 10 {
action accept
To move up an edit level, use the up command:
state {
ubnt@ubnt#up
established enable
[edit firewall name TEST]
related enable
ubnt@ubnt# compare
}
[edit firewall name TEST]
}
+default-action drop
rule 20 {
+enable-default-log
action drop
+rule 10 {
state {
+ action accept
invalid enable
+ description allow icmp
}
+ protocol icmp
}
+}
rule 30 {
[edit firewall name TEST]
action accept
ubnt@ubnt# up
destination {
[edit firewall]
port 22
ubnt@ubnt# compare
}
[edit firewall]
protocol tcp
+name TEST {
}
+ default-action drop
}
+ enable-default-log
[edit]
+ rule 10 {
+ action accept To create a new firewall rule from an existing firewall rule,
+ description allow icmp use the copy command.
+ protocol icmp ubnt@ubnt# edit firewall
+ } [edit firewall]
+} ubnt@ubnt# copy name WAN1_LOCAL to name WAN2_LOCAL
[edit firewall] [edit firewall]
ubnt@ubnt# commit
[edit firewall]
ubnt@ubnt#top
[edit]
ubnt@ubnt#show firewall
name WAN1_LOCAL {
default-action drop
rule 10 {
action accept
state {
established enable
related enable
}
}

94 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix A: Command Line Interface
rule 20 { rule 20 {
action drop action drop
state { state {
invalid enable invalid enable
} }
} }
rule 30 { rule 30 {
action accept action accept
destination { destination {
port 22 port 22
} }
protocol tcp protocol tcp
} }
} }
name WAN2_LOCAL { name WAN2_IN {
default-action drop default-action drop
rule 10 { rule 10 {
action accept action accept
state { state {
established enable established enable
related enable related enable
} }
} }
rule 20 { rule 20 {
action drop action drop
state { state {
invalid enable invalid enable
} }
} }
rule 30 { rule 30 {
action accept action accept
destination { destination {
port 22 port 22
} }
protocol tcp protocol tcp
} }
} }
[edit] [edit]
To change the name of the new firewall rule, use the ubnt@ubnt#

rename command. Manage the Configuration File


ubnt@ubnt# edit firewall
Typically, you use the save command to save the active
[edit firewall]
configuration to disk (config/config.boot); however, you
ubnt@ubnt# rename name W[TAB]
WAN1_LOCAL WAN2_LOCAL
can also save the active configuration to a different file or
[edit firewall] remote server.
ubnt@ubnt# rename name WAN2_LOCAL to name WAN2_IN Enter save and press the ? key.
[edit firewall] ubnt@RTR# save
ubnt@ubnt# commit Possible completions:
[edit firewall]
<Enter> Save to system
ubnt@ubnt#top config file
[edit] <file> Save to file on
ubnt@ubnt# show firewall name local machine
name WAN1_LOCAL { scp://<user>:<passwd>@<host>/<file> Save to file on
default-action drop remote machine
rule 10 { ftp://<user>:<passwd>@<host>/<file> Save to file on
remote machine
action accept
tftp://<host>/<file> Save to file on
state { remote machine
established enable [edit]
related enable ubnt@RTR# save tftp://10.1.0.15/rtr-config.boot
} Saving configuration to
} tftp://10.1.0.15rtr-config.boot...
############################################### 100.0%
Done
[edit]
Ubiquiti Networks, Inc. 95
Appendix A: Command Line Interface EdgeOS User Guide

Scenario: In the midst of the administrator changing an You can also keep a specified number of revisions
IPsec tunnel into an OpenVPN tunnel, the administrator of the configuration file on the local disk. Use the
had to revert the EdgeRouter to its previous configuration commitrevisions configuration option.
with the IPsec tunnel. ubnt@RTR# set system config-management commit-revisions
50
1. Before making changes, the administrator saved a [edit]
backup configuration file with a working IPsec tunnel ubnt@RTR# commit
configuration: [edit]
ubnt@RTR# save config.boot-ipsec
Here is an example that uses the commit-revisions
Saving configuration to /config/config.boot-ipsec...
Done
command:
ubnt@RTR# set system login user joe authentication
[edit]
plaintext-password secret
Note: This is a backup; if the EdgeRouter were [edit]
rebooted, it would still boot from the default file: ubnt@RTR# commit
/config/config.boot [edit]
2. After the administrator deleted the IPsec configuration ubnt@RTR# save; exit
Saving configuration to /config/config.boot...
and was configuring of the OpenVPN tunnel,
Done
circumstances changed so that the IPsec tunnel was
exit
required again. Consequently, the administrator
reverted the EdgeRouter to its previous configuration ubnt@RTR:~$ show system commit
with the IPsec tunnel. 0 2012-08-17 18:32:13 by ubnt via cli commit
ubnt@RTR# load config.boot-ipsec 1 2012-08-17 18:31:52 by ubnt via cli commit
Loading configuration from 2 2012-08-17 18:31:51 by root via init commit
/config/config.boot-ipsec...
Note: The following commands require that the
Load complete. Use commit to make changes active.
[edit]
configuration option, commit-revisions, be set first.
ubnt@RTR# commit show system commit diff commit-confirm
[edit] show system commit file confirm
show system commit rollback
ubnt@RTR# save; exit
commit comment
Saving configuration to /config/config.boot...
Done For details on the commit-revisions option, go to
exit Manage the Configuration File on page 95.
ubnt@RTR:~$
To display the changes in revision 0, use the show system
To automatically make a remote backup after every commit diff command.
commit, use the commit-archive configuration option, ubnt@RTR:~$ show system commit diff 0
enter location, and press the ? key. [edit system login]
ubnt@RTR# set system config-management commit-archive +user joe {
location + authentication {
Possible completions: + encrypted-password
<url> Uniform Resource Identifier $1$CWVzYggs$NyJXxC3S572rfm6pY8ZMO.
+ plaintext-password
Detailed information:
+ }
scp://<user>:<passwd>@<host>/<dir> + level admin
ftp://<user>:<passwd>@<host>/<dir> +}
tftp://<host>/<dir>
To display the entire configuration file for revision 0, use
ubnt@RTR# set system config-management commit-archive
location tftp://10.1.0.15/RTR the show system commit file command.
[edit] ubnt@RTR:~$ show system commit file 0
ubnt@RTR# commit To add a comment to the commit, use the comment
Archiving config... command.
tftp://10.1.0.15/RTR OK ubnt@RTR# set system login user joe level operator
[edit] [edit]
On the remote tftp server, a copy with the hostname and ubnt@RTR# commit comment change joe from admin to op
date is saved for each commit. [edit]
admin2@server://tftpboot/RTR$ ls -l ubnt@RTR# save; exit
total 8 Saving configuration to /config/config.boot...
-rw------- 1 nobody nogroup 908 Aug 17 17:19 Done
config.boot-RTR.20120817_171932 exit
-rw------- 1 nobody nogroup 874 Aug 17 17:20
config.boot-RTR.20120818_002046

96 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix A: Command Line Interface

Now you will see the comment when you use the show ubnt@RTR:~$ show system commit
system commit command. 0 2012-08-21 14:46:41 by admin_5 via cli
ubnt@RTR:~$ show system commit fix bgp policy maps
1 2012-08-21 14:45:59 by admin_5 via cli
0 2012-08-17 18:44:41 by ubnt via cli change joe commit
from admin to op
2 2012-08-21 14:45:33 by admin_5 via cli
1 2012-08-17 18:34:01 by ubnt via cli commit fix port forwarding
2 2012-08-17 18:32:13 by ubnt via cli commit 3 2012-08-21 14:45:15 by admin_5 via cli
3 2012-08-17 18:31:52 by ubnt via cli commit fix firewall
4 2012-08-17 18:31:51 by root via init commit 4 2012-08-21 14:44:29 by ubnt via cli
commit
When you work on a remote router, certain changes,
5 2012-08-21 14:21:15 by ubnt via cli
such as a firewall or NAT rule, can cut off access to the add port forward for port 2222 to build-server
remote router, so you then have to visit the remote router 6 2012-08-21 14:20:24 by ubnt via cli
and reboot it. To avoid such issues when you make risky add dmz interface to eth2
changes, use the commit-confirm command first. Then 7 2012-08-21 14:19:53 by ubnt via cli
use the confirm command to save your changes. add ipsec tunnel to office_exchange
8 2012-08-21 14:07:18 by ubnt via cli
ubnt@RTR:~$ configure
add firewall for WAN_IN
[edit] 9 2012-08-21 14:06:37 by ubnt via cli
ubnt@RTR# set firewall name WAN_IN rule 50 action drop add user first_last
[edit] 10 2012-08-21 14:04:47 by ubnt via cli
ubnt@RTR# set firewall name WAN_IN rule 50 destination commit
address 172.16.0.0/16 11 2012-08-21 14:04:46 by root via init
[edit] commit
ubnt@RTR# commit-confirm After viewing the history of system commits, you decide
commit confirm will be automatically reboot in to discard the last four commits by admin_5. Roll back the
10minutes unless confirmed system configuration file to commit 4:
Proceed? [confirm][y]
ubnt@RTR# rollback 4
[edit]
Proceed with reboot? [confirm] [y]
After you verify that the changes should be saved, use the
Broadcast message from root@RTR (ttyS0) (Mon Aug 21
confirm command. 15:09:12 2012):
ubnt@RTR# confirm
[edit] The system is going down for reboot NOW!

You can also specify the number of minutes to wait, but


you must remember to also use the confirm command.
Otherwise, if you forget, then you can be surprised by the
EdgeRouters reboot to its previous configuration.
ubnt@RTR# commit-confirm 1
commit confirm will be automatically reboot in 1 minutes
unless confirmed
Proceed? [confirm][y]
[edit]
ubnt@RTR#
Broadcast message from root@RTR (Mon Aug 20 14:00:06
2012):

The system is going down for reboot NOW!


INIT: Switching to runlevel: 6
INIT: Stopping routing services...zebra...done.
Removing all Quagga Routes.
[SNIP]
To roll back to an earlier commit, use the show system
commit and rollback commands.

Ubiquiti Networks, Inc. 97


Appendix A: Command Line Interface EdgeOS User Guide

98 Ubiquiti Networks, Inc.


EdgeOS User Guide Appendix B: Contact Information

Appendix B: Contact
Information
Ubiquiti Networks Support
Ubiquiti Support Engineers are located around the world
and are dedicated to helping customers resolve software,
hardware compatibility, or field issues as quickly as
possible. We strive to respond to support inquiries within
a 24-hour period.
Ubiquiti Networks, Inc.
2580 Orchard Parkway
San Jose, CA 95131
www.ubnt.com
Online Resources
Support: ubnt.link/EdgeMAX-Support
Community: community.ubnt.com/edgemax
Downloads: downloads.ubnt.com/edgemax

JL081616

Ubiquiti Networks, Inc. 99


www.ubnt.com

2012-2016 Ubiquiti Networks, Inc. All rights reserved. Ubiquiti, UbiquitiNetworks, the Ubiquiti U logo, the Ubiquiti beam logo, airFiber, airMAX, EdgeMAX,
EdgeOS, EdgeRouter, and UniFi are trademarks of Ubiquiti Networks, Inc. in the United States and in other countries. All other trademarks are the property of
their respectiveowners.

You might also like