Turn hardware flow offload off; drop the Mono copyright line
The security audit of the vendor's fastpath found that offloaded flows ignore pf route-to/reply-to and gateway rules (VPN-as-gateway traffic can leave on WAN), that pf_notify marks every pf state sloppy while cmm runs, that bridged traffic is offloaded without pf, that hardware flows can outlive their pf state, and that the IPsec exception path panics. New images no longer enable cmm, and RELEASE.md gives the commands for a gateway that was installed from the vendor's image. The board modules still load; nothing is offloaded without cmm. rc.d/20-kernel-update is our rewrite: its Mono copyright line goes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
df4b223a15
commit
67ee1582c9
3 changed files with 31 additions and 2 deletions
30
RELEASE.md
30
RELEASE.md
|
|
@ -324,6 +324,25 @@ release/vm.sh pull-out 14.3 26.1 # -> /scratch/mono-opnsense/out/26.1
|
|||
e.g. `26.1.11_74`. That always upgrades the previous build, and also the
|
||||
vendor's `26.1.5_N` packages.
|
||||
|
||||
### Hardware flow offload: off
|
||||
|
||||
New images set `cmm_enable="NO"` (`rc.d/rc.conf.local`); the board modules
|
||||
still load, but without cmm nothing is offloaded and pf handles every packet.
|
||||
The vendor's offload is not safe yet (security audit, 2026-11-22):
|
||||
|
||||
- offloaded flows take the main routing table's route, so pf `route-to`,
|
||||
`reply-to` and gateway rules (a VPN as gateway, multi-WAN) are ignored and
|
||||
such traffic can leave on WAN outside the tunnel (`fastpath/cmm/cmm_conn.c`);
|
||||
- while cmm runs, pf_notify marks every pf state sloppy, which turns off TCP
|
||||
sequence checks (`fastpath/pf_notify/pf_notify.c`);
|
||||
- bridged MAC pairs are offloaded without pf (`fastpath/auto_bridge`), and
|
||||
hardware flows can outlive a pf state whose deletion event was dropped;
|
||||
- the IPsec exception path panics on most decrypted packet sizes
|
||||
(`fastpath/cdx/dpa_ipsec_freebsd.c`).
|
||||
|
||||
Offloaded traffic also skipped Suricata, the shaper, the captive portal and
|
||||
pflog. Re-enable cmm only once these are fixed.
|
||||
|
||||
## Stage, verify, publish
|
||||
|
||||
```sh
|
||||
|
|
@ -532,6 +551,17 @@ reboot
|
|||
the Wi-Fi card is fitted;
|
||||
- System > Firmware > Status > Audit > Health is clean.
|
||||
|
||||
**10. Turn off hardware flow offload** (see "Hardware flow offload: off").
|
||||
The vendor image's `/etc/rc.conf.local` enables cmm and no package manages
|
||||
that file:
|
||||
|
||||
```sh
|
||||
sh
|
||||
sysrc -f /etc/rc.conf.local cmm_enable=NO
|
||||
service cmm onestop
|
||||
pgrep -l cmm || echo cmm-stopped
|
||||
```
|
||||
|
||||
## Major upgrade (26.1 to 26.7)
|
||||
|
||||
1. **Kernel fork:** rebase `stable/26.7` of the src fork onto the 26.7.x tag
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
#
|
||||
# GW_ROOT prefixes every path (tests only).
|
||||
#
|
||||
# Copyright 2026 Mono Technologies Inc.
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
ROOT=${GW_ROOT:-}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
cmm_enable="YES"
|
||||
cmm_enable="NO"
|
||||
fand_enable="YES"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue