From Fedora Project Wiki
Description
Verify that tftp works without tcp_wrappers and is not affected by its configuration by default
Setup
Make sure your favorite software that could be using tcp_wrappers is installed, for example tftp
rpm -q tftp tftp-server
How to test
- Check
tftp
tftp-server
is NOT linked against libwrap:ldd /usr/bin/tftp |grep libwrap
- Check if
/var/lib/tftpboot
is present as it's used for TFTP server directory - Execcute
sudo firewall-cmd --add-service=tftp --permanent && firewall-cmd --reload && systemctl enable tftp && systemctl restart tftp
- Execute
echo "TCP Deprecate Test Day" | sudo tee /var/lib/tftpboot/testday.txt
to put a file at/var/lib/tftpboot
- Execute
echo "get testday.txt" | tftp 127.0.0.1
to get the file from tftp - cat testday.txt to get the text
Expected Results
- Step 1 completes without error
- Step 2 directory should exist, if not run
sudo dnf install -y tftp tftp-server
- Step 3 completes without error
- Step 5 prints
tftp> get testday.txt
Optional
Optionally provide hints for exploratory testing.