# Using ntopng (pre) 2.0 on a Ubiquity EdgeRouter | ntop

[Blog](https://www.ntop.org/blog/)[ntopng](https://www.ntop.org/category/ntopng/)

# Using ntopng (pre) 2.0 on a Ubiquity EdgeRouter

April 9, 20152 min read

**NOTE: due to limited resources, we have decided to discontinue ntopng on the Ubiquity. Please [see this article](https://www.ntop.org/running-nprobe-and-ntopng-on-ubiquity-edgerouter-lite/) for more updated information.**

As the release of ntopng 2.0 is around the corner (we are fixing the last bugs, polishing the GUI and writing some documentation), we want to show how to turn a cheap device such as the Ubiquity EdgeRouter into a traffic monitor and [layer-7 policy enforcer](https://www.ntop.org/how-to-enforce-layer-7-traffic-policies-using-ntopng/) as depicted below.![Ubiquity](/images/2015/04/Ubiquity.webp)

NOTE: if you bridge traffic using ntopng, please make sure you do not create loops. A typical mistake is to connect eth1 and eth2 to a switch: don’t do that as otherwise a loop will be created.

## Step 1: Get Your Router

Buy an [Ubiquity EdgeRouter.](https://web.archive.org/web/20181010032343/https://www.ubnt.com/edgemax/edgerouter/) We use the [EdgeRouter Lite](https://web.archive.org/web/20181128191052/https://www.ubnt.com/edgemax/edgerouter-lite/) model (others will work too) that is cheap, and it has three Gigabit ports.

### Step 2: Setup the Router

The first time you play with the router you should configure the package repositories so you can use the EdgeRouter as a embedded PC and for instance install the basic packages for compiling ntopng onto the router (in case you want to develop on it). The steps are listed at [this URL](https://wiki.ubnt.com/Add_Other_Debian_Packages_to_EdgeOS)

If you want to compile ntopng you need to install the packages below (needed also at runtime if you install the ntopng binary package).

root@ubnt# apt-get install libpcap-dev libtool rrdtool librrd-dev autoconf automake autogen redis-server wget libsqlite3-dev libgeoip-dev libcurl4-openssl-dev

#### Step 3: Install ntopng

If you do not want to compile ntopng yourself, you can install redis-server (prerequisite for ntopng) and ntopng/ntopng-data using the packages available at the [ntop packages repository](https://web.archive.org/web/20210518164248/https://packages.ntop.org/Ubiquity/). Once you have downloaded all the packages you can do:

root@ubnt# dpkg -i redis-server\_2.4.15-1~bpo60+2\_mips.deb 
root@ubnt# dpkg -i ntopng\_1.99.150322-9208\_mips.deb 
root@ubnt# dpkg -i ntopng-data\_1.99.150322-9208\_all.deb

#### Step 4: Start ntopng

If you want to use ntopng for monitoring traffic flowing on eth1, you can start it as “*ntopng -i eth1*“. Instead if you want to use ntopng to bridge eth1 and eth2 interfaces, you need to start it as *“ntopng -i bridge:eth1,eth2”*. Remember to start redis-server prior to start ntopng. If you want to make this configuration persistent you can create a file named /etc/ntopng/ntopng.conf so that you can start ntopng as a service. It is now time to connect via HTTP to `http://my_ubiquity_router:3000` and enjoy ntopng.

Finally, make sure you configure ntopng to avoid using all the (little) disk space available on the device. So you should consider disabling RRD generation for hosts for instance, or refrain from dumping flows on disk (better to send them to a remote ElasticSearch instance).

## Keep reading

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

[![](/images/2026/09/Screenshot-2026-09-09-151028-1.webp)](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

AnnounceOct 5, 2026

### [October 20th: Join us for the ntopng 7.0 Webinar](https://www.ntop.org/october-20th-join-us-for-the-ntopng-7-0-webinar/)

Is your network monitoring keeping pace with AI, larger infrastructures, and the growing need for real observability? We’re excited to introduce ntopng 7.0, alongside new releases of the rest of the ntop…

[![](/images/2026/09/Screenshot-2026-09-09-163410-1.webp)](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

ntopngSep 21, 2026

### [ntopng User Interface: Introducing the New Navigation Bar](https://www.ntop.org/ntopng-user-interface-introducing-the-new-navigation-bar/)

In our continuous effort to improve user experience and make network monitoring more intuitive, we have completely redesigned the ntopng Navigation Bar. As our feature set expands—with crucial additions like the nAnalyst…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/using-ntopng-pre-2-0-on-a-ubiquity-edgerouter/