# Using Traffic Rules To Supervise Network Traffic | ntop

> The Problem Let’s assume that you have a Network where local hosts generate a constant amount of traffic. How do you find if they are misbehaving? It happens

[Blog](https://www.ntop.org/blog/)[Features](https://www.ntop.org/category/features/)[Guides](https://www.ntop.org/category/guides/)

# Using Traffic Rules To Supervise Network Traffic

June 27, 20231 min read

## The Problem

Let’s assume that you have a Network where local hosts generate a constant amount of traffic. How do you find if they are misbehaving? It happens that some local host starts behaving strangely, by having an abnormal amount of traffic (sent or received) with respect to their recent past: how can you spot these situations and report them with an alert.

This is why we have created the Local Traffic Rules page: users can now define custom Volume/Throughput threshold for some (or all) local hosts. You can also set thresholds on score and application protocols 9e.g. WhatsApp).

For instance, if a DNS server is available in the network, a check for that host regarding the DNS traffic could be added: alert me if the DNS traffic for a host exceeds 1 GB/day.

### How Thresholds Work

The Local Traffic Rules page can be found under the Hosts menù.

[![](/images/2023/06/Screenshot-2023-06-26-105400.webp)](https://www.ntop.org/images/2023/06/Screenshot-2023-06-26-105400.webp)

Here it is possible to set up the rules you like, for every Local Host or Interface you want.

The rule is composed by:

-   Target (who is monitored)
-   Type (Host or Interface)
-   Metric (what is monitored)
-   Check Frequency (how often it is monitored)
-   Threshold (the threshold not be exceeded up/own)

(In the action column instead, it is possible to edit/delete the rule)

By clicking the ‘+’ icon next to the search bar of the table, it’s possible to add a new rule

[![](/images/2023/06/ntopng-2.webp)](https://www.ntop.org/images/2023/06/ntopng-2.webp)

Here it is possible to :

-   Set the type of rule.
-   Add the Target (what we are monitoring)
-   Select the monitored metric: Traffic, Score, and all the Application Protocols (e.g. DNS, HTTP, SMTP, …)
-   Set the check frequency: every five minutes, every hour, or once per day
-   Specify the threshold, which can be measured in volume (e.g. 1 GB), throughput (e.g. 1 Gbps), or percentage (e.g. + 20%, meaning that the current value has not to exceed by more than 20% the value of the metric during the previous check).

So now it’s time for you to monitor your Hosts and Interfaces and be sure they do not misbehave.

Enjoy this new feature, and send us your feedback

## 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/local-traffic-rules-a-new-way-to-define-custom-thresholds/