You are not logged in.
I'm trying to get TFTP set up for an ARM dev board, and need to set up TFTP with some fairly specific options. I have a working setup on my other computer (running Linux Mint), where my /etc/default/tftpd-hpa is:
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/tftpboot/wjko"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="--secure"
I've tried to "port" this config to /etc/conf.d/tftpd on my Arch box like so:
TFTPD_ARGS="--user=nobody --address=[::]:69 --secure /var/tftpboot/wjko"
, and my /usr/lib/systemd/system/tftpd.service looks like:
[Unit]
Description=hpa's original TFTP daemon
After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/tftpd
ExecStart=/usr/bin/in.tftpd --listen $TFTPD_ARGS
[Install]
WantedBy=multi-user.target
When I try to restart it (after a daemon-reload), I get "in.tftpd[7281]: cannot resolve local IPv6 bind address: ::(Name or service not known)" in journalctl -xe. I find this odd, since "cat /proc/<pid>/cmdline" on my working install gives
/usr/sbin/in.tftpd --listen --user tftp --address [::]:69 --secure /var/tftpboot/wjko
I'm aware that there's a way to run tftp with xinetd, but I haven't any luck with that either.
Last edited by wjko (2015-08-08 02:36:29)
Offline
I think you should just stick with the packages defaults and not try to borrow something from another distribution. Arch's tftp starts in /srv/tftp although this can be changed it did use to be /var/tftpboot. Tftp works fine with just the default installation. All you need to do is systemctl enable/start tftpd and place your files in the right place. I especially don't think the ip6 address designation is really needed.
Last edited by nomorewindows (2015-08-07 18:28:23)
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
Just remove '--address [::]:69' option. tftpd listens this port by default.
Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster
Offline
anatolik - thanks for the help, that worked perfectly.
Offline