taskinen/tftp

Unable to connect - "Error: Time out"

Closed this issue · 7 comments

I haven't been able to set up a tftp server in docker. I'm publishing port 69, but every time I try my requests time out.

Am I missing anything?

@ecwyne Are you sure you published the port in UDP mode? By default "-p 69:69" only exposes the port in TCP mode?

Here's my docker-compose.yml. When I test with my tftp client (I'm using ntftp) the request times out

version: "3"
services:
    tftp:
        image: taskinen/tftp
        ports:
          - "69:69/udp"
        volumes:
          - ./apps/updater/build:/var/tftpboot:ro
        restart: unless-stopped

That is really weird. I am too getting a request time out when trying to use a TFTP client, but at the same time my DHCP PXE boot is working fine from the very same TFTP-container! It has to be some weird configuration issue. I am going to take a look into this.

@taskinen were you ever able to figure anything out with this? I'm still having the same issue.

1am commented

Had a similar issue and this answer helped me understand the source https://serverfault.com/a/1019345
So instead of forwarding specific ports i've changed the docker-compose to use network_mode: "host" and it started working.

I have the similar problem
connecting to the container, then running tftp 127.0.0.1 then get ipxe and getting timeouts

running

modprobe -v nf_conntrack_tftp
modprobe -v nf_nat_tftp

on the hosts solved the problem