Skip to content

Instantly share code, notes, and snippets.

@b2nzy
Created November 28, 2024 14:49
Show Gist options
  • Select an option

  • Save b2nzy/9e1586c51e5cb0d32c1e0e39c45b5786 to your computer and use it in GitHub Desktop.

Select an option

Save b2nzy/9e1586c51e5cb0d32c1e0e39c45b5786 to your computer and use it in GitHub Desktop.

OpenWRT netboot.xyz guide

  • SSH into the router.
mkdir -p /tftp
cd /tftp
# Legacy (PCBIOS) iPXE Bootloaders
wget --no-check-certificate https://boot.netboot.xyz/ipxe/netboot.xyz.kpxe
# UEFI iPXE Bootloaders
wget --no-check-certificate https://boot.netboot.xyz/ipxe/netboot.xyz.efi
uci set dhcp.@dnsmasq[0].enable_tftp=1
uci set dhcp.@dnsmasq[0].tftp_root=/tftp
uci set dhcp.@dnsmasq[0].dhcp_boot=netboot.xyz.efi # Change to netboot.xyz.kpxe if using Legacy (PCIBIOS)
uci commit
/etc/init.d/dnsmasq restart

Disable the Local IPv6 DNS server if you are having problems booting iPXE

  • Network -> Interfaces, LAN -> Edit, DHCP Server -> IPv6 Settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment