tftp not working

Started by rudiratlos63, December 09, 2022, 12:42:44 PM

Previous topic - Next topic
just installed TFTP plugin on OPNsense 22.7.9_3-amd64

listen addr: 127.0.0.1
enable
and save

service is not starting

logmsg:
Notice   root   /usr/local/etc/rc.d/tftpd: WARNING: failed to start tftpd

You need to create the working directory. Why do you set localhost?

December 10, 2022, 09:13:25 AM #2 Last Edit: December 10, 2022, 09:17:27 AM by rudiratlos63
thanks, I've created this directory and placed a file 'test' into it
IPaddr is the internal IP of my fw. service has started.

I logged into a rpi, which has an ip of the internal net.
follwing test:
tftp <ip_of_int_fw>
tftp> status
Connected to <ip_of_int_fw>
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> get test
Transfer timed out.
tftp> quit

in opnsense logfile:
tftpd: read(ack): Connection refused

fw rule: pls. see attachment



If the tftp service listens to 127.0.0.1 only - instead of e.g 0.0.0.0 - you won't reach it from outside.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

i put 0.0.0.0 into listen address instead of the internal ip fw address.

same result:
tftp> status
Connected to <myintfwip>
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> get test
Transfer timed out.