os-xgs-npu · open source · alpha

Sophos XGS hardware, back as open firewalls

FreeBSD drivers, written against registers no vendor documents, and an OPNsense plugin around them. They hand the front ports back, then hand the coprocessor the firewall's own connections and IPsec associations, so its fast path forwards them without the host.

COMUSBF1 · npup13 · tag 0x8900 · 1G · switch port 9F1F2 · npup14 · tag 0x8a00 · 1G · switch port 10F2Port1 · npup1 · tag 0x8100 · 1G · switch port 11Port2 · npup2 · tag 0x8200 · 1G · switch port 22Port3 · npup3 · tag 0x8300 · 1G · switch port 33Port4 · npup4 · tag 0x8400 · 1G · switch port 44Port5 · npup5 · tag 0x8500 · 1G · switch port 55Port6 · npup6 · tag 0x8600 · 1G · switch port 66Port7 · npup7 · tag 0x8700 · 1G · switch port 77Port8 · npup8 · tag 0x8800 · 1G · switch port 88Port9 · npup9 · tag 0x0001 · 1G · CP0 eth2 - AQR412C9Port10 · npup10 · tag 0x0003 · 1G · CP1 eth1 - AQR412C10Port11 · npup11 · tag 0x0004 · 2.5G · CP1 eth2 - AQR412C · PoE11Port12 · npup12 · tag 0x0002 · 2.5G · CP1 eth0 - AQR412C · PoE12module bayXGS 136 · backOPNsenseXGS 3300Ports OKCOMUSBMGMTF2F1F1 · oxp0 · tag 0x0001 · 10G · QLM5 - 88X5113F1F2 · oxp1 · tag 0x0002 · 10G · QLM6 - 88X5113F2F4F3F3 · oxp10 · tag 0x8900 · 1G · switch port 9F3F4 · oxp11 · tag 0x8a00 · 1G · switch port 10F4Port2 · oxp3 · tag 0x8200 · 1G · switch port 2 · bypass2Port1 · oxp2 · tag 0x8100 · 1G · switch port 1 · bypass1Port4 · oxp5 · tag 0x8400 · 1G · switch port 44Port3 · oxp4 · tag 0x8300 · 1G · switch port 33Port6 · oxp7 · tag 0x8600 · 1G · switch port 66Port5 · oxp6 · tag 0x8500 · 1G · switch port 55Port8 · oxp9 · tag 0x8800 · 1G · switch port 88Port7 · oxp8 · tag 0x8700 · 1G · switch port 77module bay AXGS 3300 · front
The two appliances run here, drawn as they stand on the bench: an XGS 136 on an XGS 3300. Point at a port for its interface; a click opens it on its model's page.

Two computers in one box

Install OPNsense on a Sophos XGS and it boots to a working firewall with no network interfaces at all. The appliance looks like one computer and is two: an x86 host, and a coprocessor behind a PCIe endpoint that owns every front port.

The vendor ships drivers for its own operating system and for Linux only, so when support lapses the usual verdict on the hardware is e-waste. This project gives the ports back to FreeBSD, and then puts the coprocessor to work for the firewall.

How it works

What it does

Measured, not promised

Each number links to the page that holds it, with how it was taken and the module build it was taken on.

Two families answer now

On silicon that shares nothing. Two more, OCTEON TX2 and its 98XX, are described from the vendor's binaries and wait for hardware; TOPAZ and GR have no coprocessor to drive.

Every model

Ten models of the two families with a driver. Two are run here; the others are added, untested, until an appliance of each is here. Each has a page: its ports where they sit, its board, the vendor's figures.

modelfamilycoprocessorfront portsstate
XGS 87 87w ARMADA CN9130 5 4 RJ45, 1 SFP run by an owner
XGS 107 107w ARMADA CN9130 9 8 RJ45, 1 SFP run by an owner
XGS 116 116w ARMADA CN9131 9 8 RJ45, 1 SFP added, untested
XGS 126 126w ARMADA CN9131 14 12 RJ45, 2 SFP run by an owner
XGS 136 136w ARMADA CN9131 14 12 RJ45, 2 SFP run here
XGS 138 ARMADA CN9131 8 6 RJ45, 2 SFP+ added, untested
XGS 2100 OCTEON TX CN8360 10 8 RJ45, 2 SFP run by an owner
XGS 2300 OCTEON TX CN8360 10 8 RJ45, 2 SFP added, untested
XGS 3100 OCTEON TX CN8365 12 8 RJ45, 2 SFP, 2 SFP+ run by an owner
XGS 3300 OCTEON TX CN8365 12 8 RJ45, 2 SFP, 2 SFP+ run here

Every model, in detail Add your appliance and 21 models of the families without a driver

Appliances of these models will be bought to test on. Until then, each model marked untested is confirmed or corrected by its first owner's report.

Six families

It looks like OPNsense, because it is

The XGS section of the menu shows the front panel with each port's link, the coprocessor, the flows in hardware, the IPsec engine, the transceivers, updates and problem reports. Every page is photographed on an appliance, in English and in Arabic.

Every page, one by one

XGS: Overview on an XGS 3300: the front panel drawn with each port's link and cards for the coprocessor, hardware offloading, the IPsec engine, the front ports, the switch chip and the last restart

Project repositories

The drivers and the plugin, and the page that builds a whole image around them - each on GitHub, with its newest release, its stars and its forks.

os-xgs-npu

The FreeBSD drivers for both coprocessor families and the OPNsense plugin around them: the front ports, the flows and IPsec in hardware, the pages that show it.

xgs-image-builder

An OPNsense image for a Sophos XGS with the drivers and the plugins its page lists inside: ready to download for each main release, or built for you on GitHub Actions from this site's build page.

Plugins around it

Each in its own repository, each installable on its own.

os-fanctl

Fan control from the temperatures the kernel publishes, the fans handed back to the hardware on any fault.

os-frontpanel

The firewall's own information on the LCD in the front of the appliance, and its keys given something to do.

os-linkhealth

Watches every physical port and says which cable or transceiver is going bad, by the chassis' names.

os-netreport

A readable summary of the network by mail on a schedule, in Arabic or English.

os-theme-xgs

XGS Silicon, a light, dark and automatic theme for the web GUI.

opnsense-arabic

A complete Arabic translation of the OPNsense web interface.

opnsense-rtl

The page laid out right to left when the GUI is in Arabic or Persian.

os-watchdog

Arms the host's hardware watchdog, so a host that stops is reset by its own hardware, and reads from the chipset why it last reset; it stands aside where os-xgs-npu arms it.

os-kernelfollow

Rebuilds the out-of-tree kernel modules registered with it for the kernel the next boot takes.

os-blocklists

Address, DNS, country and JA4 block lists in one page; on a Sophos XGS a cut connection is taken out of the coprocessor too.

os-portguard

Blocks devices by their MAC address at the firewall, and shows the devices seen.

os-fallbackcrypto

Chooses which of the kernel's crypto drivers encrypts IPsec on the host: AES-NI, OpenSSL's, or both.

os-trafficpriority

Priority for chosen traffic - voice, games, the firewall's own management - marked with a DSCP by pf and, on an XGS 3300, given a queue of its own in the switch.

os-appcontrol

Names each connection's application with nDPI and acts on it: pf tables for rules and gateways, blocking, and Suricata rules.

os-useridentity

Who is behind an address: logons from the domain controllers, RADIUS accounting and the captive portal, kept as pf tables per group and per user.

os-quota

Time and volume quotas per host, user or group, counted from pf with what the coprocessor forwards, and a block at the limit.

os-modsecurity

A web application firewall in front of the sites published through the firewall: Apache with ModSecurity and the OWASP Core Rule Set.

os-configaudit

A checklist run against the firewall's configuration - rules, NAT, administration, passwords - with a score and a link to the page that fixes each finding.

os-whoisonline

One table of everyone connected: captive portal, OpenVPN, IPsec and WireGuard sessions side by side.

os-filetypes

A policy for file types - allowed, logged or blocked by type - written as Suricata rules for OPNsense's Intrusion Detection.

os-hotspotpolicy

One policy for each captive portal zone: where its logged-in clients may go, how fast each may download and upload, and whether Suricata inspects them.

os-pimd

A page for pimd, the PIM-SM multicast router, for networks that need multicast routing beyond an IGMP proxy.

os-sflow

The interfaces' counters sent to up to two collectors as sFlow version 5 counter samples, with what the coprocessor forwards counted in.

os-clientless

The members of one OPNsense group signed in to Apache Guacamole from a browser, with nothing to install, by the firewall's own authentication servers.

os-openwisp

The access points of an OpenWISP server run elsewhere - their health, their configuration's state and their Wi-Fi clients - shown in OPNsense.

Project

Story

How a firewall with no ports became one with every port: eight months of looking, the open sources read for what they say, two coprocessors that share nothing, and the last hop - told in eleven chapters, with the photographs.

Read it from the start

Write to the project

A question, an appliance that is not listed, a measurement of your own, or work you want to do on it - the contact page reaches the person who wrote this. Problems with an appliance go best through its own Problem Reports page, which sends what is needed and nothing private.

Contact Open an issue

The bench, the appliances and the site are paid for by one person. Sponsor the project

An independent project, not affiliated with Sophos or Deciso. It distributes no Sophos software or firmware. Rights holders: contact@npuforge.org.