Skip to content

Traffic Priority

os-trafficpriority · Network

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.

In the menu

  • With os-xgs-npu installed: XGS: Traffic Priority
  • Without os-xgs-npu: Firewall: Traffic Priority

A class names the connections to mark: the interfaces they come in on, the protocol, the source and destination with their ports, the DSCP they arrive with - or the groups and users of os-useridentity and the applications and categories of os-appcontrol. pf marks them with the class's DSCP, EF by default, through match rules the plugin registers at every filter reload, never among the owner's own rules.

On an XGS 3300 with os-xgs-npu, the first two DSCPs get a queue of their own in the switch, strict or weighted with a guaranteed minimum, and Firewall: Shaper can be followed into the switch where the switch can do what a rule does. A connection the coprocessor forwards keeps pf's mark; a marked IPv6 connection stays with the host, since the fast path writes no IPv6 traffic class. Off by default.

Features

  • Classes

    Each with what it matches and the DSCP to set, one of the 21 code points Firewall: Shaper names; IPv4 unless told otherwise.

  • Groups, users and applications

    A class by the pf tables os-useridentity and os-appcontrol fill, read and never written.

  • Switch queues

    On an XGS 3300, queue 7 or 6 for a class, strict or with a minimum share of a port, so a bulk class cannot starve the rest.

  • Firewall: Shaper followed

    Read and never written: each rule with what the switch takes of it and what stays with the host, and why.

  • Applied

    For each class, what pf holds of it, the connections it counted and its switch queue, with the connections marked now.

Install and update

Since os-xgs-npu 0.2.0-alpha.1, XGS: Updates lists it on its Plugins tab, where it is installed and updated from its signed releases, and an update of the project installs it on an appliance that never had it; nothing is updated on its own. By hand, as root, on an XGS appliance or on any other OPNsense: from a checkout of the repository with sh install/install.sh, which puts the page under XGS with os-xgs-npu and under Firewall without it, and keeps the settings when run again; a copy installed this way is updated by its own self-update.py, and sh install/uninstall.sh takes it away. It is not in the OPNsense plugin repository.

Limits, and what is not tested yet

  • The page in a browser: the plugin ran on the second XGS 3300, the XGS 136 and a plain OPNsense, driven through the calls the page makes.
  • A class's mark in hardware on the XGS 136, whose switch is only read; and installing from the release's package.
  • The first call to a server new to an application's table stays unmarked for its whole life.
  • Connections that a port forward set to Pass lets through keep the DSCP they arrive with.
  • More, each with its reason: the README's Not yet, and why.

Repository

First release: 2026-11-18

os-trafficpriority Releases

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.