Setting up linuxserver/netbootxyz docker image and dnsmasq DHCP in proxy mode when your main router has locked DHCP settings
Prerequisites
Docker
is installeddnsmasq
is installed
Steps
1. Start Docker image from linuxserver.io
Head down to linuxserver/netbootxyz and follow the instructions to get a netboot.xyz container up and running.
2. Configuration
/etc/dnsmasq.conf
Full
port=0
interface=eth0
bind-dynamic
log-dhcp
dhcp-authoritative
dhcp-range=192.168.1.0,proxy,255.255.255.0
pxe-service=x86PC, "NETBOOT (BIOS)", "netboot.xyz.kpxe", 192.168.1.253
pxe-service=X86-64_EFI, "NETBOOT (EFI)", "netboot.xyz.efi", 192.168.1.253
Explanations
port=0
- (optional) disable DNS server if not in useinterface=eth0
- (optional) only listen on interfaceeth0
, repeat this line for more interfaces, remove for all interfaceslog-dhcp
- (optional) log DHCP requestsbind-dynamic
- (optional) binds to new interfaces added after startdhcp-authoritative
- prioritize this DHCP server in a networkdhcp-range
- replace192.168.1.0
and255.255.255.0
according to your IP range and subnet, set toproxy
mode to proxy your original DHCP serverpxe-service=x86PC
for BIOS systems, replace192.168.1.253
with the IP of the machine hosting netbootxyzpxe-service=X86-64_EFI
for UEFI systems, replace192.168.1.253
with the IP of the machine hosting netbootxyzenable-tftp
is not included as it already hosted by the Docker container