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.
What it does
Every front port
All fourteen on the XGS 136 and all twelve on the XGS 3300, with its expansion module's, each an ordinary FreeBSD interface named as the chassis names it.
pf decides, the coprocessor forwards
A connection the firewall has passed goes into the coprocessor's flow table, IPv4 with its translation and IPv6 as it is, and comes back out the moment pf lets go of it.
IPsec in the engine
An association strongSwan installs through OPNsense lands on the coprocessor's crypto engine with nothing typed: AES-GCM, AES-CBC with an HMAC, NAT traversal.
The firewall's lists still cut
A block list gaining an address, or the Intrusion Detection logging a listed TLS fingerprint (JA4), cuts a connection that is already in hardware.
Part of OPNsense
One section of the menu, every page in Arabic and English, the front ports assigned at the first boot, and updates from its own page in seconds.
Kept honest
Every figure is on a page with how it was taken and a photograph of the run. A claim that turned out wrong stays on its page, struck through, beside what replaced it.
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.
In use
Counted as it happens and brought up to date by itself, every few minutes.
Updated
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.
XGS 3300
- 12 of 12 front ports, and the expansion module's 4×10G
- flow and IPsec offload
- the front panel's LCD and keys
XGS 136
- 14 of 14 front ports
- flow and IPsec offload
- the coprocessor's console and switch read from the host
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.
| model | family | coprocessor | front ports | state |
|---|---|---|---|---|
| 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.
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.
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.
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 startWrite 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 issueThe 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.