Repository navigation
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
-
Changed: OpenSearch binds
127.0.0.1andinstall.shno longer opens 9200.setup.shpoints Logstash and the Grafana datasource atlocalhost.setup.sh,status.sh,preflight.shanddiagnose-and-repair.shrun from a workstation now need an SSH tunnel (ssh -N -L 9200:127.0.0.1:9200 user@siem-host, thenOPENSEARCH_URL=http://127.0.0.1:9200forsetup.sh) or must run on the SIEM host. -
Changed: ufw rules carry a source. UDP 5140 (and 8086 in Telegraf mode) only from
LOGSTASH_ALLOWED_SOURCES(defaults to the pfSense IP), Grafana only fromGRAFANA_ALLOWED_SOURCES(required). -
Changed: no more
adminpassword.install.shgenerates one if you leave the prompt empty and stops if it cannot set it;setup.shrefusesGRAFANA_ADMIN_PASS=adminor empty. -
New:
INSECURE_OPEN_ACCESS=trueinconfig.envrestores the old wide-open install. Do not use it. -
Upgrading: existing installs keep their
opensearch.ymland oldufw allowrules. Re-runninginstall.shwarns; fix by hand (seedocs/reference/CONFIGURATION.md, Security). -
New:
scripts/lib-install-safety.shandtests/python/test_install_safety.py.
-
Changed: the Eve JSON is no longer parsed into the event root. It goes to
[@metadata][eve], is validated, and only allow-listed Suricata keys are copied to the root, so a UDP sender cannot set@timestamp,tags,hostor other pipeline fields. Dashboards are unchanged (same flat field names). -
New:
eve-quarantine-*index. Events that fail validation (bad JSON, wrong types, out-of-range ports, severity or time, oversized or too-deep values) are written there witheve_quarantine_reason, not tosuricata-*. Add retention withscripts/configure-retention-policy.sh <days> 'eve-quarantine-*'. -
Not fixed: sender authentication. A host that can reach UDP 5140 can still send well-formed fake events. Run the forwarder path over a dedicated VLAN or an IPsec/WireGuard tunnel (see
docs/reference/CONFIGURATION.md, Sender integrity). -
Upgrading: redeploy the pipeline (
setup.shstep 3, or copyconfig/logstash-suricata.confand restart Logstash) and runlogstash --config.test_and_exit. Events with a timestamp older than 7 days (a long forwarder backlog) are quarantined. -
New:
tests/python/test_logstash_eve_filter.py(needsruby; does not need Logstash).
-
New in Upgrading pfSense: a real 2.8.1 to 2.9.0 run on a tuned box: selecting the update branch, the dry run, what survived (limiters, flow control, Suricata instances, forwarder), and the fixes for what did not (DNSBL data store reset, Telegraf
ssl_ca, removedlsof, CrowdSec reinstall with checksum), plus Suricata 8 numbers (about 840 Mbit/s inline, 0 drops) and a warning about misleading laptop Wi-Fi tests.
-
Fixed: the forwarder could stay dead for months. After a pfSense upgrade the Python path baked into the rc.d unit can vanish, and the watchdog lived in root's crontab, which does not survive. The rc.d unit now falls back to the newest installed
python3.Nand warns ifmaxminddbis not importable. -
Changed: watchdog is scheduled through the pfSense Cron package (
scripts/pfsense-add-watchdog-cron.php, entry kept inconfig.xml), not root's crontab.status.shchecks/etc/crontabaccordingly. -
Fixed: orphaned supervisors.
stopandstatusnow find the forwarder by process, not only by pidfile, so a lost pidfile can no longer leave adaemonsupervisor respawning an unmanaged forwarder thatstatusreports as stopped. -
New:
./setup.sh --forwarder-onlyredeploys just the forwarder, rc.d unit and watchdog, and verifies delivery from the pfSense side. It needs no access to OpenSearch, Logstash or Grafana from the workstation. Use it after a pfSense upgrade.
-
New:
scripts/check-siem-freshness.sh— exits non-zero when the newest Suricata event in OpenSearch is older than a threshold (default 15 min;--via-pfsensequeries from the firewall when the workstation cannot reach OpenSearch). A dead forwarder, Logstash or OpenSearch went unnoticed for 2.5 months; this makes it a cron-able alarm. Exit codes: 0 fresh, 1 stale, 2 cannot query.
- New: October 2026 Tuning Results — one table of before/after measurements from a real 1 Gbit/s cable migration (shaping, latency under load, Suricata CPU, rule volume, DNSBL, forwarder, feed health), plus what was applied but not isolated and what was not measured.
-
New in Suricata Optimization Guide: measured inline-IPS capacity (UDP sweep to 950 Mbit/s), what cut CPU (parent BPF filter,
balancedpolicy, removing duplicated IP-reputation rules), the TLS/stream bypass experiment (about a third less CPU for many short HTTPS connections, none for bulk downloads, reverted), the pfSense package'sencrypt-handlingversus Suricata'sencryption-handlingkey mismatch, and scripting gotchas ($rebuild_rules, pass-throughs replace whole sections, stats need two flags). - New in pfBlockerNG Optimization: "Are the feeds themselves alive?" — placeholder-only tables, feeds that parse to 1 to 3 entries, repeated download failures, read-only commands to audit your own box, how to force a re-download after a URL change, and the measured Suricata/pfBlockerNG overlap.
-
Updated in pfBlockerNG Feed Reference: abuse.ch SSLBL marked retired (last update 2025-01-02), ISC Shadowserver/Shodan URLs corrected to the
?textform. - New in Upgrading pfSense: a tuned-box checklist of what to capture before and compare after 2.9.0 (limiters, flow control, DNSBL VIP, feeds, Suricata instances and drops, forwarder, watchdog, Kea, gateways).
- New: Shaping Optimization Notes — measured lessons from moving to a 1 Gbit/s down, 500 Mbit/s up cable line: the upload limiter capping download, 50-slot child queues, the CoDel slot-limit trap, inverted per-host masks, failover-link shaping, dead ALTQ/wizard rules, resolver tuning, and the real-time/RTMP/default/bulk class design.
- Corrected: Traffic Shaping Guide — per-host mask direction was inverted (upload pipes key on source, download pipes on destination); added a corrections banner and the note that LAN-rule limiters do not see inbound port-forward traffic.
-
New in pfBlockerNG Optimization: how to measure the overlap between Suricata IP-reputation rules and pfBlockerNG lists, a three-command check that DNSBL is actually enforcing, and a troubleshooting entry for DNSBL silently stopping after a package upgrade (v3.2.14 stores the VIP as an ID in
pfb_dnsvip4; the migration dropped it). - New in Suricata Optimization Guide: how a legacy-mode instance on a VLAN trunk's parent interface duplicates inspection of every VLAN (measured +64% of a core versus +23% for the VLAN's own instance), and a BPF capture filter via the pass-through box that removed about 45 percent of total Suricata CPU with no inspection lost.
-
Corrected: Upgrading pfSense — pfSense CE has no Boot Environments page in the GUI (Plus only); use
bectl create pre-2.9.0from the shell. Added Part 3: what the official release notes confirm for 2.9.0, what is only reported, and what to re-test if you run limiters.
The docs tree was audited end to end against the code and reorganised into two tracks:
a pfSense knowledge base (docs/pfsense/, usable without the SIEM stack) and the
SIEM stack docs (install / operations / troubleshooting / reference). Highlights:
-
New: Upgrading pfSense — general checklist plus 2.8.1 → 2.9.0 specifics (FreeBSD 16-CURRENT, PHP 8.5, sshd algorithm removals, TLS certificate enforcement, the Telegraf package
ssl_ca/fielddropbreakage and workaround,pkg bootstrap -f), a table of every file this stack places on pfSense and whether it survives, and the post-upgradepreflight.sh → setup.sh → status.shprocedure -
New: Telegraf on pfSense — from-scratch guide that replaces
TELEGRAF_RESTART_PROCEDURE.md,PF_INFORMATION_PANEL_ISSUE.mdand the Telegraf half ofSETUP_FILTERLOG_MONITORING_CRON.md; resolves the contradictory "should Telegraf run as root" advice (yes, by design) -
New: Field Reference — the authoritative flat schema for
suricata-*andpfblockerng-*; ~120 stalesuricata.eve.*references were corrected across the docs -
New: dashboards/README.md — inventory of all 11 dashboard files, their UIDs, datasources and import method (notes that
suricata_ids_ips_active.jsonshares a UID withSuricata_IDS_IPS.json) - README cut from ~1000 to ~270 lines; duplicated directory tree, troubleshooting and documentation lists removed; status table now says Wazuh dashboards ship and Graylog is shelved (they were still marked "planned")
-
Merged/removed duplicates:
FORWARDER_MONITORING_QUICK_REF.md→SURICATA_FORWARDER_MONITORING.md(rewritten around the rc.d service);SETUP_FILTERLOG_MONITORING_CRON.md→PFSENSE_FILTERLOG_ROTATION_FIX.md;docs/reference/SCRIPTS_REFERENCE.md→scripts/README.md(now covers all 20 scripts and marks legacy ones);config/sid/APPLYING_CHANGES.md→config/sid/README.md;TELEGRAF_INTERFACE_FIXES.md→ a section ofINSTALL_DASHBOARD.md;config/pfblockerng_optimization.mdmoved todocs/pfsense/PFBLOCKERNG_FEED_REFERENCE.md -
Corrected: repo URL (
pfsense_siem_stack→pfsense-siem-stack),CONTRIBUTING.md(PRs targetmain, CI documented,/bin/shfor pfSense scripts), OpenSearch install paths (/opt/opensearch), the false "OpenSearch bound to localhost" security claim, the management console's non-existent "Telegram alerts" feature, ILM → ISM, retention defaults, watchdog interval, SID counts (218 disabled / 2 suppressed), stream memcap and hardware examples that contradicted each other, personal IPs/hostnames/interface names replaced with placeholders, all "Last Updated: 2025" stamps - Architecture diagram regenerated (no longer shows nested
suricata.eve.*or a Logstash → InfluxDB path)
-
Releases are now tagged.
scripts/release.sh X.Y.Zrolls the changelog, bumpsVERSION, tagsvX.Y.Z; pushing the tag publishes a GitHub Release with a source tarball andSHA256SUMS(.github/workflows/release.yml). This overhaul ships as 2.0.0 because the forwarder service was renamed. -
install.shis now the manual/bare-metal path, not the flagship. The recommended server side is siem-docker-stack or any existing OpenSearch + Grafana;setup.shonly needs their addresses. README, Quick Start and the docs index present it that way. -
BREAKING: forwarder service renamed
suricata_forwarder→suricata_forwarder.sh(service suricata_forwarder.sh …).setup.shmigrates a deployed box automatically; update any of your own scripts or cron jobs that referenced the old name.
-
setup.sh: rc.d service was never started at boot. pfSense only runs
/usr/local/etc/rc.d/*.shat boot (rc.start_packages); the unit was installed assuricata_forwarderwithout the suffix, so boot persistence silently relied on the cron watchdog. Now installssuricata_forwarder.sh, removes the old file, and enables itself by default instead of depending on/etc/rc.conf(which pfSense does not manage). Service commands are nowservice suricata_forwarder.sh start|stop|restart|status. -
setup.sh: rc.d hardcoded
python3.11ascommand_interpretereven though the interpreter was detected; now uses the detected path and refuses to start with a clear message if it disappears (e.g. after a pfSense upgrade). Detection prefers the version-neutral/usr/local/bin/python3and probes 3.13/3.12/3.11. -
setup.sh:
service … stopdid not stop the forwarder —daemon -rrespawned the child. Now tracks supervisor and child PID files and stops both. -
setup.sh: watchdog restarted with
nohupbypassing the service; now restarts through the rc.d script. The shippedscripts/suricata-forwarder-watchdog.shis now identical to the generated one and no longer useskillall python3.11. -
scripts/check-telegram-alerts.shreadsPFSENSE_HOST/PFSENSE_USERfromconfig.envinstead ofssh root@192.168.1.1. -
pfsense-siemhealth check no longer requires exactlypython3.11.
-
GitHub wiki, generated from the docs.
scripts/build-wiki.pyturns every Markdown file in the repository into a wiki page (links rewritten, images copied, source file named on each page) and.github/workflows/wiki.ymlpublishes the result to the project wiki on every push tomain. Hand-written landing pages inwiki/: Home, sidebar, footer, New to pfSense? Start Here (the pieces, a reading order, the things that bite newcomers), a Glossary and an FAQ. CI runs the build so a doc without a page mapping or with a broken link fails the pull request. -
Wazuh Security Overview dashboard (
dashboards/wazuh/wazuh_security_overview.json) — 20 panels: alert stats, MITRE ATT&CK, compliance (PCI DSS, NIST, HIPAA), auth success/failure tracking, hourly alert trend by agent, recent high-level alerts -
Wazuh Vulnerability Detection dashboard (
dashboards/wazuh/wazuh_vulnerability_detection.json) — 11 panels: CVE tracking, severity distribution, vulnerable packages, severity by agent cross-reference -
Wazuh File Integrity Monitoring dashboard (
dashboards/wazuh/wazuh_file_integrity_monitoring.json) — 11 panels: file change tracking (added/modified/deleted), per-agent breakdown, multi-terms detail view -
Prometheus Stats dashboard (
dashboards/prometheus_stats.json) — 17 panels: TSDB internals, scrape target health, rule evaluation, WAL, memory — rebuilt for Prometheus 2.x metrics -
Docker Container Monitoring dashboard (
dashboards/docker_container_monitoring.json) — 15 panels: container CPU, memory, network I/O, filesystem via cAdvisor + Prometheus -
Suricata IDS/IPS Active dashboard (
dashboards/suricata_ids_ips_active.json) — 14 panels: current production Suricata dashboard export -
Datasource reference (
dashboards/datasources_reference.json) — All 8 Grafana datasource configurations with UIDs for reproducibility -
Wazuh dashboard deployment script (
scripts/deploy-wazuh-dashboards.py) — Standalone Python script that configures the OpenSearch-Wazuh datasource, creates folders, deploys all 3 Wazuh dashboards, and verifies data flow via API queries -
Wazuh dashboard README (
dashboards/wazuh/README.md) — Panel inventory, datasource configuration, import instructions, field reference - New User Checklist: Complete step-by-step installation and validation checklist
- Suricata Optimization Guide: Comprehensive guide for rule selection, IDS vs IPS configuration, performance tuning, and log management
- Documentation Index: Organized guide to all documentation with quick search functionality
- Forwarder Monitoring Guide: Three monitoring strategies with hybrid approach (crash recovery + activity monitoring)
-
Forwarder Monitoring Quick Reference (since merged into
docs/operations/SURICATA_FORWARDER_MONITORING.md): One-liner commands for common monitoring tasks - MAC Vendor Lookup Setup: Custom Telegraf plugin for MAC vendor identification via ARP table
-
Automated forwarder monitoring setup script (
scripts/setup_forwarder_monitoring.sh) - Interactive monitoring installer with 6 preset configurations
- README.md: Added links to new optimization guide and user checklist
- Forwarder monitoring: Hybrid approach combining crash recovery (every 5 min) with activity monitoring (every 15 min during business hours)
- Status script: Now checks for watchdog/monitoring cron installation
-
setup.sh: Missing pfBlockerNG index template application —
setup.shStep 2 only applied the Suricata index template, not the pfBlockerNG template. Without the pfBlockerNG template,tag.*fields (e.g.,tag.src_ip,tag.tld,tag.feed_name) are mapped astextinstead ofkeyword, causing Grafana aggregation errors: "Text fields are not optimised for operations that require per-document field data like aggregations and sorting". Now applies both templates during setup. -
setup.sh: auto-create index missing pfblockerng-* — The
action.auto_create_indexcluster setting didn't includepfblockerng-*, potentially preventing Telegraf from creating daily pfBlockerNG indices. Now includespfblockerng-*in the auto-create whitelist. -
Documented Telegraf restart procedure: Proper method using
/usr/local/etc/rc.d/telegraf.shon pfSense - Forwarder restart after Suricata restart: Documented need to restart forwarder when Suricata creates new log files
- Permission issues: Clarified that Telegraf runs as root by design on pfSense
- Added Suricata ruleset recommendations (44 ET categories + 46 Snort rules)
- Documented inline mode vs legacy mode trade-offs
- Added IDS vs IPS configuration guidance
- Created comprehensive log retention strategies
- Documented QUIC protocol handling
- Added performance benchmarks from real deployment
-
One-command setup:
./setup.shautomates entire configuration -
Comprehensive status check:
./scripts/status.shvalidates all components -
Automated SIEM installer:
./install.shinstalls OpenSearch, Logstash, Grafana - Multi-interface support: Python forwarder automatically detects all Suricata instances
- GeoIP enrichment: City-level geolocation for attack sources
- Interactive world map: Geohash clustering of attack sources
- WAN-side dashboard: Focus on external threats and inbound attacks
- Migrated from manual configuration to automated setup scripts
- Moved from shell forwarder to Python with better error handling
- Updated to OpenSearch 2.x (from Elasticsearch)
- Updated to Grafana 12.x
- Simplified installation to 4 steps from 12+
- Midnight UTC data stoppage: Automatic index creation configured
- Multiple forwarder instances: Setup script ensures single clean instance
- Missing geo_point mapping: Index template properly configures geolocation
- Incomplete documentation: Comprehensive guides for all features
- OpenSearch compatibility (alternative to Elasticsearch)
- Logstash 8.x support
- Custom field mapping for Suricata events
- Retention policy configuration script
- Updated Grafana dashboard for OpenSearch data source
- Improved panel queries for better performance
- Enhanced alert table with more details
- Field name conflicts between Logstash and OpenSearch
- GeoIP mapping issues
- Performance problems with large datasets
- Initial release
- Suricata IDS/IPS dashboard for Grafana
- Basic log forwarding from pfSense to Elasticsearch
- GeoIP visualization
- Alert statistics and trending
- Top signatures panel
- HTTP traffic analysis
- Elasticsearch 7.x
- Logstash 7.x
- Grafana 9.x
- Shell-based log forwarder
| Version | Date | Key Features |
|---|---|---|
| 1.2.0 | 2024-11-24 | Automated setup, multi-interface, Python forwarder, OpenSearch 2.x |
| 1.1.0 | 2024-08 | OpenSearch support, Logstash 8.x, improved mapping |
| 1.0.0 | 2024-06 | Initial release with basic Suricata dashboard |
Breaking change: the pfSense rc.d service is now /usr/local/etc/rc.d/suricata_forwarder.sh
(service suricata_forwarder.sh start|stop|restart|status). The old extension-less unit was
never started by pfSense at boot.
Migration: git pull (or unpack the 2.0.0 tarball), then ./setup.sh. It redeploys the
forwarder with the detected Python interpreter, installs the new rc.d script, removes the old
one, reinstalls the watchdog and re-applies index templates. Nothing changes on the SIEM
server side unless you also upgraded OpenSearch/Logstash/Grafana. Docs moved: see
docs/DOCUMENTATION_INDEX.md; superseded pages are listed in the
2.0.0 changelog entry above.
Breaking Changes:
- Forwarder moved from shell script to Python (automatic migration)
- Configuration now uses
config.envinstead of hardcoded values
Migration Steps:
- Create
config.envfromconfig.env.example - Run
./setup.shto deploy new forwarder - Old forwarder will be automatically replaced
- Verify with
./scripts/status.sh
Benefits:
- Automatic multi-interface detection
- Better error handling
- Monitoring and auto-restart capabilities
- Simplified configuration management
Major Changes:
- Elasticsearch → OpenSearch
- Grafana 9.x → 12.x
- Manual setup → Automated scripts
Migration Steps:
- Backup existing Grafana dashboards
- Install new SIEM stack:
sudo ./install.sh - Create
config.envwith your settings - Run
./setup.shfor automated configuration - Re-import dashboard from
dashboards/directory - Verify all panels working with
./scripts/status.sh
Data Migration:
- OpenSearch can coexist with Elasticsearch
- Historical data can remain in Elasticsearch
- New data flows to OpenSearch indices
- Update Grafana data source to point to OpenSearch
Future plans live in ROADMAP.md — the version-numbered roadmap that used to live here was merged into it (2026-08-29) so the project has a single plan.
We welcome contributions! See key areas:
Documentation:
- Improve existing guides
- Add troubleshooting scenarios
- Translate to other languages
- Create video tutorials
Features:
- New dashboard panels
- Additional monitoring scripts
- Integration with other tools
- Performance optimizations
Testing:
- Test on different pfSense versions
- Validate with various hardware
- Report compatibility issues
- Provide feedback on usability
Community:
- Answer questions in Discussions
- Share your configurations
- Write blog posts
- Create case studies
- ChiefGyk3D: Project maintainer and primary developer
- Community Contributors: Feature requests, bug reports, and testing
- Early Adopters: Feedback and real-world validation
- Suricata: OISF (Open Information Security Foundation)
- pfSense: Netgate and community
- OpenSearch: Amazon and OpenSearch Project
- Grafana: Grafana Labs
- Python: Python Software Foundation
- Original pfSense Telegraf dashboards
- Unifi Poller project (data collection patterns)
- Security Onion (SIEM architecture ideas)
- Various community contributions on pfSense forums
This project is licensed under the Mozilla Public License 2.0 - see LICENSE file.
- Documentation: docs/DOCUMENTATION_INDEX.md
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with ❤️ for the pfSense community
Source: CHANGELOG.md. This wiki is generated from the repository on every push to main; edit the source file and open a pull request rather than editing the wiki page.
This wiki is generated from the Markdown files in pfsense-siem-stack on every push to main. Edits made here are overwritten; edit the source file named at the bottom of each page and open a pull request. Placeholders used throughout: admin@<PFSENSE_IP> is your pfSense SSH login, <SIEM_IP> your SIEM server, interface names like igc0 are examples. Licensed MPL 2.0.
Getting started
Suricata
pfBlockerNG
Telegraf
pfSense platform
- Upgrading pfSense ⭐
- Filterlog Stops After Rotation
- Traffic Shaping Guide
- Shaping Optimization Notes
- October 2026 Tuning Results
- CrowdSec (exploratory)
SIEM: deploy
- Quick Start
- New User Checklist
- SIEM Server Installation
- Forwarder Installation
- GeoIP Setup
- Dashboard Installation
SIEM: operate
- Management Console
- Forwarder Operations and Watchdog
- Multi-Interface and Retention
- Scripts Reference
SIEM: fix