Hibiscus exports DHCPv4 leases from OPNsense to RFC1035-compliant zone files.
You'll need an API token to access DHCP leases in OPNsense.
- Log in to your OPNsense firewall.
- Go to
System
->Access
->Users
. - Create a new user. Do not set any permissions yet, but check a
Generate a scrambled password
box. - Edit the user, and set
Effective Privileges
toStatus: DHCP leases
andStatus: DHCPv6 leases
. - Save the user.
- On the same page, create a new API key for that user. It'll automatically download a credentials file.
Use docker-compose
to run Hibiscus in production.
Please check the example configuration for more information.
See .env.example for a full list of configuration options.
For local development, you will need Bun.
# Install Bun if not yet
curl -fsSL https://bun.sh/install | bash
# Clone repo
git clone https://github.com/b4ck5p4c3/hibiscus
cd hibiscus
# Install deps
bun install
# Copy & adjust example configuration
cp .env.example .env
# Go!
bun run dev