Skip to content

Installing, step by step

For anyone with a Sophos XGS 136 or XGS 3300 who wants OPNsense on it with every port working, and has never used FreeBSD, OPNsense or GitHub before: from nothing to the first sign-in, in order, with a picture for each step. About an hour, half of it waiting.

Note

Already running OPNsense, and comfortable on a FreeBSD shell? The driver can be installed by hand on a system you have: Installing the driver yourself. This page is the other way, the whole appliance from one USB stick.

What you need

The appliance An XGS 136 or an XGS 3300, the two the project runs on (what works on each).
A computer Windows in the pictures. The three programs below exist for macOS and Linux as well.
A USB stick 4 GB or more. Everything on it is erased.
A console cable RJ45 to USB: the appliance's console port is an RJ45 socket.
A network cable To reach the web interface at the end.

Everything used here is free: OPNsense, this project, GitHub's build, balenaEtcher and PuTTY.

Warning

Installing erases the appliance's internal disk, and with it the Sophos firmware and its settings. This guide does not go back the other way.

The quickest way: a ready image

Danger

Update OPNsense right after the first boot, before anything else. Every ready image starts from OPNsense 26.7's own image and carries its PHP, older than the fix for PHP2Shell (CVE-2026-109618, CVE-2026-109619, which can let code run without a login): System: Firmware: Status - Check for updates, then Update, and php -v should then read 8.5.12 or later. A test appliance too. Since 26.7.8 the fix is part of OPNsense's own update: it takes the appliance to 26.7.8 - base, kernel and packages, with a reboot - and the version reads 26.7.8 after it, or 26.7.8_1 with the hotfix that followed (the earlier out-of-band fix).

Since 2026-10-23 four images are published with each main release (since 2026-10-24; a small release updates an installed appliance from XGS: Updates), ready to download, so there is nothing to build. Open the image builder's page: Download a ready image is at the top.

The build page's Download a ready image: 115200 and a rack model chosen, the file xgs-image-based-on-opnsense-26.7-serial-115200-front-panel.img.xz, 688 MB, with its checksums and release notes; the speed and Download framed The build page's Download a ready image: 115200 and a rack model chosen, the file xgs-image-based-on-opnsense-26.7-serial-115200-front-panel.img.xz, 688 MB, with its checksums and release notes; the speed and Download framed

Your appliance Take
XGS 2100, 2300, 3100, 3300 - the rack models, an LCD and keys on the front front panel, at your appliance's speed (below)
XGS 87, 107, 116, 126, 136, 138 and their w twins - the desktop models, no front panel no front panel, at your appliance's speed (below)

The speed is your appliance's own. Take the speed its console already runs at, as its BIOS sets it, so that the BIOS's screens, the boot menu and OPNsense all read in one terminal at one setting. On the appliances we have, the vendor firmware's console runs at 38400, the speed the build page offers first. If the BIOS's console redirection is set to 115200, take 115200, OPNsense's own. Not sure? Before installing, open PuTTY as in 5. Connect the console at 38400 and switch the appliance on: if its screens read, it is 38400; if they do not, try 115200.

Each image carries both drivers and the kernel sources they are built from, and the appliance installs the one its own board names at its first boot. The XGS 136 and the XGS 3300 are the two this guide was written on; on the other models the image installs the same way and the driver is untested (what works on each).

The pictures below use 115200, OPNsense's own speed. At 38400 every step is the same, with that number in PuTTY. The download is one .img.xz file, about 690 MB, and no GitHub account is needed for it. Go straight to 4. Write it to the USB stick; sections 1 to 3 are the other way, an image built for you on GitHub.

1. Build page

npuforge.org/build builds an image for anyone who asks, since 2026-11-01: in the image builder's own repository, on GitHub, with nothing to copy or set up. It has two parts: Download a ready image, above, and Build your own, for what ready images do not carry - they come with each main release of the driver, and a build takes the newest release, small ones too, or an earlier one.

The page starts the build itself, with no GitHub account and without leaving the page. Each visitor has three builds a day, after Cloudflare's check that you are a person (what it keeps); the driver is the newest release or a published one; and an image is kept one day after it is built.

The build page's top: a ready image to download or one built for you, and Build your own framed The build page's top: a ready image to download or one built for you, and Build your own framed

2. Build the image

Choose Build your own. Its choices are already the right ones for an XGS:

Choice What to pick
OPNsense release 26.7
Console speed your appliance's, as its BIOS has it (which): 38400, the default and the vendor firmware's, or 115200, OPNsense's own, which the pictures here use. Note the number: PuTTY needs the same one.
Driver release latest, the newest release
Front panel Yes for a rack model, No for a desktop one

The build page's choices: OPNsense 26.7, console speed 115200, driver latest, front panel Yes; the speed framed The build page's choices: OPNsense 26.7, console speed 115200, driver latest, front panel Yes; the speed framed

Pass Cloudflare's check above the button and press Build the image. The page starts the build itself and stays where it is; beside the button it says how many builds you have left today.

The page follows the build to the end, with a bar that moves with the build's own steps. It takes about ten minutes. While it runs, Cancel the build stops it, if you change your mind; a cancelled build still counts as one of the three.

A build started from the page: Build the image waiting, 2 of 3 builds left today, step 7 of 10 inside a FreeBSD guest with its bar framed, and Cancel the build A build started from the page: Build the image waiting, 2 of 3 builds left today, step 7 of 10 inside a FreeBSD guest with its bar framed, and Cancel the build

3. Download the image

When the build is done, the page says until when the image is kept - one day - and offers it: press Download image. The file comes from GitHub's storage as a .zip, with no sign-in, and the page stays where it is.

A build done: Built, kept until the next day, and Download image framed A build done: Built, kept until the next day, and Download image framed

On Windows: right-click the .zip, then Extract All. Inside is one file, named as a ready image is - xgs-image-based-on-opnsense-26.7-serial-115200-front-panel.img.xz for the choices above. Leave it as it is. The next program reads the .xz itself.

4. Write it to the USB stick

Download balenaEtcher from etcher.balena.io and start it.

  1. Flash from file, then choose the .img.xz.

    balenaEtcher at its start, Flash from file framed

  2. It shows the image by name and by its unpacked size, 3.68 GB. Press Select target and choose your USB stick. Recognise it by its size, and never choose a disk you do not know.

    balenaEtcher with the image chosen, 3.68 GB, and Select target framed

  3. Press Flash!. Windows asks to let it change the stick: say yes. Wait for Flash Complete, then take the stick out.

Rufus (rufus.ie) is the other well-known writer on Windows. These pictures were taken with balenaEtcher.

5. Connect the console

The console is how the appliance talks before it has a network.

  1. Plug the cable's RJ45 end into the appliance's Console port, and its USB end into the computer.
  2. Find the port Windows gave it: Device Manager → Ports (COM & LPT), a line such as USB Serial Port (COM3). Some cables need their maker's driver before a port appears.
  3. Download PuTTY from its author's page (putty.exe, 64-bit) and start it.
  4. On the Session page: Serial, the port from step 2 as the Serial line, and 115200 as the Speed, the speed chosen in the build.

    PuTTY, Session: Serial line COM3 and Speed 115200 framed, Connection type Serial framed

  5. On Connection → Serial: 8 data bits, 1 stop bit, parity None, flow control None. Then Open.

    PuTTY, Connection, Serial: COM3, 115200, 8 data bits, 1 stop bit, parity None, flow control None, framed

A black window opens. It stays black until the appliance says something.

6. Boot from the stick

Switch the appliance off, put the stick in one of its USB ports, and switch it on. It boots from the stick by itself.

The boot menu appears in PuTTY, counts down, and goes on alone:

The boot menu, counting down: Autoboot in 1 seconds, framed

A few minutes later the system running from the stick asks you to sign in. This first boot also puts the driver and the plugins in place.

Note

No front ports yet: do not assign interfaces from the stick. The driver is built at the end of this boot and loaded from the next one on, so while the system runs from the stick the coprocessor's ports do not exist, and the console menu has none to offer. Install first (step 7), then boot from the disk: the ports are there from that boot on, and it assigns them (step 8).

The system running from the stick: Welcome, sign in as root to continue in live mode, or as installer to start the installation; framed

Tip

PuTTY stays black, or shows unreadable characters? First check the COM port. Then check that PuTTY's speed is the image's, the number in its name. If the BIOS's screens read at one speed and the system at the other, the image's speed is not your appliance's: take the image again at the BIOS's speed.

7. Install to the internal disk

Sign in as installer, password opnsense. Then, with the arrow keys, Space and Enter:

  1. Continue with default keymap.

    Keymap Selection: Continue with default keymap framed

  2. Install (ZFS).

    The installer's tasks: Install (ZFS) framed

  3. stripe. An XGS has one internal disk.

    ZFS Configuration, the virtual device type: stripe framed

  4. Space to tick ada0, then Enter. The internal disk is ada0, and the USB stick is not offered.

    ZFS Configuration, the disks: ada0 ticked, framed

  5. Last Chance! Left arrow to YES, then Enter. This is where the internal disk is erased.

    Last Chance: YES framed

  6. Wait for the copy: a few minutes.

    Installation Progress: cloning, verifying, preparing; overall 23 per cent

  7. Final Configuration: Root Password sets the administrator's password now. Recommended; otherwise it stays opnsense until step 9. Then Complete Install.

    Final Configuration: Root Password and Complete Install, Complete Install framed

  8. Installation Complete: take the USB stick out first, then Reboot now. Left in, the appliance boots from the stick again.

    Installation Complete: Reboot now framed

The console pictures in steps 6 to 8 were taken in a virtual machine running the same image: its disk is a QEMU HARDDISK, and its menus are the ones an appliance shows.

On an XGS 87: installing onto the eMMC

The XGS 87's internal disk is a 16 GB eMMC, mmcsd0. The XGS image brings the plugin's own driver for it, fchemmc, built for the image's kernel, so the system running from the stick sees the eMMC and the installer offers it. Everything else in step 7 is the same: in step 4, tick mmcsd0 alone.

  • It replaces the vendor's system. The vendor's system is on that eMMC; the installer erases it. The vendor's own image puts it back whenever you want it again.
  • Kernel updates are protected. With the system on the eMMC, a kernel without a matching fchemmc.ko has no disk to start from, so the plugin builds fchemmc for every new kernel before that kernel is used: until the build is done, the next boot takes an earlier kernel that has its own build. An upgrade to a new release whose kernel fchemmc could not be built for is stopped before anything is applied, and says so; run it again later. If the power goes off in the minutes just after an update installed a new kernel and the appliance does not start, press k at the boot menu until it shows kernel.old or kernel.emmc-good, then boot: those have their fchemmc.
  • Take out the old USB system disk once the system is on the eMMC. Two installed systems carry the same disk names, and a boot can take its system from either.
  • Removing the plugin leaves fchemmc in place, because the system needs it to start. After a kernel update the appliance then stays on the last kernel that has it, until the plugin is back.
  • Going back to a USB disk. Put the vendor's system back on the eMMC with the vendor's own image first, so that only one installed system is left, and then install onto the USB disk as in step 7.

8. The first boot from the disk

This is the boot that loads the driver, so the front ports appear now, by the names the driver gives them: npup1, npup2 and on - PortN is npupN - on the XGS 136 and its family, oxp0 and on on the XGS 3300 (every model's ports).

On an appliance, the first boot from the disk counts thirty seconds down on the console:

XGS: assigning the front ports by the names on the chassis

Let it run out. The ports are then assigned by the names printed on the chassis:

Port On an XGS 3300 On an XGS 136
WAN, from your internet connection, by DHCP Port2 Port1
LAN, one bridge on 192.168.1.1, handing out addresses every other front port, a module's included every other front port
MGMT, the management port, on 192.168.100.1 the MGMT port -

Every model takes its family's WAN - Port2 on the XGS 3300's family, Port1 on the XGS 136's - unless its chassis prints WAN beside another socket: on an XGS 87 or 87w the WAN is Port2, and Port1, Port3, Port4 and F1 are the LAN (every model's).

Danger

Keep MGMT apart from the coprocessor's ports, always. MGMT is the host's own port, wired to the host's CPU; every front port and cage belongs to the coprocessor and reaches the host only through it. Never give MGMT an address in a subnet the coprocessor's ports use - LAN's included - and never put it in a bridge with them: the host then has two ways into one network, keeps one route for it, and the interface set up last answers nothing, cable in or not (measured). Leave MGMT on a subnet of its own, its default 192.168.100.1/24, for reaching the appliance while the coprocessor restarts. XGS: Ports and verify.sh warn when it is mixed. To use several ports in one network, make them one bridge, with the address on the bridge and none on its members - as LAN already is, and as OPNsense's LAN bridge how-to does it - so a cable in any of them works. MGMT stays out of it, on its own network.

Pressing a key during the countdown assigns them by hand instead, from the console menu.

Then the sign-in appears on the console. Nothing more has to be done there:

The first boot from the disk: the plugins' start scripts, LAN 192.168.1.1, and the sign-in, framed

The console menu, after signing in as root, is where to come back to if the web interface cannot be reached: 1 assigns the ports by hand, 2 sets an address.

The console menu: 1 Assign interfaces and 2 Set interface IP address framed

9. Sign in to the web interface

  1. Connect the computer to a LAN port, any front port but WAN, or to MGMT on an XGS 3300. It gets an address by itself.
  2. Open https://192.168.1.1 in a browser, or https://192.168.100.1 through MGMT.
  3. The browser warns that the connection is not private. That warning is expected: the appliance made its own certificate. Choose Advanced, then continue to the address.
  4. Sign in as root, with opnsense or the password set in step 7.

    The appliance's sign-in page, the username and password framed

  5. The setup wizard opens: Next through it, for the name, the DNS servers, WAN and LAN and the password. Or click the logo, top left, to leave it. The XGS menu holds this project's pages.

    The setup wizard on an XGS 3300: Next framed, and the XGS menu framed

  6. If the password is still opnsense: Lobby → Password, the old one, the new one twice, Save.

    Lobby, Password: the three password fields and Save framed

10. Check it, and keep it current

Update OPNsense itself first - System: Firmware: Status, Check for updates, then Update - and check that php -v reads 8.5.12 or later: an image, and an appliance installed before 2026-10-21, carry a PHP that PHP2Shell reaches. Then:

XGS → Overview shows every front port and the coprocessor behind it:

XGS, Overview on an appliance

XGS → Updates offers each new release of the driver; the plugins are updated from its Plugins tab, and each update of the project brings them to their latest release too. Updating shows an update from start to end.

XGS, Updates on an appliance

If something goes wrong

What you see What to do
PuTTY stays black at power-on Check the COM port, then PuTTY's speed against the image's (the tip in step 6).
The appliance starts its Sophos firmware The stick was not seen at power-on: write it again (step 4), put it in before switching on.
The installer comes back after Reboot now The stick was still in. Switch off, take it out, switch on.
No page at https://192.168.1.1 The cable may be in the WAN port: use another front port. The computer should have an address beginning 192.168.1. If not, use the console menu (step 8).
The ports' lights are on, but nothing gets through On the console, option 8 (the shell), run /usr/local/opnsense/scripts/npuctl/verify.sh and paste everything it prints into an issue. It names what failed and why, with the model and the board's revision, and holds no addresses or serial numbers - nothing more is needed to start. A coprocessor whose fast path stopped answering its heartbeat, or that the driver has taken as gone, is one of the failures it names, with what to do.
An interface answers nothing on its address, or LAN comes back only after a cable goes into another port Two interfaces in one subnet - LAN's 192.168.1.1/24 inside a home network an MGMT or WAN port is on, say - share one route, and the one applied last loses it, cable in or not (measured). XGS: Ports shows a warning naming them, and verify.sh has a section for it: give each interface a subnet of its own, or take the address off the one not in use - and for several ports in one network, make them one bridge with the address on the bridge only, as LAN is.
Anything else A problem report or an issue, or write to the project.

Discussion

The discussion of this page is held in the project's GitHub Discussions. Showing it here loads giscus from giscus.app and GitHub, and writing in it needs a GitHub account - what that means.