From c44ae324c9be5078320ab8e2d133917f205c9e45 Mon Sep 17 00:00:00 2001 From: Sam Mesterton-Gibbons Date: Mon, 11 May 2020 09:57:47 +0100 Subject: [PATCH] Add a basic dnsmasq config file --- Dockerfile | 3 +++ etc/dnsmasq.conf | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 etc/dnsmasq.conf diff --git a/Dockerfile b/Dockerfile index c296a46..4ed5aa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,6 @@ FROM linuxserver/netbootxyz:latest # Install dnsmasq to play DHCP server RUN apk add --update dnsmasq + +# Copy config files for dnsmasq, and running as a service +COPY etc /etc/ diff --git a/etc/dnsmasq.conf b/etc/dnsmasq.conf new file mode 100644 index 0000000..9cdd29c --- /dev/null +++ b/etc/dnsmasq.conf @@ -0,0 +1,29 @@ +# Don't play DNS server +port=0 + +# Enable verbose DHCP logging +log-dhcp + +# Disable re-use of the DHCP servername and filename fields as extra +# option space. That's to avoid confusing some old or broken DHCP clients. +dhcp-no-override + +# Identify the type of PXE client, and set the boot filename accordingly +# Copied from https://github.com/linuxserver/docker-netbootxyz#dd-wrt +dhcp-match=set:bios,60,PXEClient:Arch:00000 +dhcp-boot=tag:bios,netboot.xyz.kpxe +dhcp-match=set:efi32,60,PXEClient:Arch:00002 +dhcp-boot=tag:efi32,netboot.xyz.efi +dhcp-match=set:efi32-1,60,PXEClient:Arch:00006 +dhcp-boot=tag:efi32-1,netboot.xyz.efi +dhcp-match=set:efi64,60,PXEClient:Arch:00007 +dhcp-boot=tag:efi64,netboot.xyz.efi +dhcp-match=set:efi64-1,60,PXEClient:Arch:00008 +dhcp-boot=tag:efi64-1,netboot.xyz.efi +dhcp-match=set:efi64-2,60,PXEClient:Arch:00009 +dhcp-boot=tag:efi64-2,netboot.xyz.efi + +# Boot the relevant PXE image +pxe-service=x86PC,"Run netboot.xyz, BIOS mode",netboot.xyz.kpxe +pxe-service=X86-64_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi +pxe-service=BC_EFI, "Run netboot.xyz, UEFI mode", netboot.xyz.efi