tftp server question

This forum is for discussion about general software issues.

tftp server question

Postby calzon65 » Wed Jun 11, 2014 10:09 pm

I'm running a BBB with the latest Alarm (3.8.13-26-ARCH) and recently installed the tftp server (pacman -Sy tftp-hpa). The installation was quick and the installation according to the wiki was simple.

1) Create /etc/systemd/system/tftpd.service with:

$this->bbcode_second_pass_code('', '[Unit]
Description=hpa's original TFTP daemon

[Service]
ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
StandardInput=socket
StandardOutput=inherit
StandardError=journal')
2) Then run systemctl enable tftpd.socket and systemctl start tftpd.socket

I verified the /srv/tftp directory exists and its set to 777, if that makes a difference. I created a small 12 character ASCII (not a binary) readable (755) file called sip.ver and placed it in the /srv/tftp directory. To test to see if tftp was running, I ran the following command from Windows.

$this->bbcode_second_pass_code('', 'tftp -i 192.168.179.42 get /srv/tftp/sip.ver

also tried

tftp -i 192.168.179.42 get sip.ver

also tried

tftp 192.168.179.42 get sip.ver
')
That is the IP number of my tftp server. After I execute the tftp command on Windows, I run a ps on my Alarm system to see if I see any activity (e.g., ps -ef | grep tftp) and I see there is some activity, so I know the windows tftp command is contacting my tftp server to some degree because /usr/sbin/in.tftpd doe not "start" until after I send the tftp command from Windows. Im assuming the way tftp server works is it listens for a connect and then starts /usr/sbin/in.tftpd.

$this->bbcode_second_pass_code('', 'root 304 1 0 14:41 ? 00:00:00 /usr/sbin/in.tftpd -s /srv/tftp/
')
So that makes me think the tftp server is running, but back on my Windows system, the tftp command eventually times out and I see "Timeout occurred Connection request failed".

I found a post on the Arch forum from six years ago that someone was telling another person they needed to edit their /etc/hosts.allow file and add a line (in.tftpd:ALL). Since the post was so old, I didn't even know if /etc/hosts.allow was still in use because I don't have that file on my system, however, I did create it and put that line in it.

Yes, the Windows TFTP Client features is active (control panel - programs & features - Turn Windows features on or off)

Except for that post from six years ago, I have not found any other information about configuring a tftp server on Arch or Alarm. I would like to verify my tftp server is working. Can anyone provide some assistance?
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: tftp server question

Postby WarheadsSE » Wed Jun 11, 2014 10:39 pm

Have a look at the service file that comes with the package, see if there is any effective difference
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: tftp server question

Postby calzon65 » Thu Jun 12, 2014 9:09 pm

Quick update .. I was not able to get Windows to use its built in tftp client to work, so I tried another device (Polycom IP550 phone) and it was able to connect to the Alarm tftp server. At least I know the Alarm tftp server is running and working with at lest some tftp clients.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: tftp server question

Postby pepedog » Thu Jun 12, 2014 9:59 pm

dnsmasq has a tftp server, worth trying?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to General

Who is online

Users browsing this forum: No registered users and 20 guests