Suricata Host OS Policy GUI uses mac-os instead of macos
-
I am using pfSense CE 2.9.0-RELEASE with the Suricata 8.x package.
Under:
Services → Suricata → Interfaces → LAN → Flow/Stream → Host OS Policy Assignmentthe GUI offers a target policy named Mac-OS.
The pfSense Suricata package stores this policy as:
mac-osCurrent Suricata expects the host OS policy identifier:
macosThis causes the generated Suricata configuration to contain the wrong macOS policy identifier.
I verified this on my system by manually changing the stored Host OS Policy value from:
mac-osto:
macosAfter doing that, the generated Suricata configuration used the correct macOS host policy.
The pfSense Suricata package source also currently defines the GUI value as:
'mac-os' => 'Mac-OS'in:
security/pfSense-pkg-suricata/files/usr/local/www/suricata/suricata_os_policy_engine.phpSteps to reproduce
- Create or use an IP alias containing macOS hosts.
- Go to
Services → Suricata → Interfaces. - Edit the LAN Suricata interface.
- Open
Flow/Stream. - Under
Host OS Policy Assignment, add or edit a policy. - Select
Mac-OS. - Save the configuration.
- Inspect the stored/generated Suricata configuration.
Actual result
The policy value is stored/generated as:
mac-osExpected result
The policy value should be:
macosEnvironment
pfSense CE: 2.9.0-RELEASE Suricata: 8.x Interface: LAN Mode: IDSSuggested fix
Change the pfSense Suricata package GUI mapping from:
'mac-os' => 'Mac-OS'to:
'macos' => 'MacOS'or otherwise translate the GUI value to
macoswhen generating the Suricata configuration. -
Attached is the patch I tested on pfSense CE 2.9.0. It changes the GUI value from
mac-ostomacos.System Patches settings:
- Path Strip Count:
0 - Base Directory:
/ - Ignore Whitespace: unchecked
Run Debug before applying. I enabled Auto Apply after verifying it worked.
The patch doesn’t update existing configurations. On each affected interface’s Flow/Stream tab, edit any Host OS Policy entry whose target policy is still
mac-os, select Mac-OS again, and save the entry. Then save the Flow/Stream page to regenerate the YAML. Entries already usingmacosdon’t need changing. - Path Strip Count:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy