Sign inSign up

dexogen/pve-leazzard

By dexogen

•Updated almost 2 years ago

A DNS/DHCP server for Proxmox with automatic generation of DNS records.

Image
Networking
API management
Web servers
0

1.3K

dexogen/pve-leazzard repository overview

⁠PVE-Leazzard

Workflow amd64 GitHub Tag

A DNS/DHCP server based on dnsmasq⁠ and hacks with automatic generation of DNS records for dynamic and static IPs using ARP scanning and the Proxmox API⁠.

Detailed installation instructions are in the repository dexogen/pve-leazzard⁠.


⁠docker-compose.yml

  services:
	pve-leazzard:
	  image: dexogen/pve-leazzard:latest
	  environment:
		PROXMOX_HOST: "https://your-proxmox.host:port" # can omit the port if 443
		API_TOKEN_ID: "root@pam!leazzard"
		API_TOKEN_SECRET: "00000000-0000-0000-0000-000000000000"
		VERIFY_SSL: "true" # only if you have a valid certificate
		NETWORK_CIDR: "10.0.0.0/23" # your main prefix
		DHCP_RANGE: "10.0.1.1,10.0.1.254,255.255.254.0,12h" # DHCP issuance range
		DHCP_OPTION: "option:router,10.0.0.1" # router address
		DNS_DOMAIN: "lab" # your custom domain
		SYNC_INTERVAL: "300" # sync interval with PVE when there are no ARP events
		ARP_CHECK_INTERVAL: "15" # ARP scanning interval
		LOG_LEVEL: "ERROR" # logging level ERROR/INFO
	  network_mode: "host" # without this, the ARP scanner will not work
	  cap_add:
		- NET_ADMIN
	  restart: always
	  # optional, for debugging convenience
	  volumes:
		- ./dnsmasq:/etc/dnsmasq.d
		- ./leases:/var/lib/misc

⁠Variables

VariableRequiredExample
PROXMOX_HOSTtruehttps://your-proxmox.host:port
API_TOKEN_IDtrueroot@pam!leazzard
API_TOKEN_SECRETtrue00000000-0000-0000-0000-000000000000
DNS_DOMAINtruelab
NETWORK_CIDRtrue10.0.0/23
DHCP_RANGEtrue10.0.1.1,10.0.1.254,255.255.254.0,12h
DHCP_OPTIONtrueoption:router,10.0.0.1
VERIFY_SSLtrue (default) / false
SYNC_INTERVAL300 (default)
ARP_SCAN_INTERVAL30 (default)
LOG_LEVELERROR (default) / INFO

Tag summary

Content type

Image

Digest

sha256:303be382d…

Size

43.7 MB

Last updated

almost 2 years ago

docker pull dexogen/pve-leazzard