2024-05-11 18:40:43 +02:00
2024-05-11 18:40:43 +02:00

DHCPAdmin

Sudo setup

There are two commands needed for this to work:

  • systemctl is-active isc-dhcp-server.service to check if service does work
  • dhcp-lease-list --parsable to get leases data

Example sudoers configuration

Cmnd_Alias SYSTEMD_STATUS_DHCPD=/usr/bin/systemctl is-active isc-dhcp-server.service
Cmnd_Alias DHCP_LEASE_LIST=/usr/sbin/dhcp-lease-list --parsable

www-data        ALL= NOPASSWD: SYSTEMD_STATUS_DHCPD, DHCP_LEASE_LIST
Description
No description provided
Readme 26 KiB
Languages
PHP 100%