From 2ddb4c8c11a4dd12d29ac82a47ebf9630ab9fa9c Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 29 Jun 2023 16:28:48 +0800 Subject: [PATCH] update tftpd --- tftpd/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tftpd/README.md b/tftpd/README.md index f8e44ba..ba05775 100644 --- a/tftpd/README.md +++ b/tftpd/README.md @@ -12,4 +12,16 @@ $ curl -T /tmp/hello.txt tftp://127.0.0.1/ $ curl tftp://127.0.0.1/hello.txt ``` +## realtime logging + +``` +$ docker-compose exec tftpd sh +>>> apk add --no-cache inetutils-syslogd +>>> syslogd +>>> tail -f /var/log/syslog +Jun 29 08:26:30 server syslogd (GNU inetutils 2.4): restart +Jun 29 08:27:28 server in.tftpd[90]: WRQ from 127.0.0.1 filename hello.txt +Jun 29 08:27:34 server in.tftpd[91]: RRQ from 127.0.0.1 filename hello.txt +``` + [1]: https://wiki.archlinux.org/title/TFTP