KORTHVEILSecurity firewall
Guides

ILNP: keep connections when nodes move

Download as PDF All guides

ILNP (Identifier-Locator Network Protocol, RFC 6740-6748) lets a device keep its connections when its network address changes. An ILNPv6 address has two halves:

  • the locator, the first 64 bits: where the node is attached;
  • the Node Identifier (NID), the last 64 bits: which node it is.

When a laptop moves to another network, or your site changes internet provider, the locator changes and the identifier stays. The node tells the nodes it talks with in a Locator Update (an ICMPv6 message carrying a nonce), and their connections carry on. Korthveil passes ILNPv6 through, and lets your rules follow a node by its identifier, from 1.2.6.

The quick way: the wizard

Open System › Wizards and choose ILNP: keep connections when nodes move.

  1. Locator updates: leave Pass ILNP Locator Updates through the firewall ticked.
  2. Nodes: give each ILNP node a name and its Node Identifier, such as 0014:4fff:ff20:ee64, or paste one of its IPv6 addresses: the wizard takes the identifier from it. Each node becomes an address object.
  3. Rule: tick Allow these nodes from one zone to another and choose the zones.
  4. DNS: with the DNS resolver add-in on, tick Publish the nodes' identifiers in DNS (NID records).
  5. Review, Apply and Keep these settings.
The wizard's nodes step
The wizard's nodes step

The switch: Locator Updates

Without ILNP on, the firewall drops Locator Updates: connection tracking cannot follow them and calls them invalid. The switch is under Firewall › Edge protection › ILNP: nodes that move.

When it is on, Locator Updates (ICMPv6 type 156 with a destination options header, which holds the nonce) pass both ways. They still meet the same blocks as new connections first:

  • the geo filter;
  • attack watch;
  • the add-ins' blocks.

The nodes check the nonce themselves, as ILNP requires. The firewall itself is not an ILNP node. Ordinary traffic carrying ILNP's nonce option passes untouched.

The ILNP switch on Edge protection
The ILNP switch on Edge protection

Rules that follow a node: Node Identifiers

In an address object, an entry like nid:0014:4fff:ff20:ee64 matches every IPv6 address whose last 64 bits are that identifier, whatever its locator. A rule with that object keeps matching the node after it moves, where a rule by address would stop matching.

  • Where they work: zone rules, floating rules, policy routes, outbound rules, Policy lookup and the rule checker understand them.
  • Where they're refused: NAT, the geo filter and the allowed sources of the firewall's own services match whole addresses, so they refuse identifiers.
  • Typing one in: the editor shows each entry as Node ID. It corrects a whole address written after nid: to its identifier.
A Node ID in an address object
A Node ID in an address object

DNS records

Under Network › DNS › DNS resolver › Local names, host records can be ILNP records (RFC 6742). Each is a preference and a value:

Type Example Meaning
NID 10 0014:4fff:ff20:ee64 the node's identifier
L64 10 2001:0db8:1140:1000 an IPv6 locator (the network it is on)
L32 10 192.0.2.0 an IPv4 locator (ILNPv4)
LP 10 l64-subnet1.example.com the name that holds the locators
ILNP record types in the DNS resolver
ILNP record types in the DNS resolver

Good to know

  • Stable identifiers only: ordinary IPv6 devices change the last 64 bits of their addresses now and then (temporary addresses). Use Node IDs for ILNP nodes, which keep theirs.
  • IPv6: Locator Updates and Node IDs are ILNPv6. The firewall does not change ILNPv4 traffic.
  • Not a security check: a Locator Update is let through by its type and header; the nodes check the nonce. The switch is off by default.

Download as PDF All guides