Results 1 to 5 of 5

Thread: TFTP Ubuntu 18.04

  1. #1
    Join Date
    Nov 2021
    Beans
    3

    TFTP Ubuntu 18.04

    I have set up tftp server but having trouble testing / accessing from remote platforms
    Setup:

    Code:
    sudo apt update;
    sudo apt install -y tftpd-hpa;
    sudo ufw allow tftp;
    put files in
    /var/lib/tftpboot
    testing from the remote machine times out (firewall disabled)
    Code:
    tftp 109.228.38.69
    tftp> get test.txt
    Transfer timed out.
    tftp>quit
    While testing locally however on the actual server:
    Code:
    tftp 127.0.0.1
    tftp> get test.txt
    Received 11 bytes in 0.0 seconds
    tftp>quit
    The server is hosted on Virtual Private Server with https://www.fasthosts.co.uk/
    UFW status
    69/udp (v6) ALLOW Anywhere (v6)
    EDIT:
    sudo lsof -i:69
    returns
    Code:
    COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    in.tftpd 6874 root    4u  IPv4  90405      0t0  UDP *:tftp   
    in.tftpd 6874 root    5u  IPv6  90406      0t0  UDP *:tftp
    cannot find much about in.tftp - is this a built in service ? Which is better to use and where are its files stored.


  2. #2
    Join Date
    May 2010
    Beans
    3,247

    Re: TFTP Ubuntu 18.04

    Why TFTP? It's unsecure and awful. Is the no score to use SFTP?

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: TFTP Ubuntu 18.04

    It is quite possible that the hosting provider blocks tftp - it's a protocol that's generally only used locally for booting hardware appliances.
    My first step would be to verify that your tftp request packets are actually reaching the server. Use this line to monitor any UDP port 69 packets going over the internet interface (use the correct interface name of course):
    Code:
    sudo tcpdump -nnl -i eth0 udp
    Be aware that the tftp server will choose a different port (not 69) to send its reply from. This can confuse some firewalls.
    Looking at this trace will confirm whether the request is reaching the server, and whether the server is sending a response. This will guide where to investigate further.
    Also, be aware that tftp has no authentication or encryption - the whole world will be able to read all the files on the server. If you really must use tftp over public internet, consider using firewall rules to limit access.
    Last edited by The Cog; November 18th, 2021 at 09:13 PM.

  4. #4
    Join Date
    Nov 2021
    Beans
    3

    Re: TFTP Ubuntu 18.04

    Thanks will look into this, yes its for reflashing hardware devices. They simply need a WAN IP address and a TFTP server with known readonly files

  5. #5
    Join Date
    Nov 2021
    Beans
    3

    Re: TFTP Ubuntu 18.04

    Fair comment, but see below for The Cog comment - it has its uses and security here is not an issue. Its service of specific set Admin placed files, readonly. Basically Trivial files.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •