I'm about to upgrade my (seperate computer) firewall (Going from IPCop to IPFire). I'd like to use PXE to boot the upgrade on the firewall.
I depend on the firewall system for DHCP, so when it's down for reinstallation, nobody will get an IP address.
I think I know the magic to add to dnsmasq.conf
to cause it to serve DHCP, but, I don't see /etc/dnsmasq.conf
. Using locate
says:
$ locate dnsmasq.conf
/etc/dbus-1/system.d/dnsmasq.conf
/snap/core/5548/etc/dbus-1/system.d/dnsmasq.conf
/snap/core/5662/etc/dbus-1/system.d/dnsmasq.conf
/snap/core/5742/etc/dbus-1/system.d/dnsmasq.conf
/usr/share/doc/dnsmasq-base/examples/dnsmasq.conf.example
This is probably due to my use of Network Manager.
I plan to use dhcpd-hpa
to serve the PXE stuff. Are there landmines?
@JackyChan After the
cp /usr/share/doc/dnsmasq-base/examples/dnsmasq.conf.example /etc/dnsmasq.conf
, I didwhile, in another window, did
inotifywatch
detected no accesses.After further research, I put the file (all #comments and blank lines, for now) in
/etc/NetworkManager/dnsmasq.d/dnsmasq.conf
, and ranwhile, in another window, did I
inotifywatch
saw 7 accesses to/etc/NetworkManager/dnsmasq.d/dnsmasq.conf
The directory
/etc/NetworkManager/dnsmasq.d
is wherednsmasq.conf
is sought, for aNetworkManager
controlleddnsmasq