$ sudo mkdir -p /usr/local/tftp
$ sudo sockstat -4lPassword:USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root in.tftpd 48436 4 udp4 192.168.5.1:69 *:*
sudo mkdir -p /usr/local/tftp/pxelinux.cfgsudo nano /usr/local/tftp/pxelinux.cfg/default
$ cd /tmp$ tftp 192.168.5.1tftp> get pxelinux.cfg/defaultReceived 190 bytes in 0.1 secondstftp> quit$ rm default
$ sudo nano /usr/local/tftp/pxelinux.cfg/bsd
$ cd /tmp$ sudo pkg fetch -y syslinux$ sudo mkdir -p /tmp/syslinux$ sudo tar -C /tmp/syslinux -xvf /var/cache/pkg/syslinux-6.03.pkg
$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/core/lpxelinux.0 /usr/local/tftp/pxelinux.0$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/com32/elflink/ldlinux/ldlinux.c32 /usr/local/tftp/$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/com32/menu/vesamenu.c32 /usr/local/tftp/$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/com32/lib/libcom32.c32 /usr/local/tftp/$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/com32/libutil/libutil.c32 /usr/local/tftp/$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/com32/modules/pxechn.c32 /usr/local/tftp/$ sudo cp /tmp/syslinux/usr/local/share/syslinux/bios/memdisk/memdisk /usr/local/tftp/$ sudo rm -r /tmp/syslinux
$ ssh <myuser>@nasip
$ sudo mkdir -p /mnt/Deimos/www/pxe
$ sudo /usr/sbin/chown -R www:www /mnt/Deimos/www/pxe
$ sudo mkdir -p /mnt/Deimos/www/pxe/bsd/fbsd/amd64/12.2-RELEASE/$ sudo fetch https://mfsbsd.vx.sk/files/iso/12/amd64/mfsbsd-12.2-RELEASE-amd64.iso -o /mnt/Deimos/www/pxe/bsd/fbsd/amd64/12.2-RELEASE/mfsbsd.iso$ sudo gzip -9 /usr/local/www/pxe/bsd/fbsd/amd64/12.2-RELEASE/mfsbsd.iso
$ sudo nmap --script broadcast-dhcp-discover[sudo] password for cookiemonster: Starting Nmap 7.60 ( https://nmap.org ) at 2021-10-01 23:13 BSTPre-scan script results:| broadcast-dhcp-discover: | Response 1 of 1: | IP Offered: 192.168.5.189| DHCP Message Type: DHCPOFFER| Server Identifier: 192.168.5.1| IP Address Lease Time: 5m00s| Subnet Mask: 255.255.255.0| Router: 192.168.5.1| Domain Name Server: 192.168.5.1| Domain Name: moomooland| Bootfile Name: pxelinux.0|_ TFTP Server Name: 192.168.5.1WARNING: No targets were specified, so 0 hosts scanned.Nmap done: 0 IP addresses (0 hosts up) scanned in 1.69 seconds
root@OPNsense:/tmp # sudo pkg fetch -y syslinuxUpdating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.pkg: No packages matching 'syslinux' have been found in the repositories
wget https://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/syslinux-6.03.pkg