From Fedora Project Wiki


Verify that tftp works without tcp_wrappers and is not affected by its configuration by default


Make sure your favorite software that could be using tcp_wrappers is installed, for example tftp

rpm -q tftp tftp-server

How to test

  1. Check tftp tftp-server is NOT linked against libwrap: ldd /usr/bin/tftp |grep libwrap
  2. Check if /var/lib/tftpboot is present as it's used for TFTP server directory
  3. Execcute sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp
  4. Execute echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt to put a file at /var/lib/tftpboot
  5. Execute echo "get testday.txt" | tftp to get the file from tftp
  6. cat testday.txt to get the text

Expected Results

  1. Step 1 completes without error
  2. Step 2 directory should exist, if not run sudo dnf install -y tftp tftp-server
  3. Step 3 completes without error
  4. Step 5 prints tftp> get testday.txt


Optionally provide hints for exploratory testing.