You are not logged in.

#1 2024-02-18 12:11:30

calrissiano
Member
Registered: 2024-01-03
Posts: 14

Trying to run a TFTP server

Hi everyone

I'm trying to run a TFTP server so I can serve two files to a router attached to my Arch Linux machine via ethernet in order to flash it with OpenWrt (per this guide).

Now I have it running with

sudo systemctl start tftpd.service

and verified with

sudo systemctl status tftpd.service

resulting in:

● tftpd.service - hpa's original TFTP daemon
     Loaded: loaded (/usr/lib/systemd/system/tftpd.service; disabled; preset: disabled)
     Active: active (running) since Sun 2024-02-18 12:59:23 CET; 13s ago
    Process: 19410 ExecStart=/usr/bin/in.tftpd --listen $TFTPD_ARGS (code=exited, status=0/SUCCESS)
   Main PID: 19412 (in.tftpd)
      Tasks: 1 (limit: 18754)
     Memory: 208.0K (peak: 808.0K)
        CPU: 2ms
     CGroup: /system.slice/tftpd.service
             └─19412 /usr/bin/in.tftpd --listen

Feb 18 12:59:23 archbook systemd[1]: Starting hpa's original TFTP daemon...
Feb 18 12:59:23 archbook (in.tftpd)[19410]: tftpd.service: Referenced but unset environment variable evaluates to an empty string: TFTPD_ARGS
Feb 18 12:59:23 archbook systemd[1]: Started hpa's original TFTP daemon.

but I can only get files locally on my machine (verified with another computer on my network).

The config file at /etc/conf.d/tftpd is set to:

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure --create --verbosity 5"

Any advice is appreciated. Thanks!

Offline

#2 2024-02-18 14:25:48

seth
Member
Registered: 2012-09-03
Posts: 51,767

Re: Trying to run a TFTP server

I can only get files locally on my machine (verified with another computer on my network).

And how does "another computer on [your] network" fail?
Is port 69 open to the "other computer"? (nmap)

Offline

Board footer

Powered by FluxBB