Repository navigation
Project Overview
A production pfSense monitoring stack, and the pfSense knowledge base that grew around it. Suricata IDS/IPS, pfBlockerNG and Telegraf on pfSense feeding OpenSearch, Logstash and Grafana — with the tuning, hardening and upgrade notes learned from running it.
This repository is two things, and you can use either without the other:
| What you get | Start here | |
|---|---|---|
| pfSense knowledge base | How to run Suricata, pfBlockerNG and Telegraf well on pfSense: rule selection and SID tuning, blocklist strategy, east-west VLAN monitoring, traffic shaping, Telegraf plugins, the filterlog rotation bug, and what breaks when you upgrade pfSense | docs/pfsense/ |
| SIEM stack |
setup.sh wires pfSense into any OpenSearch + Grafana you already run (recommended: siem-docker-stack): a rotation-aware GeoIP-enriching forwarder with watchdog, index templates, retention, and eight Grafana dashboards including three for Wazuh. install.sh builds a bare-metal server if you have none. |
Quick Start |
Suricata IDS/IPS dashboard — WAN attack sources, signatures and geography
Per-interface dashboard — one repeating section per VLAN for east-west visibility
| Component | State |
|---|---|
Suricata multi-interface forwarding (scripts/forward-suricata-eve.py) |
✅ Production — tested with 15 instances (2 WAN inline IPS + 13 VLAN IDS) on pfSense 2.8.1 |
| OpenSearch / Logstash pipeline, index templates, ISM retention | ✅ Production — flat root-level EVE fields (Field Reference) |
| Grafana dashboards: Suricata WAN, Suricata per-interface, pfSense system + pfBlockerNG, Windows exporter, Prometheus, Docker, 3× Wazuh | ✅ Shipped (inventory) |
install.sh bare-metal SIEM server (Ubuntu 24.04) |
✅ Works, now the manual/single-box path; OpenSearch is unauthenticated by default — see Security below. New server-side capability lands in siem-docker-stack first. |
| Releases | ✅ Tagged from main as vX.Y.Z (this overhaul is 2.0.0); each tag publishes a tarball + SHA256SUMS on the Releases page
|
| pfSense CE 2.9.0 | |
| Wazuh backend | ✅ Dashboards + deploy script ship here; the Wazuh server itself is provided by siem-docker-stack |
| Graylog backend | ⏸️ Explored and shelved (why) |
| Alerting as code, TLS/queued transport, OpenSearch auth | 📝 Next — see ROADMAP.md |
The strategic direction (see the roadmap) is for siem-docker-stack to be the canonical server-side backend, and for this repo to own everything pfSense-side.

- pfSense runs Suricata per interface (inline IPS on WAN, IDS on VLANs) behind pfBlockerNG.
-
Forwarder on pfSense tails every
/var/log/suricata/*/eve.json, survives log rotation, addsgeoip_src/geoip_dest, and ships JSON over UDP 5140. -
Logstash parses to flat root-level fields and indexes into
suricata-YYYY.MM.DD. -
Telegraf on pfSense sends system metrics to InfluxDB and pfBlockerNG block/DNSBL logs straight to OpenSearch (
pfblockerng-*). - OpenSearch stores events; Grafana visualises both datasources; optional Prometheus/Wazuh sources plug into the same Grafana.
-
Reliability chain on pfSense: rc.d service (boot) → cron watchdog every minute (crash) →
./setup.shagain (after a pfSense upgrade).
| Component | Runs on | Purpose |
|---|---|---|
| Suricata, pfBlockerNG, Telegraf | pfSense | Detection, blocklists, metrics |
forward-suricata-eve.py + rc.d + watchdog |
pfSense | EVE shipping, GeoIP, self-healing |
| Logstash 8.x, OpenSearch 2.x, Grafana 12.x | SIEM server | Parse, store, visualise |
| InfluxDB, Prometheus (optional) | SIEM server | Time-series metrics |
Full walkthrough with prerequisites: QUICK_START.md. The short version:
git clone https://github.com/ChiefGyk3D/pfsense-siem-stack.git && cd pfsense-siem-stack
cp config.env.example config.env && nano config.env # SIEM_HOST, PFSENSE_HOST, PFSENSE_USER
ssh-copy-id admin@<PFSENSE_IP>
./scripts/preflight.sh # validates SSH, Python on pfSense, OpenSearch reachability
sudo ./install.sh # ONLY if you have no OpenSearch/Grafana yet (bare-metal, single box)
./setup.sh # templates, Logstash pipeline, forwarder + rc.d + watchdog, dashboards, verification
./scripts/status.sh # green ticks = data flowingOr drive everything from the interactive console: ./pfsense-siem
(docs).
Requirements in one line: pfSense CE 2.7.2+ (2.8.1 tested, 2.9.0 see caveats) with Suricata and SSH enabled; an Ubuntu 24.04 server with 16 GB RAM (32 GB recommended) and 100 GB+ SSD; SSH keys to both. Sizing detail and the "no SD cards" warning: Hardware Requirements.
| Package | Why | Used by |
|---|---|---|
| Suricata | The IDS/IPS engine. Required. | Forwarder, Suricata dashboards |
| pfBlockerNG-devel | Blocks known-bad IPs/domains before Suricata sees them; GeoIP; the -devel branch gets features first |
pfSense system dashboard (pfBlockerNG section) |
| Telegraf | System metrics → InfluxDB, pfBlockerNG logs → OpenSearch, and the exec plugins in plugins/
|
pfSense system dashboard |
| ntopng | Keeps a GeoLite2-City database updated on the box, which the forwarder reuses for the attack map | Forwarder GeoIP |
| Cron | Config.xml-backed cron jobs (filterlog auto-restart, optional durable watchdog) | Operations |
| Service_Watchdog | Restarts Suricata/Unbound/dpinger if they die | Reliability |
| nut | UPS monitoring (optional) | Telegraf |
Install order: pfBlockerNG-devel → Suricata → Telegraf → ntopng → Cron → Service_Watchdog.
Hub: docs/DOCUMENTATION_INDEX.md — organised by what you are trying to do. The same material is published as the project wiki, generated from these files on every push, with a start-here page for people new to pfSense, a glossary and an FAQ.
| Track | Directory | Highlights |
|---|---|---|
| pfSense knowledge base | docs/pfsense/ | Suricata Optimization ⭐ · pfBlockerNG strategy and feed reference · Telegraf on pfSense · LAN / east-west monitoring · Traffic shaping · Upgrading pfSense |
| Deploy the SIEM | docs/install/ | Hardware · New user checklist · SIEM server · forwarder · GeoIP · dashboards |
| Operate it | docs/operations/ | Management console · Forwarder monitoring · Retention |
| Fix it | docs/troubleshooting/ | Troubleshooting guide · Dashboard "No Data" 🔥 · Data stops at midnight UTC · Filterlog rotation bug |
| Reference | docs/reference/ | Configuration · Field reference · Scripts · Dashboards |
| Other backends | docs/siem/ | Comparison · Wazuh · Graylog |
Repository layout: ORGANIZATION.md. Superseded material is in git history: docs/ARCHIVE.md.
Be honest with yourself about what install.sh gives you today:
-
OpenSearch has no authentication (security plugin disabled), so
install.shbinds it to127.0.0.1and does not open 9200. Binding it elsewhere takes explicit settings (OPENSEARCH_BIND,OPENSEARCH_ALLOWED_SOURCES,OPENSEARCH_DISABLE_SECURITY=true);INSECURE_OPEN_ACCESS=truerestores the old wide-open install and should not be used. Enabling the security plugin (auth + TLS) is the top item on the roadmap. Upgrading from an older install? It keeps its oldopensearch.ymland ufw rules; see Configuration, Security. -
Suricata events travel as plain UDP to Logstash on 5140.
install.shlimits the port to the pfSense IP (LOGSTASH_ALLOWED_SOURCES); the input is still unauthenticated, so a host that can spoof that source can inject events. A TLS/queued transport is planned. -
Grafana gets a password you choose or a generated one;
adminis refused. It is served over plain HTTP, limited toGRAFANA_ALLOWED_SOURCES. -
pfSense: the scripts use key-based SSH as
admin. Keep SSH restricted to your management network; pfSense 2.9.0 tightens sshd algorithms, so use an ed25519 key. - GeoIP and alert data include client IPs; treat the SIEM server as sensitive.
If you also forward pfSense syslog to a Wazuh-equipped
siem-docker-stack, set Status → System
Logs → Settings → Remote Logging to RFC 5424 format with RFC 3339 timestamps.
pfSense's default BSD format omits the hostname, Wazuh's pre-decoder then misreads the
program name as the host, and the built-in pf decoder never matches. Details in
docs/siem/wazuh/README.md.
Bug reports, dashboards, tuning notes and upgrade experiences are all welcome — especially testing on pfSense 2.9.0, OpenSearch security enablement, and alert rules as code. See CONTRIBUTING.md; CI runs shell/JSON/Python syntax checks, the forwarder unit tests and a documentation link check on every push.
| Repository | Role |
|---|---|
| siem-docker-stack | Dockerised SIEM/SOC backend: OpenSearch hot/warm, Logstash, Grafana, Wazuh, syslog-ng, n8n SOAR |
| jumpcloud-wazuh-bridge | JumpCloud identity events into Wazuh |
| PiNodeXMR_Grafana_Dashboard | Monero node monitoring in Grafana |
| UniFi Poller | Not part of this project — use it for UniFi switches/APs (with InfluxDB); this repo is pfSense-only |
pfSense (Netgate and community), Suricata (OISF), OpenSearch, Grafana Labs, MaxMind GeoLite2, Emerging Threats, Snort/Cisco Talos, abuse.ch, the UniFi Poller project for telemetry patterns, and everyone who tested and reported.
Mozilla Public License 2.0 — see LICENSE.
- Issues: https://github.com/ChiefGyk3D/pfsense-siem-stack/issues
- Discussions: https://github.com/ChiefGyk3D/pfsense-siem-stack/discussions
If you find pfSense SIEM Stack useful, consider supporting continued development. Everything is also collected at support.chiefgyk3d.com.
bc1qztdzcy2wyavj2tsuandu4p0tcklzttvdnzalla
|
84Y34QubRwQYK2HNviezeH9r6aRcPvgWmKtDkN3EwiuVbp6sNLhm9ffRgs6BA9X1n9jY7wEN16ZEpiEngZbecXseUrW8SeQ
|
0x554f18cfB684889c3A60219BDBE7b050C39335ED
|
5T8h3HbyvHgLxwXgchRYbHSqRjZyAr8J7uwjLN9Fh8Jh
|
Source: README.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