Repository navigation
Contributing
Help build the pfSense community knowledge repository
Thank you for considering contributing! This project has evolved from a simple dashboard into a comprehensive pfSense knowledge base. Whether you're sharing configuration tips, automation scripts, troubleshooting solutions, or documentation improvements, your contributions are valued.
This is not just a monitoring stack—it's a knowledge repository covering:
- SIEM & Logging: OpenSearch, Logstash, Grafana, log forwarding
- Security: IDS/IPS tuning, signature management, threat intelligence
- Network Monitoring: Multi-WAN, VLAN segmentation, traffic analysis
- Automation: Scripts, watchdogs, recovery procedures, deployment tools
- Operations: Configuration management, troubleshooting, best practices
- Hardware & Performance: Tuning guides, benchmarks, optimization strategies
- Troubleshooting scenarios you've encountered and solved
- Configuration examples from your production deployments
- Performance tuning lessons learned
- Hardware recommendations based on your experience
- Video tutorials or screen recordings
- Architecture diagrams for different use cases
- Comparison guides (e.g., Suricata vs Snort, inline vs passive)
- LAN monitoring dashboard - East-west traffic visualization
- Additional log parsers - pfSense filterlog, HAProxy, Unbound, DHCP
- Alert rules - Pre-configured detection rules with documentation
- Index optimization - Performance tuning for large deployments
- Retention strategies - Cost-effective storage management
- Signature tuning guides - SID management strategies
- Threat intelligence integration - MISP, abuse.ch, OTX feeds
- Blocklist optimization - pfBlockerNG configuration best practices
- False positive documentation - Known FPs and suppression strategies
- Ansible playbooks - Automated deployment and configuration
- Monitoring scripts - Health checks, alerting, recovery procedures
- Configuration management - Version control for pfSense configs
- Backup/restore procedures - Disaster recovery documentation
-
Deployment Options
- Docker/Docker Compose setup
- Ansible playbooks
- Kubernetes manifests
- All-in-one installer scripts
-
Additional Integrations
- Zeek (formerly Bro) IDS
- Snort3 native support
- pfSense DHCP logs
- VPN logs (OpenVPN, Wireguard, IPsec)
-
Testing & Validation
- More forwarder unit tests (
tests/python/) and a dry-run mode forsetup.sh/install.shrunnable in CI - Performance benchmarks
- Security hardening tests
- More forwarder unit tests (
-
Aesthetic Improvements
- Grafana theme customizations
- Logo and branding
- Dashboard layout refinements
# Fork this repository on GitHub, then:
git clone https://github.com/<your-username>/pfsense-siem-stack.git
cd pfsense-siem-stack
git remote add upstream https://github.com/ChiefGyk3D/pfsense-siem-stack.gitSIEM Server (for testing):
# Install SIEM stack
sudo ./install.sh
# Configure for testing
cp config.env.example config.env
nano config.env # Set your test pfSense IPpfSense Test Instance (recommended):
- Use a spare pfSense box or VM
- Install Suricata package
- Configure SSH access
- Run in a lab/test network (not production!)
git checkout -b feature/your-feature-name
# or
git checkout -b fix/issue-descriptionPython (forwarders, scripts):
- Follow PEP 8
- Use descriptive variable names
- Add docstrings to functions
- Include inline comments for complex logic
Shell scripts:
- Anything that runs on pfSense must be POSIX
#!/bin/sh— pfSense has no bash - Scripts that run on the workstation or SIEM server use
#!/bin/bash - CI runs
bash -nandshellcheck --severity=erroron every*.shand onpfsense-siem - Include error handling (
set -euo pipefailwhere appropriate) - Add help text for user-facing scripts
- Quote variables to prevent word splitting
Grafana Dashboards (JSON):
- Indent with 2 spaces
- Use descriptive panel titles
- Add panel descriptions explaining queries
- Test on Grafana 12.x; export with Export for sharing externally so datasources become
${DS_*}variables
Documentation (Markdown):
- Use headers for structure
- Include code examples with syntax highlighting
- Add screenshots where helpful
- Keep line length reasonable (80-120 chars)
Format:
<type>(<scope>): <short description>
<longer description if needed>
Fixes #<issue-number>
Types:
-
feat: New feature -
fix: Bug fix -
docs: Documentation changes -
refactor: Code refactoring -
perf: Performance improvements -
test: Adding tests -
chore: Maintenance tasks
Examples:
feat(dashboard): Add pfBlockerNG statistics panel
Added new panel showing top blocked domains and IPs from pfBlockerNG logs.
Includes pie chart for block reasons and time series for block rate.
Fixes #42
fix(setup): name the rc.d script suricata_forwarder.sh
pfSense only starts /usr/local/etc/rc.d/*.sh at boot, so the previous
extension-less unit was never started and relied on the watchdog.
Fixes #87
-
Test your changes
- Verify forwarder works on pfSense
- Test dashboard loads in Grafana
- Run
./scripts/status.shto validate - Run the same checks CI runs (see Continuous Integration below)
-
Update documentation
- Add/update README if adding features
- Update relevant docs in
docs/ - Add inline comments to code
- Update CHANGELOG.md
-
Submit PR
- Push to your fork
- Open the PR against
main - Describe what changed and how you tested it (there is no PR template)
- Link related issues
-
Code review
- Address reviewer feedback
- Keep PR scope focused (one feature/fix per PR)
- Be patient — reviews may take a few days
For Forwarder Changes:
- Deploy to test pfSense:
scp scripts/forward-suricata-eve.py admin@<PFSENSE_IP>:/usr/local/bin/ - Restart forwarder:
ssh admin@<PFSENSE_IP> "service suricata_forwarder.sh restart"(or re-run./setup.sh, which redeploys and restarts) - Check debug log:
ssh admin@<PFSENSE_IP> "tail -f /var/log/suricata_forwarder_debug.log" - Verify data in OpenSearch:
curl -s http://localhost:9200/suricata-*/_count - Test log rotation: Manually rotate logs and verify forwarder reopens files
For Dashboard Changes:
- Import into Grafana (don't overwrite production!)
- Test all panels load without errors
- Verify queries return data
- Test time range selector
- Check variable dropdowns work
- Export and validate JSON format
For Documentation Changes:
- Check Markdown rendering (use GitHub preview)
- Verify all links work
- Test code examples in a shell
- Proofread for typos/grammar
When adding a feature, include:
- Overview - What it does, why it's useful
- Prerequisites - Requirements, dependencies
- Installation - Step-by-step deployment
- Configuration - Options, examples
- Usage - How to use the feature
- Troubleshooting - Common issues, fixes
- Examples - Real-world use cases
.github/workflows/ci.yml runs on every push and pull request:
| Check | Command it runs | Fix locally with |
|---|---|---|
| Shell syntax |
bash -n on all *.sh + pfsense-siem
|
same |
| ShellCheck |
shellcheck --severity=error on the same set |
shellcheck file.sh |
| JSON |
python3 -m json.tool on dashboards/**/*.json, config/*.json
|
same |
| Python syntax |
python3 -m py_compile on all *.py
|
same |
| Documentation links | python3 scripts/check-doc-links.py |
same — every relative link must resolve |
| Wiki build | python3 scripts/build-wiki.py |
same — every tracked .md needs a PAGES entry (see wiki/README.md) |
| Forwarder unit tests | python3 -m pytest tests/python/ -v |
pip install pytest then same |
A PR that is red on any of these will not be merged.
- docs/: Detailed guides (installation, config, troubleshooting)
- scripts/README.md: Script usage and examples
- README.md: Project overview and quick start
- QUICK_START.md: deployment walkthrough (30–60 minutes from scratch)
- docs/DOCUMENTATION_INDEX.md: the hub — add new docs there and in ORGANIZATION.md
- docs/pfsense/: generic pfSense knowledge (must read well without the SIEM stack)
- dashboards/README.md, plugins/README.md, tests/README.md: inventories — keep them in sync
-
wiki/: the hand-written pages of the GitHub wiki; everything else there is generated from the files above by
scripts/build-wiki.py, so never edit the wiki directly. A new doc needs aPAGESentry in that script (details in wiki/README.md) - CHANGELOG.md: add an entry under Unreleased
Releases are tagged from main and follow semver: bump major for
anything that changes what is deployed on pfSense in an incompatible way (service names,
file paths, config.env keys), minor for new dashboards/scripts/docs, patch for fixes.
git checkout main && git pull
scripts/release.sh 2.1.0 # rolls CHANGELOG [Unreleased] → [2.1.0] - date, bumps VERSION + pfsense-siem, commits, tags v2.1.0
git show v2.1.0 # review
git push origin main && git push origin v2.1.0Pushing the tag runs .github/workflows/release.yml, which re-runs the lint checks, builds
pfsense-siem-stack-2.1.0.tar.gz + SHA256SUMS, and publishes a GitHub Release whose notes
are the matching CHANGELOG section. Keep CHANGELOG.md current under [Unreleased] as you
merge PRs so the release notes write themselves.
- Check existing issues
- Run
./scripts/status.shand include output - Check logs:
- OpenSearch:
/var/log/opensearch/opensearch.log - Logstash:
/var/log/logstash/logstash-plain.log - Forwarder:
/var/log/suricata_forwarder_debug.log(on pfSense)
- OpenSearch:
**Describe the bug**
Clear description of the issue.
**To Reproduce**
Steps to reproduce:
1. Go to '...'
2. Click on '...'
3. See error
**Expected behavior**
What you expected to happen.
**Environment:**
- pfSense version: [e.g., 2.8.1 or 2.9.0]
- Suricata package version: [e.g., 7.0.11]
- Python on pfSense: [output of `ls /usr/local/bin/python3*`]
- SIEM server OS: [e.g., Ubuntu 24.04]
- OpenSearch version: [e.g., 2.19.4]
- Grafana version: [e.g., 12.3.0]
**Logs**
Paste relevant log snippets (use code blocks).
**Screenshots**
If applicable, add screenshots.Use GitHub Discussions for:
- Feature ideas
- Architecture discussions
- Use case questions
Use GitHub Issues for:
- Concrete feature requests with implementation plan
- Bugs and fixes
**Is your feature related to a problem?**
Clear description of the problem or use case.
**Describe the solution**
What you'd like to happen.
**Describe alternatives**
Other approaches you've considered.
**Implementation notes**
How might this be implemented? (optional)
**Additional context**
Screenshots, diagrams, links to similar projects.- GitHub Discussions: Ask questions, share setups
- GitHub Issues: Report bugs, request features
- Pull Requests: Contribute code, docs, dashboards
By contributing, you agree that your contributions will be licensed under the MPL 2.0 License.
Every contribution helps make this project better for the pfSense and open-source security community. Whether it's code, docs, bug reports, or feature ideas — thank you for your time and effort!
Happy hacking! 🚀
Source: CONTRIBUTING.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