tftpd-hpa is not working

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
diego_nqn

tftpd-hpa is not working

Post by diego_nqn »

Hi everyone;

I'm trying to get on running my tftp server but no good news at the time.

I followed every instruction on this link : http://spysnooper.blogspot.com.ar/2013/ ... os-de.html but nothing seems to work.

Here is my tftd-hpa config:

Code: Select all

# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp/"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure --create"
here are the permissions on my folder /srv/tftp/ :

Code: Select all

~ $ ls -l /srv/
total 4
drwxrwxrwx 2 tftp tftp 4096 may 23 09:55 tftp
I've check if tftp-hpa is running and this is the outcome:

Code: Select all

~ $ ps -aux | grep tftp
root      2592  0.0  0.0  15180   156 ?        Ss   09:53   0:00 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure --create /srv/tftp/
epen-ing  3548  0.0  0.0  16764  1092 pts/1    S+   10:21   0:00 grep --color=auto tftp
I've even tried with an tftp client on my machine and this is what i've got:

Code: Select all

~ $ tftp 127.0.0.1
tftp> get ET_EL_TRAPIAL.bin
Received 760443 bytes in 0.1 seconds
tftp> q
so, it seems everything is working fine, but my tftp client gives me this:

Code: Select all

#file restore binary-running-config tftp://172.17.203.151:69/ET_EL_TRAPIAL.bin
Restore of backup configuration file will reload the device.
Are you sure (yes/no)? yes
tftp: timeout
What am I doing wrong?

Thank you in advance
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
diego_nqn

Re: tftpd-hpa is not working

Post by diego_nqn »

no one? :(
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

Re: tftpd-hpa is not working

Post by rene »

diego_nqn wrote:no one? :(
So it seems. I cannot reproduce an issue here. That is:

Code: Select all

rene@hp8k ~ $ sudo apt-get install tftpd-hpa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  tftpd-hpa
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/38,2 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package tftpd-hpa.
(Reading database ... 265446 files and directories currently installed.)
Preparing to unpack .../tftpd-hpa_5.2-7ubuntu3_amd64.deb ...
Unpacking tftpd-hpa (5.2-7ubuntu3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up tftpd-hpa (5.2-7ubuntu3) ...
tftpd-hpa start/running, process 4195
Processing triggers for ureadahead (0.100.0-16) ...
rene@hp8k ~ $ cat /etc/default/tftpd-hpa 
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="--secure"
rene@hp8k ~ $ echo FOO | sudo tee /var/lib/tftpboot/FOO
FOO
and

Code: Select all

rene@p55m ~ $ tftp hp8k
tftp> get FOO
Received 5 bytes in 0.0 seconds
tftp> q
rene@p55m ~ $ cat FOO
FOO
Also when I make /etc/default/tftpd-hpa be precisely yours, same non-eventful "Just Works" factor, with in that case FOO in /srv/tftp.

172.17.*.* is a private class B network which isn't very standard. Is your server actually on and responding to that address or is it just some default on your client that you need to change? And no firewall blocking port 69 on the server (or router, if there's one in between)?
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: tftpd-hpa is not working

Post by Spearmint2 »

Code: Select all

aptitude show tftpd-hpa
Make sure you have all the depends and note the suggestion there for syslinx-common.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
Locked

Return to “Beginner Questions”