Skip to content

Quick Start

github-actions[bot] edited this page Oct 3, 2026 · 1 revision

Get Suricata dashboards running in Grafana. Budget 30–60 minutes for a from-scratch deployment (10 minutes if your SIEM server is already running).

Prerequisites

Hardware/hosts you need (see Hardware Requirements):

  • pfSense CE 2.7.2+ (2.8.1 tested; 2.9.0 works — read the Upgrade Guide first) with Suricata installed and enabled on at least one interface, and SSH enabled (System → Advanced → Secure Shell)
  • A Linux server (Ubuntu 24.04 LTS recommended) for the SIEM stack — 16 GB RAM minimum, 32 GB recommended, 100 GB+ SSD for logs
  • A workstation (can be the SIEM server itself) with bash, ssh, curl, jq, and python3 to run the scripts from

Honest expectations:

  • SSH key-based auth to pfSense is required (ssh-copy-id) — the scripts never prompt for passwords
  • GeoIP enrichment (the attack map) needs a MaxMind GeoLite2 database on pfSense — optional, see GeoIP Setup
  • pfBlockerNG panels need Telegraf configured separately — see Telegraf pfBlockerNG Pipeline

Steps

1. Clone, configure, and run the preflight check

git clone https://github.com/ChiefGyk3D/pfsense-siem-stack.git
cd pfsense-siem-stack
cp config.env.example config.env
nano config.env

Set at least:

SIEM_HOST=192.168.1.10    # Your SIEM server (OpenSearch/Logstash/Grafana)
PFSENSE_HOST=192.168.1.1  # Your pfSense firewall
PFSENSE_USER=admin        # SSH user for pfSense (default admin account)

Set up SSH keys, then verify everything with the preflight check:

ssh-copy-id admin@192.168.1.1   # pfSense
./scripts/preflight.sh

Preflight validates config.env, SSH access to pfSense and the SIEM server, Python on pfSense, OpenSearch reachability, and GeoIP presence — fix any ✗ before continuing. (setup.sh also runs it automatically; skip with --skip-preflight if you must.)

2. Have an OpenSearch + Grafana to point at

setup.sh works against any reachable OpenSearch 2.x and Grafana 12.x — set their addresses in config.env. The recommended server side is siem-docker-stack (Docker, hot/warm tiers, Wazuh); an existing cluster works too.

If you have nothing yet and want a single bare-metal box, the manual path is:

sudo ./install.sh     # Ubuntu 24.04: OpenSearch 2.x, Logstash 8.x, Grafana + OpenSearch plugin

Details and what it does not secure: SIEM Stack Installation.

3. Deploy everything with setup.sh

./setup.sh

The installer will:

  1. Run preflight + prerequisite checks — OpenSearch, Grafana, SSH, Suricata EVE logs
  2. Configure OpenSearch — index templates (keyword, ip, geo_point) and auto-create
  3. Deploy Logstash config — flat JSON parsing pipeline (via SSH to SIEM server)
  4. Deploy forwarder to pfSense — detects the Python interpreter, installs the rc.d service (suricata_forwarder.sh) and the watchdog cron
  5. Import dashboards — IDS/IPS and Per-Interface dashboards via the Grafana API
  6. Verify data flow — confirm events are appearing in OpenSearch

4. Open Grafana and check the dashboards

Navigate to http://<your-siem>:3000/d/suricata_ids_ips — you should see events within a minute or two.

If setup.sh could not reach Grafana, import manually (Grafana → Dashboards → Import):

  • dashboards/Suricata_IDS_IPS.json — OpenSearch datasource
  • dashboards/Suricata_Per_Interface.json — OpenSearch datasource
  • dashboards/pfsense_pfblockerng_system.json — InfluxDB + OpenSearch-pfBlockerNG datasources (needs Telegraf)

Details: Dashboard Installation.

After Installation

./scripts/status.sh                        # Check all component status
./scripts/diagnose-and-repair.sh           # Auto-diagnose problems
./scripts/configure-retention-policy.sh    # Set index retention (default 30 days)
./pfsense-siem                             # Interactive management console

Verify the forwarder on pfSense:

ssh admin@<pfsense> 'service suricata_forwarder.sh status'

Where to next

Manual Installation

If you prefer to install each component separately instead of using setup.sh:

  1. OpenSearch config: ./scripts/install-opensearch-config.sh
  2. Logstash config: Copy config/logstash-suricata.conf to /etc/logstash/conf.d/suricata.conf
  3. Forwarder: Copy scripts/forward-suricata-eve.py to pfSense at /usr/local/bin/ — see pfSense Forwarder Installation
  4. Dashboards: Import dashboards/Suricata_IDS_IPS.json in Grafana UI → Dashboards → Import

Source: QUICK_START.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.

Clone this wiki locally