OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: rudiratlos63 on December 09, 2022, 12:42:44 PM

Title: tftp not working
Post by: rudiratlos63 on December 09, 2022, 12:42:44 PM
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
Title: Re: tftp not working
Post by: mimugmail on December 09, 2022, 05:31:27 PM
You need to create the working directory. Why do you set localhost?
Title: Re: tftp not working
Post by: rudiratlos63 on December 10, 2022, 09:13:25 AM
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


Title: Re: tftp not working
Post by: Patrick M. Hausen on December 10, 2022, 11:15:56 AM
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.
Title: Re: tftp not working
Post by: rudiratlos63 on December 10, 2022, 12:48:16 PM
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.