commit 696f790413cba4df4115f3f8bae3914fd526e2b8 Author: Alexander Zhirov Date: Mon Jan 30 17:10:02 2023 +0300 tftp-docker diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8f30c03 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:3.16 +COPY tftp-hpa-5.2-r4.apk /tmp/ +COPY packager-62fdf15d.rsa.pub /etc/apk/keys/ +RUN apk add --no-cache /tmp/tftp-hpa-5.2-r4.apk && rm /tmp/tftp-hpa-5.2-r4.apk +COPY remap.conf /etc/conf.d/ +VOLUME /var/tftpboot +EXPOSE 69/udp +CMD ["sh", "-c", "busybox syslogd -n -O /dev/stdout & in.tftpd -Lvvv --secure /var/tftpboot -m /etc/conf.d/remap.conf"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..f561d44 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# TFTP Docker + +Docker контейнер сервера TFTP с поддержкой [фильтра](remap.conf) diff --git a/packager-62fdf15d.rsa.pub b/packager-62fdf15d.rsa.pub new file mode 100644 index 0000000..3d36590 --- /dev/null +++ b/packager-62fdf15d.rsa.pub @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7X2j1S7QDmBUQLyzytZ2 +GjpYYEgOq7drzyaGeYIL2GY8rm2CytHQxeo2OfSUESUb/sad9kBw2NXlA1AOi/9m +aES25+IxOGa0koBkRm8jmPPm5Wbeh1zqWHIjNH3uaiPPZvgFqUL/boeuRDQ4cDjr +8R3eHSAED+SwmnvSiJCFeMjGfHIduc9k/L7F0l4RSs50WHFwzNXB4xebJnbwCUN1 +c/W4aBCew0k1vzXxVuwe2YpUoeGYo0veNvKX5xKKNMhC6EJoVmjBDcXCOtN+F3GN +vNaUO6JslC7nYAWxK5/CRUuICZajs5/+GaO7/rPC8vGnMGDw9aTOH7bISN+zHDHq +9wIDAQAB +-----END PUBLIC KEY----- diff --git a/remap.conf b/remap.conf new file mode 100644 index 0000000..5696082 --- /dev/null +++ b/remap.conf @@ -0,0 +1,3 @@ +rg \\ / +ri (loader_uefi\/syslinux\.efi).*$ \1 +ri (loader_legacy\/pxelinux\.0).*$ \1 diff --git a/tftp-hpa-5.2-r4.apk b/tftp-hpa-5.2-r4.apk new file mode 100644 index 0000000..74f48e9 Binary files /dev/null and b/tftp-hpa-5.2-r4.apk differ