Bridge Mode

Bridge mode is the simplest solution to integrate nEdge into an existing network.

Bridge mode requires two network interfaces to be specified:

  • The LAN interface is the interface which will face the clients to protect.
  • The WAN interface is the interface to the outside world, usually to the internet gateway.

This logical division allows nEdge to properly identify the clients to monitor (on the LAN interface) without affecting the rest of the network (on the WAN).

Bridge Network Configuration

Bridge network configuration

nEdge can be either configured to automatically acquire an IP address in DHCP client mode or a manually assigned IP address can be provided. Usually a DHCP server is already available in the network so automatic configuration can be applied.

VLAN Trunk Bridging

nEdge can also bridge interfaces with VLAN-tagged traffic when it is configured as a VLAN Trunk bridge.

In VLAN Trunk mode, it’s necessary to specify the list of local networks by manually editing the file /etc/ntopng/ntopng.conf via the -m option. Policies will only be applied to local hosts, so this is very important. See the ntopng documentation for more details.

In VLAN Trunk mode, it’s also essential to set up a management address to reach the device. This should be done before applying the VLAN Trunk mode settings in order to avoid losing management access. This usually is performed in one of the following ways:

  • by using a dedicated network interface (this setup requires at least 3 network interfaces)
  • by using a virtual network interface on a VLAN (only 2 network interfaces required)

On Ubuntu 16, the management interface configuration should be written to the /etc/network/interfaces.d/nedge_mgmt.conf configuration file. Here is an example on how to set up a virtual network interface for the VLAN case above (the dedicated interface case is trivial):

$ cat /etc/network/interfaces.d/nedge_mgmt.conf
# must specify the pre-up command and the vlan-raw-device

auto br0.86
iface br0.86 inet static
     pre-up /sbin/ip link add link br0 name br0.86 type vlan id 86
     vlan-raw-device br0

The configuration above specifies to create a virtual interface br0.86 with VLAN 86. The VLAN id (86 in this example) should match one of the VLAN ids flowing through the VLAN trunk. Such virtual interface will be created after reboot. When the VLAN Trunk mode is running on the nEdge device, the administrator can connect to the management IP ( in this example) by configuring a network interface on the same network ( in this example). For example:

$ ifconfig eth0 netmask

The switch port connected to the administrator eth0 interface must be tagged with the same VLAN id configured in the nedge_mgmt.conf file (86 in this example) in order for this to work.


Due to an open issue ( users must be very cautios when configuring blocking policies in this mode as they will affect the management interface as well and possibly block management access.

See management for a detailed description of how the network configuration is handled by nEdge.


Overlapping IP addresses across multiple VLANs are not handled. nedge will show them as a single host


Neither the CaptivePortal nor the DNS enforcement is performed in this mode.

Full Transparent Mode

In order to set up nEdge to be fully transparent, which means that it won’t alter network traffic but only provide a pass/drop verdict for client packets, some care should be taken.

  • Make sure the Enforce Global DNS is disabled from the DNS settings page.
  • Disalbe the Captive Portal the can alter packets in order to perform devices authentication.

Supported Ethernet Protocols

While running in bridge mode, nEdge supports the following ethernet protocols:

  • ARP
  • IPv4

Other ethernet protocols (like PPPoE) are blocked as nEdge does not handle them.