Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Colonel Sheppard

#1
Switching over from ISC to Dnsmasq, I'm a little confused on how to apply certain settings (like DNS servers) to all devices on the network instead of applying it to each reservation (host) individually.

Example network:
Entire network range: 10.0.248.1 - 10.0.251.255 (10.0.248.0/22)
Reserved range / static leases: 10.0.248.1 - 10.0.250.254
DHCP range: 10.0.251.1 - 10.0.251.254

Do I just create a DHCP range set to "static" with the starting address of 10.0.248.1 and a second range with start/stop as 10.0.251.1 - 10.0.251.254
(Since the static zone only has the start specified how does it know where the zone ends, is it just the entire network up to the next DHCP range?)

And then add tags to the static zone to apply the settings to all devices with reservations? And the same tags to the DHCP zone to apply the same settings to them as well.
In that case do tags for a specific reservation override range tags? i.e The DHCP range has a tag which sets the DNS server to A.B.C, and I want to override it so a particular device gets the DNS server X.Y.Z



Also if that approach is correct; Something I noticed is that when creating a host with the default values, even when the lease time is left blank, it saves a default value of 86400 to the dhcp-conf file.
dhcp-host=12:34:56:78:9A:BC,10.0.248.10,ExampleHost,86400With this in place, I would assume that I would be unable to change the duration of all leases after creation by changing the Lease time setting in the static zone as the host-specific settings override it with 86400.
This is somewhat annoying as I'd like to be able to change the lease time for all leases (including reservations) without needing to edit every single reservation individually

Would it be worth opening an issue requesting that values not be set if they are not specified (i.e the Lease Time)?
#2
I suspected that might be the case.

I previously had a different system set up using DNSmasq with dhcp-hosts set up that way; using manually-edited config files where we were able to have hosts reserved/options set without specifying the IP.
But the other admins wouldn't SSH into the system to modify the reservation files, just wanting to do thing through a web GUI. So I got all the requests to add/make changes to the reservations. Thus would be nice to be able to do the same things though the web interface.

Will create GitHub issue
#3
My current setup using ISC for DHCP has several "reservations" that I've create where I assign a hostname based on a MAC address but do not assign it a fixed IP.
This allows for services like PiHole/AdGaurd, and other monitoring to keep track of the device(s) using the known hostname for devices that don't really need a fixed IP.

However when trying to add a host entry to DNSMasq for reservations, this works fine for devices that I give fixed IP addresses, but when trying to create an entry with just a Host and Hardware Address while letting it get an IP address from the DHCP pool, it won't let me create it: saying that "A value is required" for the IP address field.

Is there some way to make this work though the GUI that I'm not aware of?
I know DNSmasq is still pretty early on for OPNSense, only having been released recently. So I don't know if this will change in the future?