I have centos 7 tftp server (yes, I can tftp inside the server itself with no issues...)
Code: Select all
> /usr/sbin/in.tftpd -V
tftp-hpa 5.2, with remap, with tcpwrappers
> tftp -V
tftp-hpa 5.2, with readline
getenforce
Disabled
Code: Select all
systemctl cat tftp
# /usr/lib/systemd/system/tftp.service
[Unit]
Description=Tftp Server
Requires=tftp.socket
Documentation=man:in.tftpd
[Service]
ExecStart=/usr/sbin/in.tftpd -s /var/lib/tftpboot
StandardInput=socket
[Install]
Also=tftp.socket
# /etc/systemd/system/tftp.service.d/override.conf
[Service]
Restart=on-failure
RestartSec=5
Code: Select all
cat /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
Code: Select all
ll -al /var/lib/tftpboot
drwxrwxrwx 2 tftp tftp 140 Sep 7 15:48 ./
drwxr-xr-x. 44 root root 4096 Aug 31 17:56 ../
-rwxrwxrwx 1 tftp tftp 12001280 Jan 9 2018 ap1g2-k9w7-tar.153-3.JF1.tar*
-rwxrwxrwx 1 tftp tftp 10741760 Jan 9 2018 ap3g1-k9w7-tar.153-3.JD11.tar*
-rwxrwxrwx 1 tftp tftp 13 Sep 7 15:48 file1.txt*
-rwxrwxrwx 1 tftp tftp 13 Sep 7 15:48 file2.txt*
-rwxrwxrwx 1 tftp tftp 20 Sep 7 16:32 file3.txt*
-rwxrwxrwx 1 tftp tftp 58 Sep 7 15:48 test.tar*
ll -al /var/lib/ | grep tftp
drwxrwxrwx 2 tftp tftp 140 Sep 7 15:48 tftpboot/
Code: Select all
tftp -v xxx -c get file3.txt
Connected to xxx (xxx), port 69
getting from xxx:file3.txt to file3.txt [netascii]
Received 20 bytes in 0.8 seconds [189 bit/s]
cat file3.txt < file gets created locally on the client with data
Hello file 3
tftp -v xxx -c put file3.txt
Connected to xxx (xxx), port 69
putting file3.txt to xxx:file3.txt [netascii]
Sent 20 bytes in 1.7 seconds [95 bit/s]
# tcpdump on the server from the good client
16:01:41.732402 IP6 (class 0x40, flowlabel 0xd84dd, hlim 62, next-header UDP (17) payload length: 29) xxx.56050 > xxx.ip6.arpa.tftp: [udp sum ok] 21 RRQ "file3.txt" netascii
0x0000: 640d 84dd 001d 113e 2607 2400 0009 2077 d......>&.$....w
0x0010: 0000 0000 0000 000f 2a03 c9c0 0101 0036 ........*......6
0x0020: 0000 0000 0000 0156 daf2 0045 001d 158b .......V...E....
0x0030: 0001 6669 6c65 332e 7478 7400 6e65 7461 ..file3.txt.neta
0x0040: 7363 6969 00 scii.
Code: Select all
tftp -v xxx -c get file3.txt
Connected to xxx (xxx), port 69
getting from xxxt:file3.txt to file3.txt [netascii]
�/|�� < this is not a typo...this is actual output
cat file3.txt < file gets created locally on the client but empty
<....nothing>
tftp -v xxx -c put file3.txt
Connected to xxx (xxx), port 69
putting file3.txt to xxx:file3.txt [netascii]
client: timed out
# tcpdump on the server from the bad client
16:17:55.055495 IP6 (hlim 64, next-header UDP (17) payload length: 29) xxxx.ip6.arpa.55897 > xxx.ip6.arpa.tftp: [udp sum ok] 21 RRQ "file3.txt" netascii
0x0000: 6000 0000 001d 1140 2a03 c9c0 0101 0036 `......@*......6
0x0010: 0000 0000 0000 0012 2a03 c9c0 0101 0036 ........*......6
0x0020: 0000 0000 0000 0156 da59 0045 001d 8bad .......V.Y.E....
0x0030: 0001 6669 6c65 332e 7478 7400 6e65 7461 ..file3.txt.neta
0x0040: 7363 6969 00 scii.
tftp should be very simple... i suspect a client issue but not sure where else to check.
Thank you,
Dave