Created
May 5, 2016 09:55
-
-
Save dreamcat4/fe899a9baecb5fed3a3e3749dfd8e61e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user=root | |
| # disable dns server | |
| port=0 | |
| # enable tftp server | |
| enable-tftp | |
| tftp-root=/pxe | |
| # dhcp proxy mode. do not act as the authoratitive dhcp server | |
| dhcp-range=192.168.0.1,proxy,255.255.0.0 | |
| # send disable multicast and broadcast discovery, and to download the boot file immediately | |
| dhcp-option=vendor:PXEClient,6,2b | |
| # set tag ENH if request comes from iPXE (iPXE user class) | |
| # dhcp-match=set:ENH,175 # alternative way, look for option 175 | |
| dhcp-userclass=set:ENH,iPXE | |
| #Here, I define netboot types | |
| #dhcp-vendorclass=set:BIOS,PXEClient:Arch:00006 | |
| #dhcp-vendorclass=set:UEFI,PXEClient:Arch:00007 | |
| # when dhcp-range mode=proxy, the filename to download. here the .0 is ommited as it gets auto-added | |
| # if request comes from firmware, load iPXE via TFTP | |
| #pxe-service=tag:!ENH,tag:BIOS,X86PC, PC-DOS: Chainload Boot - iPXE, undionly.kpxe | |
| #pxe-service=tag:!ENH,tag:UEFI,X86-64_EFI, UEFI: Chainload Boot - iPXE, ipxe.efi | |
| #pxe-service=tag:!ENH,X86-64_EFI, UEFI: Chainload Boot - iPXE, ipxe.efi | |
| pxe-service=tag:!ENH,X86PC, PC-DOS: Chainload Boot - iPXE, undionly.kpxe | |
| # if request comes from iPXE, direct it to boot from boot.ipxe | |
| # dhcp-boot=tag:ENH,http://192.168.69.69/boot.ipxe | |
| #pxe-service=tag:ENH,tag:BIOS,X86PC, PC-DOS: boot.ipxe - iPXE, http://192.168.69.69/boot.ipxe | |
| #pxe-service=tag:ENH,tag:UEFI,X86-64_EFI, UEFI: boot-uefi.ipxe - iPXE, http://192.168.69.69/boot-uefi.ipxe | |
| #pxe-service=tag:ENH,X86-64_EFI, UEFI: boot-uefi.ipxe - iPXE, http://192.168.69.69/boot-uefi.ipxe | |
| pxe-service=tag:ENH,X86PC, PC-DOS: boot.ipxe - iPXE, http://192.168.69.69/boot.ipxe | |
| # optional settings | |
| # move boot server and filename information out of dedicated fields into DHCP options. | |
| # makes extra space in the DHCP packet for other options but can confuse old / broken clients | |
| #dhcp-no-override | |
| # 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
TFTP directory /tftpboot inaccessible: Permission denied <- I cannot solve this.