add dnsmasq config

This commit is contained in:
pedro 2024-09-24 12:14:24 -03:00
parent 44be896bb2
commit f888eb39f9
1 changed files with 8 additions and 5 deletions

View File

@ -29,11 +29,14 @@ END
} }
install_tftp() { install_tftp() {
# TODO creo que se puede hacer un fichero de config específico
# podría ser algo como /etc/dnsmasq.conf.d/my-pxe-server ? cat > /etc/dnsmasq.d/pxe-tftp <<END
#backup_file /etc/dnsmasq.conf port=0
cat /etc/exports <<END dhcp-range=${nfs_allowed_lan%/*},proxy
${nfs_path} ${nfs_allowed_lan}(rw,sync,no_subtree_check,no_root_squash) dhcp-boot=pxelinux.0
pxe-service=x86PC,"Network Boot",pxelinux
enable-tftp
tftp-root=/srv/tftp
END END
} }