Skip to content

Instantly share code, notes, and snippets.

@wention
Created December 4, 2020 03:14
Show Gist options
  • Select an option

  • Save wention/9f2bd317456654c64f404780785c1a32 to your computer and use it in GitHub Desktop.

Select an option

Save wention/9f2bd317456654c64f404780785c1a32 to your computer and use it in GitHub Desktop.
PXE service via dnsmasq
# disable dns service
port=0
# proxy mode
dhcp-range=192.168.31.254,proxy
enable-tftp
tftp-root=/tftpboot
dhcp-boot=pxelinux.0
pxe-service=x86PC,"PXELINUX (BIOS)",pxelinux
pxe-service=X86-64_EFI,"PXELINUX (EFI)",bootx64.efi
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-match=set:efi-x86_64,option:client-arch,9
dhcp-match=set:efi-x86,option:client-arch,6
dhcp-match=set:bios,option:client-arch,0
dhcp-boot=tag:efi-x86_64,bootx64.efi
dhcp-boot=tag:efi-x86,bootai32.efi
dhcp-boot=tag:bios,pxelinux.0
# secure: only serve files owned by the dnsmasq user (root)
#tftp-secure
# enable logging
log-queries
log-dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment