Greasewood
A minimal, self-hosted, greasy WireGuard mesh network.
Its one priority is being easy to reason about. It was built by someone who lovingly maintained a fleet of hand-written WireGuard/networkd text files far past the point of practicality, and wanted the simplest possible upgrade.
📖 Full documentation: cschlick.github.io/greasewood — quickstart, concepts, access control, TLS, operations, and the CLI/config reference. The docs/ pages are also browsable here in the repo.
- Private. Membership is gated by a certificate authority; revoke a node by not renewing it.
- Direct-or-fail. No routing, no relays. A link comes up directly or it honestly fails.
- IPv6 only overlay. The overlay is IPv6-only; the underlay may be IPv4 or IPv6.
- Linux-first, macOS native. Kernel WireGuard + systemd/nftables on Linux; wireguard-go + launchd on macOS.
- Greasy. Uses the stock
wg/iptools over subprocess. - Named. Every node gets a
<host>.<mesh>.internalname and matching TLS certs from the same CA. - Policy-derived topology. Roles + an allow-only grant table control who talks to whom.
- Self-certifying addresses. A node's IPv6 address is a hash of its identity key.
- Service TLS. The same CA issues auto-renewing x509 certs for your services (Postgres, nginx, …).
- Offline-tolerant. The anchor can be down for a credential lifetime, nodes run from cache.
- Hands-off. Never automatically configures your main firewall. Port access control lives on a dedicated table.
- Auditable. Pure Python, one dependency. Fanatical logging.
- Self-contained. The coordination anchor is just a normal node. Any node can become the anchor.
Install
Requires Python 3.11+, the WireGuard tools (wg), and iproute2 (ip).
sudo apt install pipx wireguard-tools # Debian/Ubuntu; use your distro's pkg mgr
sudo pipx install --global greasewood
macOS installs natively via Homebrew (brew install cschlick/tap/greasewood)
— see the macOS guide.
--global puts gw on root's PATH so sudo gw … resolves. Distro .deb/
.rpm packages and the bundled installer are also available — see the
install guide (and its first-run pitfalls, straight from
real fleets coming up).
Quickstart
# 1. On the anchor — holds the CA, serves enrollment:
sudo gw create mymesh # names live under *.mymesh.internal
# 2. Mint a join token (anchor), redeem it on the new machine:
sudo gw invite # prints a token
sudo gw join <token> # on the new node
# 3. Watch it link — the live, colored mesh dashboard:
sudo gw watch
create and join set up a managed systemd service, so the daemon stays up
across reboots. That's the whole loop. The quickstart
walks through what each step does (the CA, the enrollment "door", the reconcile
loop), and the live dashboard page shows gw watch in
action.
Prior art
The nearest full-featured projects are Tailscale, Nebula, and innernet. Next to greasewood they're all bigger systems that do more: routing, NAT traversal, multi-platform, etc. Greasewood aims to be a minimal alternative — the non-goals aren't missing, they're the point.
Testing & contributing
Unit tests run in ~30s with no privileges:
pip install -e '.[test]' && python -m pytest
The Podman-based integration/stress/chaos suites and the nightly Hypothesis tier are documented in docs/testing.md.
Security & operations
- Security — trust boundaries, what the 7-step check enforces, accepted risks, and the security-review results.
- Operations — moving the anchor, plus disaster SOPs:
compromised node, lost/leaked CA key, destroyed anchor, fleet-wide teardown,
and reading
gw diagnose.
License
MIT — see LICENSE.
Metadata
Release files for greasewood 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| greasewood-0.9.2.tar.gz | 545.7 kB | With provenance | Details for greasewood-0.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| greasewood-0.9.2-py3-none-any.whl | Python 3 | none | any | Details for greasewood-0.9.2-py3-none-any.whl |
Total release size: 887.0 kB
Release files / greasewood-0.9.2.tar.gz
| Download URL | greasewood-0.9.2.tar.gz |
|---|---|
| Size | 545.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63d61905d7dc5f0143980798c8ef5684af32816b9d6a8fa577871cac68926206
|
|
BLAKE2b-256 checksum How to use checksums |
3fcb79a9d547b95fbd14379343996806740d5a086d71b0d4f42bb329e248c52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / greasewood-0.9.2-py3-none-any.whl
| Download URL | greasewood-0.9.2-py3-none-any.whl |
|---|---|
| Size | 341.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae5e2fe0751f62645cb6fb581a142a0d12a999ada1fb368e9ba48ae7be5d5de6
|
|
BLAKE2b-256 checksum How to use checksums |
801a270a47b944b322e116afdec943965694e81afc667507a87d395553c4676d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for greasewood 0.9.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for greasewood-0.9.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.