OPNsense plugin · beta, build 0.9.0_30

Your firewall, inside the SPB fabric.

os-spbm makes OPNsense a bridge of an IEEE 802.1Q Shortest Path Bridging fabric in MAC mode (SPBM). Every fabric service arrives as an ordinary interface: route it, filter it, NAT it, run DHCP on it, make it highly available. No hand-off VLANs, no trunk to keep in step with the fabric.

  • 802.1Q-2022 SPBM, ISIS-SPB
  • Each I-SID is an OPNsense interface
  • Redundant links, no MC-LAG
  • IP VPN with ALE OmniSwitch
  • Topology map of the fabric
  • Health over the API and SNMP
  • Tested with ALE and Extreme
Limits at a glance
4096 I-SIDs on this firewall
16 B-VLANs, one ECT algorithm each
16 SPB interfaces
4006 bridges tested (about 2000 recommended)
os-spbmOPNsense plugin
spbmif_spbm.ko, daemons, spbmctl
spbm-frrFRR 10.7.1 + SPBM patches
os-spbm in 23 seconds: the firewall inside the fabric, every I-SID an OPNsense interface, and IP VPN over the fabric with ALE OmniSwitch.
What it does

Features in 0.9.0.

Interfaces › Assignments: the services MGMT, SERVERS, STAFF, GUESTS, CAMERAS, RED and BLUE as spbm interfaces, each with its I-SID, B-VLAN and addresses, beside LAN, WAN and HA.
Interfaces › Assignments: seven fabric services as OPNsense interfaces, beside LAN and WAN.
01

A bridge of its own

The firewall joins an SPBM fabric (802.1Q-2022 SPBM, IS-IS SPB) with its own adjacencies and shortest paths. Linked to several switches, it is redundant by adjacency alone, with no MC-LAG. It carries transit for other bridges only if "No transit" is off.

02

Services as interfaces

Each service (I-SID) is an interface, spbmN, which you assign and use like any other: addresses, DHCP, router advertisements, firewall rules, NAT, bridges, CARP.

03

Multicast per service

Head-end replication or tandem multicast per service. The B-VLAN is chosen per service, with a default from the I-SID that spreads new services over the profile's B-VLANs (ALE: all four, Extreme: both).

04

Fabric profiles

Profiles for ALE OmniSwitch AOS and Extreme VOSS / Fabric Engine, and support for mixed fabrics of both. Under the Extreme profile a new service starts as tandem, as VOSS always uses it.

05

Strip customer tags

A per-service option for frames that arrive tagged inside the I-TAG, so one interface serves tagged and untagged senders alike.

06

High availability

The fabric settings sync to the backup, and each firewall keeps its own identity and SPB interfaces. With the optional CARP demote, a planned stop and a return lost no traffic in the lab.

07

Sizing and speed

Guidance from a small box up to 2000 bridges, and spbm-dataplane bench to measure your own. The kernel data path scales with CPU cores: about 1.2 million frames/s (13 Gb/s of full-size frames) per sending core of an Intel Xeon at 2.1 GHz, with traffic from several cores spread over the card's send queues.

08

Status and privileges

SPB links first, every configured link, with what is wrong in words; then adjacencies, nodes, services and counters. Dashboard widget, log file, man pages, and separate privileges for Fabric, Services, Status and Topology, IP VPN and IP VPN routes.

09

Checks before joining

The firewall refuses a duplicate System ID, one another bridge uses, or one that would be a multicast B-MAC. While running, it alerts on adjacencies stuck in Initializing, on its own LSPs coming back newer, and on hellos that carry its own System ID.

10

IP VPN

Routed VPNs in ALE OmniSwitch "SPB L3 VPN" format, off by default. IPv4 and IPv6 routes both ways, route tags, import and export rules, summaries and HA with CARP. More

11

Topology map

SPBM › Topology draws the fabric as this firewall sees it: find bridges, hosts, prefixes and I-SIDs, show paths per B-VLAN, and get checks for single points of failure. More

12

Beside os-frr

SPBM runs its own FRR, listens on no TCP port, and marks its routes so that neither takes the other's. Tested with os-frr 2.0. Logs through syslog only, at most 10 state changes a minute while a fabric flaps.

13

Link metrics

A cost per SPB link, suggested from the link speed on the fabric profile's scale (ALE's design guidelines or the VOSS / Fabric Engine auto metric), so that traffic prefers the faster links. Changed live, without dropping the adjacency.

14

Priority in the fabric

IS-IS at 802.1p priority 6, as AOS sends it, so a congested port keeps the adjacency. Service frames per service: from the customer tag (the default), from the DSCP, or fixed; a firewall rule's "Set priority" wins.

15

Monitoring

One health check: a Nagios-style line with exit status 0–3 for Monit, JSON over the API, and SNMP v2c/v3 through os-net-snmp at fixed OIDs, for NAV, OmniVista, PRTG or Zabbix. SPB links describe themselves over SNMP (ifAlias).

Defaults for the fabric it joins

  • A fabric profile fills in what the switches expect: B-VLANs, area, IS-IS address, hello format, B-TAG.
  • The control plane comes first: IS-IS at 802.1p priority 6, as the switches send theirs; service traffic is capped at 5, and routed traffic stays at 0 unless you choose otherwise. Nothing to change in the switches' QoS.
  • No transit: other bridges reach the firewall's services but never route through it.
  • SPB links carry only SPB; anything else a switch sends there is dropped and counted.
  • Link metrics start at 10, as on AOS, and one click suggests them from the link speeds on the profile's scale.
  • IP VPN is off until switched on. Then a default route from the fabric is never imported without a rule, OPNsense's own routes always win, every announced route carries a route tag against loops, and a firewall that has just started announces as backup until its routing is stable.

Yours to set: the SPB interfaces and services, and a pair tag of its own for each HA pair or single firewall when there are several. CARP demote is off by default, because it moves every VIP.

A tour with screenshots, page by page: features on pkg.spbm.se.

Use cases

How sites put the firewall into the fabric.

SPB fabric OPNsense os-spbm Internet staff guests cameras spbm1 staff (I-SID 1001) spbm2 guests (I-SID 1002) spbm3 cameras (I-SID 1003)

Segments, routed and filtered by the firewall

Departments, guests, building systems: each is a service of the fabric, on any switch port the switches map to it, campus-wide. The firewall is the gateway of all of them: it routes between them only where its rules allow, hands out addresses, and connects them to the internet.

SPB fabric OPNsense 1 CARP master OPNsense 2 CARP backup sync a service's CARP address answers from the master

Two firewalls as an HA pair

Each firewall joins the fabric as a bridge of its own, with its own links. The services' gateway addresses are CARP addresses on the spbmN interfaces, so hosts keep one gateway whichever firewall is master. Settings and services sync from the master.

OPNsense os-spbm VRF red 10.10.0.0/16 VRF blue 10.51.0.0/16 routes in: the VPNs' networks(learned from the switches) routes out: a default andthe firewall's own networks

IP VPN with ALE OmniSwitch

The switches route inside their VPNs; the firewall is the way out of each VPN and between VPNs, under its rules. It learns the VPNs' routes, IPv4 and IPv6, and announces a default and the networks it routes for. An HA pair announces with metrics that follow CARP.

one SPB fabric, B-VLANs and I-SIDs agreed on all bridges OPNsense ALE EXT OmniSwitchFabric Engine

A fabric of ALE and Extreme switches

A site moving from one switch vendor to another, or running both: the firewall takes part in the shared fabric under either profile, and its services reach hosts behind both kinds of switches.

Step by step, with the manual's sections: use cases on pkg.spbm.se.

Under the hood

A complete SPBM stack, inside OPNsense.

The plugin is the part you see. Underneath are an IS-IS SPB implementation of its own, a fabric daemon, a path computation and a kernel data path, from the signed spbm repository and always installed together.

os-spbm OPNsense web GUI and API Settings, Services, Status, Topology, IP VPN, dashboard widget, health check, HA sync, privileges
configuration · status
spbm spbmd Follows the fabric, checks System IDs, raises alerts, hands every change on to the data path
spbm-frr isisd and zebra FRR 10.7.1 with SPBM patches: IS-IS SPB and the link-state database. Its own sockets, no TCP port, separate from os-frr
fabric snapshot on every change
spbm Data path daemon (spbm-dataplane) Shortest paths per B-VLAN with its ECT algorithm, multicast trees, forwarding tables
forwarding tables
spbm Kernel module if_spbm.ko 802.1ah encapsulation, the spbmN interfaces, customer MAC learning, replication, priority, SPB-only links. spbmctl reads its counters, learned MACs and priorities
frames
SPB links The firewall's network ports toward the switches, up to 16
  • Tested before it ships. Every build runs the test suite before it is packaged and is checked on a test firewall before it is published.
  • Fuzzed. Every build fuzz-tests the kernel data path, and a coverage-guided run on FreeBSD went an hour without a failure. The fuzzing found and fixed two data path bugs before the beta: a multicast copy changed in transit, and a fabric state naming one link twice.
  • Checkable on your box. kmod-check.sh checks the kernel module without interrupting SPBM, soak.sh runs a soak test over days, and man pages cover the commands.
The technology

Why SPBM.

Shortest Path Bridging (IEEE 802.1aq, now part of 802.1Q) builds an Ethernet fabric on one link-state control plane: no spanning tree, no blocked links, and services that are switched on at the edge without touching the core. ALE OmniSwitch and Extreme Fabric Engine switches build SPBM fabrics, next to VLANs, routing and VXLAN, and os-spbm is tested with both.

01

One control plane

IS-IS carries the topology, every bridge's backbone MAC and which services it has. Every bridge computes the same shortest paths from it. No spanning tree, no overlay protocol on top, every link forwards.

02

Services at the edge

A service is an I-SID, set up only on the bridges where it has members; the core is not touched. 24 bits of service ID, about 16 million services, instead of 4094 VLANs.

03

Small core tables

MAC-in-MAC (802.1ah): core bridges forward on the bridges' backbone MACs only, which IS-IS installs. Customer MACs stay at the edge, where the service ends.

04

Symmetric paths

Unicast and multicast take the same shortest path, in both directions. What you trace one way is what the reply takes, which is what a stateful firewall wants. Up to 16 ECT algorithms spread services over equal-cost paths.

05

Multicast built in

Head-end replication, or tandem multicast on source-specific trees that IS-IS computes itself. No PIM and no multicast routing in an underlay.

06

An IEEE standard

Multi-vendor by design: ALE and Extreme switches share one fabric, and os-spbm joins either, or both. A failed link is routed around in under a second (0.4–0.8 s measured with os-spbm on hardware).

The firewall outside the fabric

A switch ends each service and hands it over on a VLAN trunk. Every service needs a VLAN, a mapping on the switch and a matching interface on the firewall, kept in step by hand; for routed VPNs, also an address and a routing session per VPN. Redundancy toward the fabric needs a link aggregate across two switches: MC-LAG, a stack or a virtual chassis, each with its own setup and failure modes.

The firewall inside the fabric

OPNsense is a bridge of its own, with IS-IS adjacencies to the switches. Each I-SID is an interface spbmN: add the service once and it reaches wherever the fabric carries it. With IP VPN, the firewall takes part in the switches' routed VPNs directly. Redundancy is just more links: each SPB link to another switch is an adjacency of its own, and the fabric routes around a failed one (0.4–0.8 s measured).

B-DA6 B-SA6 B-TAGB-VID · 4 I-TAGI-SID · 6 customer frameuntouched
22 bytes of backbone header in front of the customer's frame. The firewall adds and removes it in its kernel module, if_spbm.ko.
If you know VXLAN

SPBM next to VXLAN and EVPN.

Both carry Layer 2 services with a 24-bit ID over a shortest-path fabric. The difference you feel every day is how much there is to set up and look after.

No underlay to build

SPBM runs IS-IS directly on Ethernet links: no link subnets, no loopbacks, no IP addressing plan for the fabric itself. VXLAN needs a routed IP underlay first, and its IGP.

One protocol, not three

IS-IS does topology, paths, service membership and multicast trees. EVPN adds BGP sessions or route reflectors on top of the underlay IGP, and often PIM for broadcast and multicast.

A service is one number

A new SPBM service is its I-SID on the bridges where it has members. In EVPN it is a VNI with a VLAN mapping, an EVPN instance with route distinguisher and route targets, and a replication list or multicast group, on every VTEP that has it.

SPBM is not SPBV

802.1Q defines two modes. SPBV, the VLAN mode, keeps ordinary 802.1ad tags and gives each bridge its own VLAN ID per VLAN: every bridge learns every customer MAC, and the 4094 VLAN IDs run out fast. As far as we know, no switch sold today implements it: the one commercial implementation we know of, in Enterasys's (later Extreme's) S-, K- and 7100-Series, has been discontinued, and Extreme's fabric is SPBM. SPBM, the MAC mode, encapsulates MAC-in-MAC: the core sees only backbone MACs, and services are I-SIDs. When a comparison says SPB fills MAC tables or stops at 4094 services, it describes SPBV. ALE, Extreme and os-spbm use SPBM.

SPBMVXLAN with BGP EVPN
StandardIEEE 802.1Q (802.1aq, 802.1ah)IETF: RFC 7348 (VXLAN), RFC 7432 and 8365 (EVPN)
Control planeOne: IS-IS carries topology, backbone MACs and service membershipAn underlay IGP, BGP EVPN for the overlay, and multicast routing if BUM goes over multicast
Runs onEthernet links between bridgesAny IP network
Fabric to configureSystem ID, area and B-VLANs per bridge; adjacencies come up by themselvesUnderlay addressing and IGP, BGP sessions or route reflectors, VTEP addresses, often multicast routing
A new serviceThe I-SID on the edge bridges that have membersVNI, VLAN mapping, EVPN instance with RD and route targets, replication list or multicast group, per VTEP
Service IDI-SID, 24 bitsVNI, 24 bits
Header overhead22 bytes50 bytes over IPv4, 70 over IPv6
State in the coreBackbone MACs of the bridges, installed by IS-ISIP routes to the VTEPs
Customer MACs at the edgeLearned from trafficLearned, and advertised in BGP
Broadcast and multicastHead-end replication, or trees computed by IS-IS; no PIMIngress replication, or underlay multicast (PIM)
PathsShortest, symmetric and congruent; load spread per service over up to 16 ECT algorithmsShortest; per-flow ECMP from the underlay; the return path can differ
Fits bestCampus and enterprise Ethernet fabrics, where little to configure and one protocol to troubleshoot matterData centres and fabrics that have to cross routed IP networks

Neither replaces the other everywhere. VXLAN's strength is that it runs over any IP network, with per-flow ECMP and broad vendor support. SPBM's is that a whole campus fabric, multicast included, is one protocol on Ethernet links, with far less to configure, document and keep consistent, and paths that are the same both ways. os-spbm brings the firewall into that fabric as a bridge of its own.

Standard features

IEEE 802.1Q-2022 support.

It follows the standard. Where switches deviate from it, their behaviour is accommodated and listed as such. Features outside the standard are not implemented unless there is a real need. Clause numbers refer to IEEE Std 802.1Q-2022.

FeatureClauseos-spbm
SPBM (MAC mode)27, 28Supported
SPBV (VLAN mode)27.12Not supported
ISIS-SPB, Level 1, point-to-point adjacencies28Supported
ISIS-SPB PDU address: AllL1, AllL2, AllIS8.13.5.1Supported AllL1 by default
ECT algorithms 00-80-C2-01 to 00-80-C2-10 (16 symmetric shortest path trees)28.7, 28.8Supported One per B-VLAN, up to 16 B-VLANs
ECMP ECT algorithm 00-80-C2-11 and shared trees44Not supported
Explicit trees45Not supported
Unicast forwarding on shortest paths, symmetric and congruent27.14, 27.17, 28.5Supported
Multicast: head-end replication (T=R=0, unicast copy per member)28.12.10Supported
Multicast: tandem, a source-specific tree per transmitter (S,G), SPSourceID-based group address27.15, 27.16Supported
SPSourceID27.10Configured or automatic (low 20 bits of the System ID)
Overload ("No transit"): reachable, never a transit node27.8.1Supported On by default
B-TAG TPID 0x88A8Table 9-1Supported Available as a setting; the default is 0x8100, as on ALE and Extreme switches
I-TAG (802.1ah), I-SIDs 256 to 167772149.7, Table 9-3Supported Reserved I-SIDs are refused
MCID check28.2, 13.8Supported Strict, or only when the neighbour sends one
Agreement protocol (digest match required)28.3, 28.4Not implemented Sent as "no digest match required" (28.4.3)
CIST / MSTP interworking, region boundaries27.6, 27.7Not supported The fabric is one SPT region
CFM for SPBM (OAM)27.18Not supported CFM frames are passed to the firewall
Multi-level ISIS-SPB28Not supported Level 1 only

All specifications in one place: specifications on pkg.spbm.se.

Firewall integration

Integration with OPNsense.

Featureos-spbm
ServicesEach I-SID is an OPNsense interface (spbmN) that takes addresses, firewall rules, NAT, DHCP, CARP and bridges like any other interface
E-Tree leavesThrough "private" members of an OPNsense bridge
Customer VLAN tagsPassed through, or stripped per service ("Strip customer tags")
SPB interfacesUp to 16. They accept only SPB, IS-IS, CFM and link-local control frames (this filter can be switched off)
Link metricsPer SPB interface, 1 to 16,777,214 (default 10, as AOS), suggested from the link speed: ALE profile per ALE's SPB design guidelines (10 Gb/s = 10,000), Extreme profile per the VOSS / Fabric Engine auto metric (10 Gb/s = 200). The higher of the two ends counts (802.1Q 28.5)
Backbone MTU1522 to 16000 (jumbo frames tested at 9194)
Data pathIn the kernel (if_spbm.ko). Bound by the CPU, not the card: about 1.2 million frames/s, 13 Gb/s of full-size frames, per sending core (Intel Xeon at 2.1 GHz, Intel E810); traffic from several cores is spread over the link's send queues. Fuzz-tested in every build
Priority (QoS)IS-IS at 802.1p priority 6, as AOS. Service frames per service, in the B-TAG and the I-TAG: from the customer tag (default, as an ALE access port: untagged traffic at 0), from the DSCP, or fixed 0–7. A firewall rule's "Set priority" wins; values taken from the traffic are capped at 5. Received frames are accepted at any priority
HACARP on spbmN, CARP demote when the fabric is lost, fabric and services synchronized
Failover times (lab)Planned stop and return with CARP demote: no loss measured. Master lost without warning: about 3.4 s (CARP's master-down interval). One of several SPB links lost with carrier: 0.4–0.8 s, back in 0.1–0.4 s (OPNsense on hardware, and hardware OmniSwitches). IS-IS switched off on the switch port: about 0.5 s. A link fault that keeps the carrier: up to 30 s (IS-IS hold time; no BFD or CFM), or 9 s or 3 s for the switches to drop the firewall with a shorter announced hold time (Neighbour failure detection)
MonitoringHealth check with exit status 0–3 for Monit and Nagios-style checks; the same as JSON over the API; over SNMP v2c/v3 through os-net-snmp (NET-SNMP-EXTEND-MIB, fixed OIDs). Syslog to a remote server; interface counters (IF-MIB) of the SPB links and services, which name themselves in ifAlias
DiagnosticsStatus page (SPB links, adjacencies, nodes, services, counters), log file, dashboard widget; topology map with paths computed from the fabric database, not measured (CFM is not implemented); kmod-check.sh for the kernel module in the running kernel, soak.sh for a soak run over days; man pages spbm(8), spbmctl(8), if_spbm(4)
Live changesServices, B-VLANs, SPSourceID, bridge priority, SPB interfaces, link metrics and most settings change without restarting the fabric
SPB on a LAGGNot supported Use several SPB links instead; the fabric spreads and fails over across them
Interoperability

Tested with ALE and Extreme.

What has been tested with which switches, and how. With Extreme, so far the transport: adjacency, the shared fabric database and a service across the fabric. Profile "ALE OmniSwitch AOS" with vAOS 8.10 and 8.11 and OmniSwitch hardware (OS6870 and others); profile "Extreme VOSS" with Fabric Engine 9.3.1.

FunctionALE OmniSwitchExtreme Fabric Engine
Adjacency, shared fabric database, a service across the fabricHardwareVirtual Four hops to an OS6870 on OPNsense hardwareVirtual Ping and DHCP across the fabric
Head-end multicastVirtual AOS's defaultNot used: VOSS always uses tandem
Tandem multicastVirtualCarries the traffic above; not tested on its own
DHCP, router advertisements, NAT, bridges on a serviceVirtualNot tested
Customer tags inside the I-TAGHardware Tagged and untaggedNot tested
Link metrics, link failoverHardware 0.4–0.8 s down, 0.1–0.4 s backNot tested
Priority of IS-IS and service framesHardware Checked on the wireNot tested
HA pair with CARPVirtualNot tested
Topology mapVirtualNot tested
IP VPNHardwareVirtual AOS 8.11 or later for an HA pair and IPv6 route tagsNot supported Extreme's L3 VSN format differs
ALE and Extreme in one fabricVirtual Shared database, a service from ALE through the firewall to VOSS

Hardware: with physical switches; Virtual: with the vendors' virtual switches in GNS3. Not tested yet: an HA pair on hardware, Extreme beyond the transport, and Extreme hardware. Dates and setups are in the release notes. Need another switch or release tested? Tell us.

Measured

Performance and size.

Figures from the lab. Take them as what to expect, not as a guarantee.

1.2 Mpps per sending CPU core, about 13 Gb/s of full-size frames, on an Intel Xeon at 2.1 GHz. The core sets the limit, not the card (an Intel E810, 100 Gb/s); traffic from several cores is spread over the card's send queues
0.4–0.8 s when one of several SPB links fails with loss of carrier, 0.1–0.4 s when it returns (OPNsense on hardware, OmniSwitch fabric)
Negligible CPU while the fabric is quiet: it rounded to 0 % at 1006 and 4006 bridges and with 100,000 I-SIDs. A cheap check every 10 s; paths are recomputed only on a change
0.25–0.6 s for an IP VPN route change to reach the routing table; 10,000 routes installed in about 8 s

Why about 2000 bridges

The limit is time, not memory. On every change in the fabric (a link, a bridge, a service), the firewall recomputes its paths to every member of its services, and that grows roughly with the square of the number of bridges. Traffic keeps flowing on the old tables meanwhile, but a failover inside the fabric waits that long for this firewall. At about 2000 bridges a change takes about 2 s on four cores; one update must finish within 10 s, which one core passes at about 3,500 bridges. Measured on a generated campus fabric, Intel Xeon at 2.1 GHz, with the real IS-IS, daemon and data path:

FabricBridgesI-SIDs (on firewall)Memory (peak)Per change, 1 corePer change, 4 cores
Branch / small site56100 (70)45 MiB< 0.05 s< 0.05 s
Small campus256300 (150)80 MiB~0.1 s~0.1 s
Campus506500 (200)120 MiB~0.35 s~0.3 s
Large campus10061000 (400)250 MiB~1.1 s~0.7 s
Very large20062000 (800)430 MiB~3.3 s~1.9 s
Tested maximum40064000 (1600)880 MiB> 10 s~5 s

A low-power appliance core can be several times slower: budget at least twice the one-core time, or measure on your own box with spbm-dataplane bench. Hardware per fabric size is in the sizing FAQ. Not measured yet: throughput end to end through a fabric, with jumbo frames, and the CPU load under traffic.

LimitValue
I-SIDs on this firewall4096
SPB interfaces16
B-VLANs16, one ECT algorithm each
Learned customer MACs2000 per service by default (adjustable), about 64 bytes each
Disk88 MiB installed, 31 MiB download (the three SPBM packages and seven libraries from OPNsense's repository)
Design choices and limits

What os-spbm does not do.

Stated up front, so you can plan around them.

No MACsec or IS-IS authentication

AOS has no IS-IS authentication for SPB either, and protects SPB links with MACsec, which FreeBSD does not offer. Keep the firewall's SPB links physically protected.

No BFD or CFM

A link fault that keeps the carrier up is noticed after the IS-IS hold time: 30 s, or 9 s or 3 s with Neighbour failure detection. A lost carrier is noticed at once.

No IS-IS graceful restart

A restart of SPBM, or of a neighbour, rebuilds the adjacency. On an HA pair, CARP demote moves the traffic to the backup before a planned stop.

Standard, not vendor extensions

ALE's shared-tree tandem mode and rapid LSP convergence are not implemented: keep B-VLANs that carry tandem services at the default source-and-group mode; the firewall receives every LSP by standard flooding.

IP VPN in ALE's format only

Not Extreme's L3 VSN, and no IP shortcuts. Each HA pair or single firewall needs its own pair tag, or they refuse each other's routes.

Smaller limits

No LAGG as SPB interface. E-Tree leaves only within the firewall, not across switches. Beyond about 240 local I-SIDs the firewall's LSP continues in further fragments, not yet checked against a switch.

In os-spbm 0.9.0 · off by default

IP VPN over the fabric (ALE OmniSwitch only).

Instead of a hand-off VLAN, addresses and a routing session per VPN, the firewall takes part in the switches' routed VPNs directly, in ALE's "SPB L3 VPN" format. IEEE 802.1Q has no IP VPN, so compatibility is tested against the switches: with OmniSwitch hardware (routes in and out) and with vAOS 8.10 and 8.11 in GNS3, IPv4 and IPv6, route tags included. Part of the os-spbm package.

Featureos-spbm
SwitchesALE OmniSwitch only, AOS 8.9.R04 and later (per ALE). An HA pair, and the route tags and metrics of IPv6 routes, need AOS 8.11 or later. Tested with OmniSwitch hardware and with vAOS 8.10 and 8.11 (beta) in GNS3. Not available under the Extreme profile until Extreme's format is known
Address familiesIPv4 and IPv6
SetupSPBM › IP VPN: one VPN per I-SID, chosen by its SPBM service; next hops are the service interface's own static addresses. Off by default and switched on in SPBM › Settings; it is then active while SPBM runs and a VPN is enabled. Nothing extra to install
Routes inPer VPN, keeping the switches' metric and route tag. Import rules match on prefix range, address family and tag, and can set the tag. OPNsense's own routes always win
Routes outAn injected default route (never the firewall's own default), interface networks, static routes and routes from other VPNs. Summaries are lossless: they never cover address space the firewall does not route. Export rules can set the metric
Route tagsIPv4 and IPv6; IPv6 tags need switches that carry them: AOS 8.11 does (vAOS 8.11 beta and hardware), vAOS 8.10 installs the firewall's tagged IPv6 routes but ignores the tag. Every announced route carries the pair tag; give each HA pair or single firewall its own. Check the tags before any redistribution
HAThe metric follows a chosen CARP group (master M, backup M + D, and +1 on the secondary so the two never tie). A new master announces 2 below its normal metric while the old master's routes are still in the fabric, so a master that hangs with its links up does not hold on to the routes. Settings sync with OPNsense HA
Failover on stable routingAfter a boot, an SPBM restart or an upgrade, the firewall announces with the backup metric, even as CARP master, until routing has been stable for 15 s (at most 2 minutes). Traffic never moves to a firewall whose routes are not in its table yet
Failover times (lab)CARP maintenance mode, an SPBM restart and a reboot of the master: no ping lost. Unplanned loss of the master: not measured end to end; about CARP's 3.4 s expected. When the switch port stays up although the master is gone (a media converter, or a firewall VM), the routes move once CARP has failed over instead of after the 30 s IS-IS hold time (not measured yet)
Single firewallNo CARP settings needed; routes are announced with the master metric
StatusPer VPN, the routes in and out, each with its reason and the switch that announced it, sortable. Also shadowed routes, overlaps (with the import rule that decided them) and problems with the settings, and IP VPN routes on the topology map
Routing tablesOne (OPNsense's). Overlapping prefixes between VPNs are reported, never mixed
LimitsBy default, 10,000 routes in and 1,000 routes out per VPN
Speed (lab)A route change reaches the routing table in 0.25–0.6 s; 10,000 routes are installed about 8 s after they are announced; 0.1 % CPU at 10,000 routes while nothing changes; about 2 MB per 1,000 routes
FRR plugin (os-frr)Not needed; it can run alongside
SPBM › Topology

The fabric as this firewall sees it.

A map of the bridges and links in the firewall's IS-IS database, with link costs, services, IP VPN routes and the hosts the firewall has learned. It is read only and uses only data the firewall already has: it sends nothing into the fabric, and nothing runs while the page is closed.

SPBM › Topology with service 1003 Servers shown: members BEB3, BEB1, OPNsense and OPNsense2 marked, the paths between them bold, the other bridges dimmed.
A service on the map: its members, and the paths the fabric uses between them.
SPBM › Topology with a path drawn from OPNsense3 through BEB3 and BEB1 to this firewall on B-VLAN 4000, 3 hops, cost 30; the costly 10000 link is avoided.
The path between two bridges on a B-VLAN, around the costly link.
01

Views

The whole fabric, the bridges within N hops of this firewall, one service (its members and the paths between them), or one IP VPN with the bridges that announce its routes.

02

Find

A bridge by name, System ID or B-MAC; a host by MAC or IP address, in this firewall's own services; an IP address or prefix, with the IP VPN routes that cover it; or an I-SID.

03

Paths per B-VLAN

The path between two bridges, hop by hop with link costs and the SPB interface it leaves on. "All B-VLANs" draws each B-VLAN's path at once, since each has its own ECT algorithm, side by side where they share a link.

04

Bridge details

System ID, B-MACs, transit or not, links with the metric each end advertises, its I-SIDs with multicast mode, the hosts learned behind it, and the IP VPN routes it announces.

05

Route tags

Which bridges announce with which route tag, with this firewall's pair tag marked. A shared pair tag, or the HA peer, is easy to spot.

06

Checks

Single bridges whose failure would cut off members of this firewall's services, unreachable members, mixed multicast modes, asymmetric link metrics, and IP VPN prefixes announced by more than one bridge.

What it is not: the map is not live (it is read when the page opens or is refreshed), and paths are computed from the fabric's database with each B-VLAN's ECT algorithm, not measured, as CFM linktrace is not implemented. Fabrics of more than 250 bridges are laid out as rings of hops around this firewall; the drawing was tested in a browser with a generated fabric of 2,000 bridges. The map can be saved as a PNG.

Platform

OPNsense 26.7 on FreeBSD 15.1.

Three packages from the signed spbm repository, always installed together. if_spbm.ko is built for one OPNsense kernel, and the package refuses any other. If an OPNsense upgrade changes the kernel, install the matching spbm build: SPBM warns on every page, in the health check and in the log, and says whether the repository already has a build for the new kernel.

OPNsense26.7 (tested on 26.7.6 and 26.7.7)
KernelFreeBSD 15.1
Architectureamd64
os-spbmThe plugin
spbmKernel module, daemons, spbmctl
spbm-frrFRR 10.7.1, separate from os-frr
Disk88 MiB installed, 31 MiB download
Installation

Install and upgrade.

  1. Ask for a login to the signed spbm package repository. Beta sites get a short setup block with it.
  2. Once per firewall, enable SSH (System › Settings › Administration), log in as root and paste the setup block. It installs the repository's key and settings, prints the key's fingerprint beside the expected one and runs pkg update -r spbm. SSH can be switched off again afterwards.
  3. Install os-spbm under System › Firmware › Plugins, after "Click to view the community plugins" at the end of the list, or with pkg install os-spbm. It pulls in spbm and spbm-frr.
  4. Set it up under SPBM › Settings: the fabric profile, the SPB interfaces, then Enable and Apply. SPBM does nothing until it is enabled, and IP VPN stays off until it is switched on there.
  5. HA pairs: install on both firewalls, with the same setup block. Under System › High Availability tick SPBM fabric and services, and SPBM IP VPN if used; each firewall keeps its own SPB interfaces and System ID.
  6. Upgrade under System › Firmware › Updates, or with pkg upgrade os-spbm spbm spbm-frr. An upgrade restarts SPBM; the kernel module is reloaded only when it changed (a few seconds without SPBM traffic), and the spbmN devices, VLAN interfaces on them and their addresses come back by themselves. On an HA pair, upgrade the backup first. Before an OPNsense major upgrade, check that SPBM packages for it exist.
pkg update && pkg install os-spbm

Repository key

The packages are signed. The SHA-256 fingerprint of the repository's public key, spbm-repo.pub, is:

85e8b6775263812ac646518a359eb341155b306e5676403290f33ee51c21d156

Check it on the firewall after the setup, and compare with the install page on pkg.spbm.se. If they differ, do not install, and tell us.

sha256 -q /usr/local/etc/ssl/spbm-repo.pub
Beta

Join the beta.

0.9.0 is open to beta sites, with IP VPN and the topology map included. Contact us for repository access, beta participation or commercial terms. It helps to tell us your OPNsense version and hardware, your switches and their AOS or VOSS release, roughly how many bridges the fabric has, and whether you run an HA pair or want IP VPN. Technical questions are covered in the FAQ.

Contact us