Skip to main content

TFTP Server - How to install to your web server

Here's a quick tutorial on how to install TFTP (trivial file transfer protocol) server.

Login as root
Run command  yum install tftp-server to install the TFTP server
Edit the configuration file, vi /etc/xinetd.d/tftp, and you will some the following.
# default: off
# description: The tftp server serves files using the trivial file transfer 
#       protocol.  The tftp protocol is often used to boot diskless 
#       workstations, download configuration files to network-aware printers, 
#       and to start the installation process for some operating systems.
service tftp
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = yes
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4

Change disable = yes to disable = no to enable the tftp server

Start the TFTP server, run the command:
/sbin/service xinetd start

The default folder is /var/lib/tftpboot

Now let's test to get a file from your TFTP server
tftp GET test ; this command will get a test file from TFTP server

By the way, you can use to check if your UDP port 69 is open.

Here's my source:

When you first run the tftp get test_file, you see a similar error as shown below.

Error on server : File not found
Connect request failed.

Go back to the configuration file, run vi /etc/xinetd.d/tftp and update the server arguments

server_args             = -c -s /tftpboot

Try it again, you will now be able to download the test_file.
Although tftpd is installed correctly, the firewall is not allowing outgoing connections. It appears that the ip_conntrack_tftp kernel module would need to be installed for tftp connections to completely work. Unfortunately, this cannot be installed on a VPS server; a dedicated server would be required.

Alternative Solution for VPS server:
Disable CSF (firewall front-end software). Please note, disabling firewall is not recommended.


Windows 7 Professional for TFTP client
VPS server for testing TFTP server
Solarwind free tool for TFTP server and client

Thank you.

If this helped you, please take the time to share this post by sharing using Google+, Facebook, Twitter, or LinkedIn


Popular posts from this blog

VMware ESXi to add storage

Have you tried to add storage in your VMware environment after the initial setup and configuration? In my case, I needed to add storage for more space to copy virtual machine files. This is also the same approach to access a USB drive to import a vmx and vmdk files (virtual machine and data storage). For this article, I will provide a step by step procedure on how to add your USB drive from one of your Windows Server (or workstation). Let's use a Windows Server 2003 for reading your USB drive. By default, the NFS service is not enable. So, you have to add this service first. Go to Start , Control Panel , Add or Remove Programs , Add/Remove Windows Components , Other Network and Print Services , and select all for Microsoft Services for NFS . You asked, Why enable NFS Service? The VMware is based using Linux, so you need to enable NFS service to share your network drive or folder. Share a USB drive or folder. Open your Windows Explorer and browse your USB drive. In your

Office365 - This resource doesn't accept meetings longer than 1440 minutes

When you create a meeting schedule for number of days , you will see an error  "This resource doesn't accept meetings longer than 1440 minutes". By default the mailbox or room was set for a maximum limit of 1440 minutes. Here's how you can disable this limit. Login to the Office 365 Administration Console In Microsoft Office 365 Exchange, click on Manage . In Manage My Orgnization , click the drop down arrow, and click on Select on Another User . This will prompt you to select the mailbox or room to manage. Select a Mailbox or Room , click OK . In Option, click on Settings. In Scheduling Options, un-check the "Limit meeting duration", then click on Save. That's all. You can now schedule a meeting or reserve a room for number of days. Hope this help you. If this helped you, please take the time to share this post by sharing using Google+, Facebook, Twitter, or LinkedIn

Out of Office Reply for Termed Employee

This is a sample Out of Office message that I used for termed employees, unless HR staff specified a different message. === Example for KING.NET Employee === John Doe (employee or consultant)  is no longer with KING.NET effective  June 1, 2013  (termination date). For matters relating to " Project Name here " please direct your concerns to  John Smith at  [email protected] (Manager or Supervisor) . For all other matters, please direct your email to Mary Smith HR at [email protected]. Please call our main office 703-345-6789 if you have other concerns. Thank you. === End of message === I posted this article year 2008 from my old blog. If this helped you, please take the time to share this post by sharing using Google+, Facebook, Twitter, or LinkedIn