Skip to content

Internal Addresses

Nzyme decides for the IP addresses of the traffic it records whether an address is internal, meaning part of your own networks, or external. The decision is used all over the Ethernet pages: the topology draws internal and external nodes differently, the TCP/UDP pages count internal traffic, beacon and scan detection treat internal destinations differently from external ones, and segmentation puts addresses that are in no segment under Unassigned or Internet.

This page describes which addresses are internal, how to add your own networks, how Nzyme learns the IPv6 prefixes of your network, how to make the carrier-grade NAT range internal, for example for an overlay network like Tailscale, and what a change does to data that is stored already.

Which Addresses Are Internal

Addresses Count as
The private IPv4 ranges 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 Internal.
IPv6 unique local addresses fc00::/7 and the deprecated site-local range fec0::/10 Internal.
Link-local addresses 169.254.0.0/16 and fe80::/10 Internal.
Addresses in a configured internal network Internal.
Addresses in a learned network Internal.
The carrier-grade NAT range 100.64.0.0/10 External, unless configured as internal.
Every other address External.

An external address is looked up in GeoIP data and carries its autonomous system, country and city where they are known. An internal address carries the asset that has it instead.

Some features extend this for their own purpose. Beacon and scan detection also treat loopback addresses as site-local, and segmentation counts every address of a segment as internal, whatever its range. These are described on the pages of the features.

Internal Networks

IPv4 networks almost always use private addresses, so the fixed ranges cover them. IPv6 networks usually do not: hosts have global addresses from a prefix that your internet provider or registry assigned, and nothing about such an address says that it is yours. Without further information, a host of your own network with the address 2001:db8:1200:34::20 is an external address.

The Internal Networks card on the Settings tab of the TCP/UDP page holds networks that are internal in addition to the fixed ranges. Add the IPv6 prefix of your site, or a public IPv4 network that you use internally.

Limit Value
Networks per tenant 50
Widest IPv4 network /8
Widest IPv6 network /16

Addresses in a configured network have no GeoIP data.

Learned Networks

Nzyme can find the IPv6 prefixes of your network on its own. Routers announce the prefixes of a link in their router advertisements, and the prefixes that trusted routers advertise are treated as internal networks. They are listed on the Learned Internal Networks card on the Settings tab.

  • Routers are trusted on the DHCP and Routers tab of the Spoofing page, automatically during the learning period or by a user. Only the accepted configuration of a trusted router counts. A router that is not trusted adds nothing, and neither does a changed configuration that nobody accepted. During the learning period, what a trusted router advertises is accepted automatically. A rogue router can therefore not make an address of its choosing internal.
  • A prefix is learned if it is a /48 or longer. Unique local prefixes are internal anyway and are not listed.
  • Up to 500 networks are learned. If there are more, the prefixes of the routers that were learned first stay.
  • The list follows the routers: a prefix is forgotten when its router is untrusted or forgotten, or when a configuration without the prefix is accepted for it.
  • Turn Learn internal IPv6 networks from trusted routers off to use the configured networks only. This forgets what was learned.

Learned networks only exist on the node. A tap does not know them.

Who can change what is internal

The settings on the Settings tab are for administrators. Trusting a router is open to users with the Manage Ethernet Monitoring permission, and with learning turned on it changes which addresses of the tenant are internal. Turn learning off if only administrators should decide that.

The Carrier-Grade NAT Range

The range 100.64.0.0/10 is the shared address space of RFC 6598. It is not routed on the internet, but it is not a private range either. Two very different kinds of addresses come from it:

  • Addresses of internet providers. A provider that runs carrier-grade NAT (CGNAT) gives its customers an address of this range instead of a public one. A tap that records the outside of your router can see such addresses. They are not part of your network.
  • Addresses of overlay networks. Mesh VPNs like Tailscale give every device an address of this range. Some organizations also use the range for their own networks, because it does not collide with the private ranges of the networks they connect. These addresses are part of your network.

Nzyme cannot tell the two apart, so the range is external by default. A connection between two Tailscale devices then appears as a connection between two external addresses that GeoIP data knows nothing about. In the topology both are external nodes, which end up under Internet (unresolved) or Unknown country when external nodes are grouped, and the TCP/UDP pages do not count the connection as internal traffic.

If the addresses of this range that your taps record are your own, turn on Treat CGNAT addresses (100.64.0.0/10) as internal.

Where overlay addresses are recorded

A tap on the Ethernet network sees the traffic of a mesh VPN as encrypted tunnels, which are listed on the VPN page. The addresses of the overlay network itself only appear in data of a tap that captures the overlay interface, which is a Raw IP capture.

What the Settings Change

An address that is internal by any of the rules above is recorded as internal. This applies in the following places. The table speaks of the carrier-grade NAT range, and the same is true for configured and learned networks:

Where What changes
TCP and UDP sessions Addresses of the range are internal. Sessions between them count as internal traffic in the numbers and charts of the TCP/UDP overview, and the filters for internal addresses match them.
Topology Addresses of the range are internal nodes. They can be grouped by network and by tap, and connections between them are internal traffic. The topology widget of dashboards follows.
DNS Clients and servers of the range are internal in the transaction log.
VPN, STUN, portal integrity Addresses of the range are shown as internal addresses.
Assets Peers of the range are internal peers in the communication of an asset. Addresses of the range are handled like private addresses where a MAC address is shown with the asset that has the address, and transparent context records them for MAC addresses.
Beacons Destinations of the range are site-local. They are not analyzed unless Include site-local destinations is on.
Recon Sources and targets of the range are site-local. Scans between them are reported with the default settings, where they were left out as external before.
Segmentation Addresses of the range that are in no segment and in no external network are Unassigned instead of Internet, match the Internal selector of policies and can be excluded destinations.
Search and context An address of the range is described as an internal address. The context overlay lists it with the attribute Internal (CGNAT).

Addresses of the range have no GeoIP data in either case.

Data Recorded Before a Change

A change of what is internal also applies to data that is stored already. This is true for every change: a network that was configured, learned or removed, and the carrier-grade NAT setting.

  • Stored with the data. TCP/UDP sessions, TCP probes, the DNS servers of the DNS overview, VPN connections, IPv6 transition tunnels, portal integrity checks and beacons store whether an address is internal. After a change, Nzyme updates the stored records of the tenant in the background, for the addresses of the networks that changed. Everything that is drawn or counted from them follows: the topology, the TCP/UDP pages, the filters for internal addresses and beacon and scan detection on sessions.
  • Decided when the data is used. The address details on the beacon, ICMP, recon and TLS pages, the asset that is shown for a MAC address, search, beacon detection in TLS and SOCKS traffic and the detection of ICMP and reverse DNS sweeps use the rules as they are at that moment.

The update starts about half a minute after the change and takes from seconds to a few minutes, depending on how much is stored. The Settings tab says so while it is running. Until it is done, an address of a changed network can be internal in one place and external in another.

Two kinds of data are not updated, because they are stored as totals that cannot be split afterwards:

  • The communication of assets with internal peers and external networks.
  • The totals of internal and external traffic on the TCP/UDP overview.

Both are right from the change on, and the older data leaves with its retention time.

Segmentation always uses the rules as they are at that moment:

  • Sessions that are evaluated after a change are evaluated with the new rules. This includes the stored sessions that a new or changed policy is judged against.
  • Stored flows are matched again like after a change of a segment, at the start of the next evaluation. A network that is no longer internal moves its stored traffic from Unassigned to Internet. A network that became internal does not move stored traffic to Unassigned, because stored traffic of external addresses cannot be matched against address ranges afterwards.
  • Findings that exist are not changed, and policies that exist are not judged against stored sessions again.

The address filter operators do not depend on the rules at all. They compare an address with fixed address ranges:

Operator Matches
IS PRIVATE, IS NOT PRIVATE The private IPv4 ranges and IPv6 unique local addresses (fc00::/7).
IS CGNAT, IS NOT CGNAT The carrier-grade NAT range 100.64.0.0/10.
IS LINK-LOCAL, IS NOT LINK-LOCAL 169.254.0.0/16 and fe80::/10.
IS IPV4, IS IPV6 Addresses of that IP version.

Monitors, dashboard widgets and bookmarks that were saved from the quick filters of an earlier version use IS PRIVATE and keep doing so.

Filters

The TCP/UDP sessions page, the topology and monitors of TCP/UDP sessions have three filter fields that read what was recorded with a session. They follow the setting, and they match sessions the way the topology draws them.

Field Matches sessions
Internal Connection whose source and destination are both internal (True), or that have at least one external end (False).
Source is Internal whose source is internal (True) or external (False).
Destination is Internal whose destination is internal (True) or external (False).

The Quick Filters menu next to the filter form sets them for you:

Quick filter Adds
Only Internal Connections Internal Connection == true
No Internal Connections Internal Connection == false
Only Connections from External Source is Internal == false

To select by address range instead, independent of the settings, use the IS PRIVATE, IS LINK-LOCAL and IS CGNAT operators of the address fields and their negations. Address IS CGNAT shows all sessions that have an address of the range on either end.

Configuration

The carrier-grade NAT setting and the internal networks exist in two places: in the web interface and in the configuration of the taps. Set both to the same values.

Web Interface

Organization administrators and super administrators can change the settings on the Settings tab of the TCP/UDP page under Ethernet in the sidebar of your Nzyme web interface. Other users do not see the tab. The settings apply to the selected tenant and to all of its taps.

Key Default Description
Treat CGNAT addresses (100.64.0.0/10) as internal false Record addresses of the carrier-grade NAT range as internal addresses.
Learn internal IPv6 networks from trusted routers true Treat the prefixes that trusted routers advertise as internal networks.

The Internal Networks card below the settings holds the configured networks.

A change applies to new data and to data that is stored already. In a setup with multiple nodes, the other nodes follow within 15 seconds.

Taps

Taps decide which side of a connection is its source before they report it. For most traffic this is known from the traffic itself. For STUN, ICE and WebRTC connections it often is not, and one of the signals a tap falls back to is which of the two addresses is internal. The tap has to know your networks for that.

Set the following variables in the [misc] section of the nzyme-tap configuration file of every tap of the tenant and restart the tap:

[misc]
cgnat_is_internal = true
internal_networks = [ "2001:db8:1200::/48" ]
Variable Default Description
cgnat_is_internal false Treat addresses of the carrier-grade NAT range 100.64.0.0/10 as internal addresses. Optional.
internal_networks Networks in CIDR notation that are internal in addition to the fixed ranges. Required. Set it to [] if you have none.

The tap reports the values with the rest of its configuration, which is shown on the details page of the tap under System and Taps. The Taps With Different Values card on the Settings tab compares what the taps of the tenant reported with the settings of the web interface and lists the taps that differ. Learned networks are not compared, because taps do not know them. Deleted taps are left out.

If the settings differ, everything is still recorded and addresses are internal or external as the settings of the web interface say. Only the source and destination of some STUN, ICE and WebRTC connections between an address of such a network and another address can be the wrong way around. The same is true for addresses of learned networks.

Working With the Settings

  • Start with IPv6. If your network uses IPv6, open the Settings tab and check the Learned Internal Networks card. With trusted routers it lists your prefixes without further work. Add the prefix of your site to Internal Networks as well if hosts use addresses of prefixes that no router on a monitored link advertises, or if you do not want to rely on learning.
  • Find addresses that should be internal. Filter the TCP/UDP sessions page for Internal Connection == false and Source Address IS IPV6. Sources that are hosts of your own network belong to a prefix that is missing.
  • Look at the range first. Filter the TCP/UDP sessions page for Address IS CGNAT before you change anything. If the addresses are the devices of your overlay network, turn the setting on. If they are addresses of your internet provider, leave it off: with the setting on, traffic to and from the provider's network would count as internal, and scan and beacon detection would treat it as traffic inside your network.
  • Review the overlay network in the topology. With the setting on, select Only Internal Connections. The addresses of the overlay network are internal nodes, and a connection from an overlay address to a server is internal traffic like any other. Grouped by Networks, overlay addresses are grouped by /24 network like all internal addresses. An overlay network that spreads its addresses over the whole range then appears as many networks, and grouping by Addresses shows it better.
  • Give the range a name. A segment with the network 100.64.0.0/10, or with the part of it that you use, names the overlay network in the segmentation overview and lets policies say what it may reach. A segment makes its addresses internal for segmentation on its own. The setting makes them internal everywhere else.
  • Decide what detection should see. Devices of an overlay network reach each other directly, past the firewalls between your networks. Scans between them are reported once the range is internal. Beacons to them are only analyzed with Include site-local destinations, see Beacons.
  • Give the update a moment. After a change, stored records are updated in the background. Until the Settings tab no longer says so, the topology can show the same address as an external node and as an internal node.