Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Suricata Host OS Policy GUI uses mac-os instead of macos

    Scheduled Pinned Locked Moved IDS/IPS
    2 Posts 1 Posters 178 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jsokorp
      last edited by

      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 Assignment

      the GUI offers a target policy named Mac-OS.

      The pfSense Suricata package stores this policy as:

      mac-os
      

      Current Suricata expects the host OS policy identifier:

      macos
      

      This 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-os
      

      to:

      macos
      

      After 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.php
      

      Steps to reproduce

      1. Create or use an IP alias containing macOS hosts.
      2. Go to Services → Suricata → Interfaces.
      3. Edit the LAN Suricata interface.
      4. Open Flow/Stream.
      5. Under Host OS Policy Assignment, add or edit a policy.
      6. Select Mac-OS.
      7. Save the configuration.
      8. Inspect the stored/generated Suricata configuration.

      Actual result

      The policy value is stored/generated as:

      mac-os
      

      Expected result

      The policy value should be:

      macos
      

      Environment

      pfSense CE: 2.9.0-RELEASE
      Suricata: 8.x
      Interface: LAN
      Mode: IDS
      

      Suggested fix

      Change the pfSense Suricata package GUI mapping from:

      'mac-os' => 'Mac-OS'
      

      to:

      'macos' => 'MacOS'
      

      or otherwise translate the GUI value to macos when generating the Suricata configuration.

      1 Reply Last reply
      Reply Quote 0
      • J
        jsokorp
        last edited by

        Attached is the patch I tested on pfSense CE 2.9.0. It changes the GUI value from mac-os to macos.

        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 using macos don’t need changing.

        suricata-macos-gui.patch

        1 Reply Last reply
        Reply Quote 0

        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 Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy