I'm using DNSMASQ with proxy relay to my router.
This what I tried:
dnsmasq.conf
Code:
#===============================================================
# Configuration file for dnsmasq
#===============================================================
# Disable DNS Server (DNS already provide by the router)
port=0
# Enable DHCP logging
log-dhcp
# Respond to PXE requests for the specified network;
# run as DHCP proxy
dhcp-range=192.168.10.0, proxy
dhcp-option=17,/srv/tftp
#Detect the client architecture
dhcp-match=set:x86PC, option:client-arch, 0 #BIOS
dhcp-match=set:UEFI32, option:client-arch, 6 #UEFI32
dhcp-match=set:UEFI64, option:client-arch, 7 #UEFI64
dhcp-match=set:UEFI64, option:client-arch, 9 #EBC ->use the same bootloader as UEFI64
# Load different PXE boot image depending on client architecture (when runing not as a proxy DHCP)
#dhcp-boot=tag:x86PC, lpxelinux.0
#dhcp-boot=tag:UEFI32, snponly.efi
#dhcp-boot=tag:UEFI64, snponly.efi
dhcp-boot=tag:UEFI64, snponly.efi
# Load different PXE boot image depending on client architecture (when runing as a proxy DHCP)
#pxe-service=tag:x86PC, X86PC, "BIOS Network Boot", lpxelinux.0
#pxe-service=tag:UEFI32, BC_EFI, "UEFI32 Network Boot", snponly.efi
pxe-service=tag:UEFI64, X86-64_EFI, "UEFI64 Network Boot", snponly.efi
## Activate TFTP and set the root directory
enable-tftp
tftp-no-blocksize
tftp-root=/srv/tftp
And new boot efi:
Code:
#!ipxe
dhcp ||
echo ${3}
echo ${root-path}
sleep 5
set menu-url ${root-path}/menu.ipxe
#debugging lines below
echo initrd ${menu-url}
initrd ${menu-url} && goto success || goto failure
:success
echo Success!
sleep 5
goto command
:failure
echo Failure!
sleep 5
:command
#Actual Command...
chain ${menu-url} ||
#For Troubleshooting after Failure...
shell
But no more.
echo ${root-path} show me 192.168.10.1
And echo ${root-path}/menu.ipxe show me /menu.ipxe ... no such file or directory
Thanks