Various tftp errors using get and put commands
by JockVSJock from LinuxQuestions.org on (#5E3YJ)
Using RHEL7 for tftp client, not able to put and get a basic text file via tftp. The tftp server is RHEL8 (we have self-support, so don't have the option to open a case).
I've disable SELinux and Firewalld on both server and client.
When using the get command, I'm able to download the text file, but its empty.
When I use the put command for a text file, I get a "client timed out" error.
I tail /var/log/messages and don't see anything odd.
systemd shows both a service and socket are active for tftp
Code:[foo@foo xinetd.d]$ sudo systemctl status tftp.service
tftp.service - Tftp Server
Loaded: loaded (/usr/lib/systemd/system/tftp.service; linked; vendor preset: disabled)
Active: active (running) since Fri 2021-02-12 11:16:31 EST; 6min ago
Docs: man:in.tftpd
Main PID: 8907 (in.tftpd)
Tasks: 1 (limit: 45874)
Memory: 320.0K
CGroup: /system.slice/tftp.service
8907 /usr/sbin/in.tftpd -c -p -s /var/lib/tftpboot
Feb 12 11:16:31 foo systemd[1]: Started Tftp Server.
[foo@foo xinetd.d]$ sudo systemctl status tftp.socket
tftp.socket - Tftp Server Activation Socket
Loaded: loaded (/usr/lib/systemd/system/tftp.socket; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-02-12 11:16:15 EST; 7min ago
Listen: [::]:69 (Datagram)
CGroup: /system.slice/tftp.socket
Feb 12 11:16:15 foo systemd[1]: Stopping Tftp Server Activation Socket.
Feb 12 11:16:15 foo systemd[1]: Listening on Tftp Server Activation Socket.Using ss command from tftp server, show that the port 69 is listening
Code:foo@foo xinetd.d]$ ss -aul | grep :69
UNCONN 0 0 *:69 *:*From the tftp client, I've turned the following on:
Code:status
verbose
tracetftp content lives under /var/lib/tftpboot, I'm wondering if /etc/systemd/system/tftp.service files is correct or not on the tftp server.
Code: 1 [Unit]
2 Description=Tftp Server
3 Requires=tftp.socket
4 Documentation=man:in.tftpd
5
6 [Service]
7 ExecStart=/usr/sbin/in.tftpd -c -p -s /var/lib/tftpboot
8 StandardInput=socket
9
10 [Install]
11 Also=tftp.socket


I've disable SELinux and Firewalld on both server and client.
When using the get command, I'm able to download the text file, but its empty.
When I use the put command for a text file, I get a "client timed out" error.
I tail /var/log/messages and don't see anything odd.
systemd shows both a service and socket are active for tftp
Code:[foo@foo xinetd.d]$ sudo systemctl status tftp.service
tftp.service - Tftp Server
Loaded: loaded (/usr/lib/systemd/system/tftp.service; linked; vendor preset: disabled)
Active: active (running) since Fri 2021-02-12 11:16:31 EST; 6min ago
Docs: man:in.tftpd
Main PID: 8907 (in.tftpd)
Tasks: 1 (limit: 45874)
Memory: 320.0K
CGroup: /system.slice/tftp.service
8907 /usr/sbin/in.tftpd -c -p -s /var/lib/tftpboot
Feb 12 11:16:31 foo systemd[1]: Started Tftp Server.
[foo@foo xinetd.d]$ sudo systemctl status tftp.socket
tftp.socket - Tftp Server Activation Socket
Loaded: loaded (/usr/lib/systemd/system/tftp.socket; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-02-12 11:16:15 EST; 7min ago
Listen: [::]:69 (Datagram)
CGroup: /system.slice/tftp.socket
Feb 12 11:16:15 foo systemd[1]: Stopping Tftp Server Activation Socket.
Feb 12 11:16:15 foo systemd[1]: Listening on Tftp Server Activation Socket.Using ss command from tftp server, show that the port 69 is listening
Code:foo@foo xinetd.d]$ ss -aul | grep :69
UNCONN 0 0 *:69 *:*From the tftp client, I've turned the following on:
Code:status
verbose
tracetftp content lives under /var/lib/tftpboot, I'm wondering if /etc/systemd/system/tftp.service files is correct or not on the tftp server.
Code: 1 [Unit]
2 Description=Tftp Server
3 Requires=tftp.socket
4 Documentation=man:in.tftpd
5
6 [Service]
7 ExecStart=/usr/sbin/in.tftpd -c -p -s /var/lib/tftpboot
8 StandardInput=socket
9
10 [Install]
11 Also=tftp.socket