Initial commit

This commit is contained in:
2024-05-11 17:06:41 +02:00
commit c489765799
2 changed files with 83 additions and 0 deletions

14
REAME.md Normal file
View File

@@ -0,0 +1,14 @@
# DHCPAdmin
## Sudo setup
There are two commands needed for this to work:
- `systemctl status 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 status 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
```