[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP quickie



In our company we use a single dhcpd file, and the access control per time of day is done with iptables and squid.

William Ivanski


2014-03-04 17:06 GMT-03:00 Mark Carroll <mtbc@ixod.org>:
Danny <dannydebont@gmail.com> writes:

> Is it possible to only give leases at a certain time of day for a certain IP or
> MAC?
>
> Say from 06:00 till 10:00 and then from 18:00 till 22:00?

I guess you could probably have a couple of different dhcpd
configuration files and set a cron job on that server to run a script
that switches them over and kicks the daemon into reloading its
configuration. I do similarly except, instead of messing with dhcpd,
my scripts add or remove iptables rules that reject the packets based
on MAC.

-- Mark


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 87k3c9vicv.fsf@ixod.org" target="_blank">https://lists.debian.org/[🔎] 87k3c9vicv.fsf@ixod.org



Reply to: