Configuration examples, use cases and integrations for Synapse, the Gen0Sec reverse proxy, WAF and host agent. Product documentation is at docs.gen0sec.com.
| Path | What it holds |
|---|---|
integrations/ |
Ready-to-use integrations of third-party tools with Synapse and the Gen0Sec API |
use-cases/ |
Complete, runnable Synapse configurations, one directory each |
reference/ |
Short annotated snippets, one per feature: config sections, upstreams and security rules |
- Fail2Ban: a Fail2Ban action that reports banned IP addresses to the Gen0Sec API. The Ansible role that rolls it out lives in gen0sec/ansible-playbook.
- Splunk: a Splunk add-on that parses Synapse access logs, whether they arrive by syslog, a file or HEC, and maps them to the CIM Web data model.
- Host IDS: agent mode with AF_PACKET capture, local Suricata-format rules and EVE alerts written to a file.
- Reverse proxy with a WAF: Synapse as a TLS-terminating proxy with WAF and access rules, run as a package or with docker compose, with no API key.
- Capture IDS: agent mode with packet capture and the XDP IDS in detect-only mode, local rules and EVE alerts and stats, with no API key.
- IDS to a SIEM: a detect-only IDS whose alerts and block events are sent as CEF to a file and a syslog collector.
- XDP firewall: agent mode with a forced XDP firewall that enforces access rules and 5-tuple rules from a local file, with no API key.
- Passive monitoring: agent mode with packet capture and no firewall; fingerprints are written to a log and nothing is blocked.
- Platform managed: agent mode with a Gen0Sec API key; the platform delivers the rules, the threat and GeoIP databases, managed IDS rules and fleet bans, and there is no local rules file.
- Smart firewall: agent mode with a forced XDP firewall that blocks by TCP fingerprint and source address from a local file, with the amygdala bridge for the other JA4 kinds and IDS blocking, with no API key.
- Capture and IDS with ML: agent mode with
packet capture, a detect-only XDP IDS and ML models that download with a
Gen0Sec API key. Needs the
-mlpackage. - Agent, everything on, with ML: agent mode with
the XDP firewall, smart firewall, a blocking IDS with managed rules, capture
and ML models, with a Gen0Sec API key. Needs the
-mlpackage. - Load-balancing methods: one route per
lb.method(round robin, maglev, ring hash, least request and more) over the same three servers. Needs Synapse 0.8.9 or later. - Certificates from certbot: serve the certificates certbot issues and renews, with the webroot challenge routed through Synapse. Needs Synapse 0.8.9 or later.
- Load balancing on a passthrough host: one
passthrough host per
lb.method, without terminating TLS. Needs Synapse 0.8.9 or later. - Source-IP persistence: pin a client
address to the server it first got, whatever
lb.methodsays. Needs Synapse 0.8.9 or later. - Sticky sessions: keep a client on the server it first got with a signed cookie. Needs Synapse 0.8.9 or later.
- Back-end source address: bind the connections Synapse opens to a back-end to a local address, interface and port range. Needs Synapse 0.8.9 or later.
- Back-end TLS: how Synapse checks the certificate chain and name of a TLS back-end, set at the top level, per host or per path. Needs Synapse 0.8.9 or later.
- TCP MSS: cap the MSS of the connections a listener accepts, for a path whose MTU is smaller than the client assumes. Needs Synapse 0.8.9 or later.
- Forwarded headers, HSTS, Via and a request ID: what Synapse adds to a request on its way to the back-end, and the HSTS header on the response. Needs Synapse 0.8.9 or later.
- Header rules: add and remove request and response headers, with a script that checks every rule against the running example.
- cert-manager on Kubernetes: a
SynapseProxyof the Synapse operator serves an Ingress with a certificate from cert-manager, and picks up a renewal without a restart. Needs Synapse operator 0.2.0 (not released yet) and Synapse 0.8.8 or later. - TLS keys in an HSM: serve certificates whose private keys live in an HSM or other PKCS#11 token, beside a software key, with the PIN in a file. The demo runs SoftHSM in docker. Needs Synapse 0.8.9 or later.
- Lua snippets on requests: an axon snippet runs on
every request the WAF allowed, and blocks a path, rate-limits a client and
tags a scanner, with a script that checks each. Needs Synapse 0.8.10 built
with the
axonfeature. - Lua snippets on flows: an axon snippet runs on every
flow the smart firewall evaluated and tags it. Needs Synapse 0.8.10 built
with the
axonfeature. - Scan detection with a snippet pipeline:
four axon files in one pipeline count in shared dictionaries and tag
outgoing port scans and sweeps and an outside /24 that scans together, with
a script that runs each scan and a control. Needs Synapse 0.8.10 built with
the
axonfeature. - Blocking on a threat score plus evidence: an
axon snippet blocks an outside source with a middling threat score once it
also trips the IDS, the traffic classifier or a port count, with a script
that checks what it blocks and what it leaves. Needs Synapse 0.8.10 built
with the
axonfeature and an API key.
- Datadog: a Datadog workflow that responds to security signals. It is being updated: its block step points at a retired endpoint, so do not use it yet.
Synapse configuration examples: reference/ is complete. use-cases/ has a table of the
sets.
Config sets are checked with synapse --check-config, which arrives in the
next Synapse release (no release has it yet). With a build that has it, run
SYNAPSE_BIN=/path/to/synapse make test. CI does not run this check yet. make help lists the other targets.
- Standalone: Synapse runs from local configuration files only. It needs no API key. Installing Synapse still needs a repository credential from the Gen0Sec dashboard, which is separate from the platform API key.
- With a Gen0Sec API key: Synapse also connects to the Gen0Sec platform, which adds the features that depend on platform data. The Fail2Ban and Datadog integrations use the Gen0Sec API and need an API key.
The Fail2Ban and Datadog integrations are not Synapse configurations. They call the Gen0Sec API directly. The Splunk add-on needs no API key: it reads the logs Synapse writes.
Installation (packages, containers and Kubernetes) is covered in the installation guide. The rest of the documentation is at docs.gen0sec.com.
Synapse is commercial software from Gen0Sec. Its licensing is set by your agreement with Gen0Sec. For licensing questions, contact support@gen0sec.com.
The examples in this repository are licensed MIT-0 (see LICENSE): copy and adapt them freely. That licence covers the files in this repository only, not Synapse.
- Documentation: docs.gen0sec.com
- Community chat: Discord
- Email: support@gen0sec.com
- Issues with an example: open an issue in this repository.