In order to set up
dnsmasq, you must first configure it through
/etc/dnsmasq.conf
. A basic con-
figuration consists of only a few key lines:
# Network interface to handle
interface=eth0
# DHCP options
# IP range to allocate
dhcp-range=192.168.101.100,192.168.101.200,12h
# Gateway to announce to clients
dhcp-option=option:router,192.168.101.1
# DNS servers to announce to clients
dhcp-option=option:dns-server,8.8.8.8,8.8.4.4
# Boot file to announce to clients
dhcp-boot=pxelinux.0
# TFTP options
enable-tftp
# Directory hosting files to serve
tftp-root=/tftpboot/
With
/etc/dnsmasq.conf
configured, you will need to place the installation boot files in the
/tftpboot/
directory. Kali Linux provides a file archive dedicated to this purpose that can be
directly unpacked into
/tftpboot/
. Simply select between 32-bit (i386) and 64-bit (amd64) and
standard or graphical (gtk) install methods for your target machine and choose the appropriate
archive:
è
http://http.kali.org/dists/kali-rolling/main/installer-amd64/current/images/
netboot/gtk/netboot.tar.gz
è
http://http.kali.org/dists/kali-rolling/main/installer-amd64/current/images/
netboot/netboot.tar.gz
è
http://http.kali.org/dists/kali-rolling/main/installer-i386/current/images/
netboot/gtk/netboot.tar.gz
è
http://http.kali.org/dists/kali-rolling/main/installer-i386/current/images/
netboot/netboot.tar.gz
Once you have selected the archive, create
/tftpboot/
, download the archive, and unpack it into
that directory:
#
mkdir /tftpboot
#
cd /tftpboot
#
wget http://http.kali.org/dists/kali-rolling/main/installer-amd64/current/images/
å