From Fedora Project Wiki

< User:Sumantrom

Revision as of 03:16, 22 March 2018 by Sumantrom (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  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 127.0.0.1 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

Optional

Optionally provide hints for exploratory testing.