TFTP Server on Alpine (Destination unreachable/port unreachable)

Rafael Trevisan

New Member
Joined
Feb 22, 2023
Messages
1
Reaction score
0
Credits
16
Hi,

I'm currently running a TFTP server in a Alpine Linux server, i've configured the TFTP as following:

# /etc/init.d/in.tftpd

# Path to server files from
# Depending on your application you may have to change this.
INTFTPD_PATH="/home/backup/"
#INTFTPD_PATH="/var/tftp/"
#INTFTPD_PATH="/tftpboot/"
#INTFTPD_PATH="/tftproot/"

# For more options, see in.tftpd(8)
# -R 4096:32767 solves problems with ARC firmware, and obsoletes
# the /proc/sys/net/ipv4/ip_local_port_range hack.
# -s causes $INTFTPD_PATH to be the root of the TFTP tree.
# -l is passed by the init script in addition to these options
INTFTPD_OPTS="-l -R 4096:32767 -c -p -vvvvv -u backup -s "/home/backup/""

When i ask to a device send a file to the server, it only creates the file on the server, but does not write on it and after a while sends out a timeout error.
The only thing that i can get from log is this:
Feb 23 09:32:05 csc-backup-new daemon.notice in.tftpd[30269]: WRQ from 172.31.245.6 filename teste.cfg

From packet capture, i can see this, the request is sent, then the device starts to send the data, but the server tries to reach the device with icmp and fails, but that only happens here, in anyother interaction the connection between them is OK, i've already checked the firewall, tried with it disabled.

I've spent days fiddling with the settings to try and make it work, i do not understand why it cant reach the device.

Screenshot_1.png
 

Members online


Top