Hi Matthias,
Thanks very much for the feedback. When I ran it with my test bed setup I had some address pools but in my production setup I only have fixed leases in Green. So your testing result is exactly what I needed to find.
I need to think how to modify the changes in dhcp.cgi to allow for no address pools.
I will come back if I am able to find a solution. I will also test now with no address pools in future.
Regards,
Adolf
On 14/11/2020 17:26, Matthias Fischer wrote:
Hi,
Tested - sorry, didn't work - 'dhcp' wouldn't start. Perhaps my fault. I have suspected something like this for my machine.
/var/log/messages tells me:
... Nov 14 16:36:27 ipfire dhcpd: /etc/dhcp/dhcpd.conf line 16: Pool declaration with no address range. Nov 14 16:36:27 ipfire dhcpd: } Nov 14 16:36:27 ipfire dhcpd: ^ Nov 14 16:36:27 ipfire dhcpd: Pool declarations must always contain at least Nov 14 16:36:27 ipfire dhcpd: one range statement. Nov 14 16:36:27 ipfire dhcpd: /etc/dhcp/dhcpd.conf line 30: Pool declaration with no address range. Nov 14 16:36:27 ipfire dhcpd: } Nov 14 16:36:27 ipfire dhcpd: ^ Nov 14 16:36:27 ipfire dhcpd: Pool declarations must always contain at least Nov 14 16:36:27 ipfire dhcpd: one range statement. Nov 14 16:36:27 ipfire dhcpd: Configuration file errors encountered -- exiting ...
And...yes... [Hrm!]...I'm running 'dhcpd' on GREEN and BLUE with NO address pools. Only fixed leases.
Anything I can do to test this without address ranges?
Best, Matthias
On 14.11.2020 13:29, Adolf Belka wrote:
Hi all,
I created a modified dhcp.cgi file for bug 10743. This gives the opportunity to add deny unknown-clients or deny known-clients to the dhcpd.conf file for the green and blue subnets.
Unfortunately one of the bug originators has decided to move away from IPFire and will not carry out any testing of this modification to confirm it works before I create a patch and submit it.
The modification provides a radio button set to green and blue that offers:-
allow all clients deny unknown-clients deny known-clients
The allow all clients option gives the same setup as currently and is the default setting for the radio button set.
The modified dhcp.cgi file is attached. I would appreciate it if you could test this out and let me know if there are any unexpected outcomes.
Regards,
Adolf.