You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use dnsmasq as DHCP server and want to configure it via foreman smart-proxy. We configured the dhcp feature with the following dhcpopts.conf file which we places in /etc/dnsmasq.d directory.
# define a different lease file
dhcp-leasefile=/var/lib/dnsmasq/dhcp.leases
# ip range served by dhcp server
dhcp-range=10.2.1.1,10.2.1.99,12h ## 12h ist die Lease-Time
# dhcp-options
dhcp-option=3,10.2.1.1 # default gw
dhcp-option=6,10.2.1.1 # nameserver1
The dhcp_dnsmasq smart proxy configuration looks as followed.
Hi, I would like to try and fix this and some other issues when parsing the dhcp-range lines in dnsmasq.conf (e.g. multiple subnets, static subnets, etc.).
I already have a small patch for static subnets, but I would like to also add support for multiple subnets (I see it's marked 'TODO' in the code). @ananace could you point me to the proper foreman-proxy API documentation?
P.S. sorry, I see that you already started to work on these issues in a separate branch.
I don't know if there's any proper API documentation available for the development case, the only documentation I'm aware of is focused more on the use of the smart-proxy. (https://projects.theforeman.org/projects/smart-proxy/wiki)
I unfortunately never really got my own work in the regard finished either, as I could only find very minimal synthetic configuration to base off of, which meant a whole lot of assumptions having to be made.
You're definitely more than welcome to take my code and continue with that if you want to base your development on something, especially if you have some actual configuration which you can use as development/testing data.
We use dnsmasq as DHCP server and want to configure it via foreman smart-proxy. We configured the dhcp feature with the following
dhcpopts.conf
file which we places in/etc/dnsmasq.d
directory.The dhcp_dnsmasq smart proxy configuration looks as followed.
I we now try to get a list of subnets from smart proxy we this output.
And in
proxy.log
we see the following trace.Configuration of
dnsmasq
seems to be ok.The text was updated successfully, but these errors were encountered: