add UPnP IGD for automatic port mapping and external address discovery

This commit is contained in:
2026-02-09 17:49:44 -03:00
parent cf5eb0d5fd
commit 33730fed8a
13 changed files with 1364 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
# NAT Router with miniupnpd (UPnP IGD only, NAT-PMP disabled)
FROM alpine:3.19
RUN apk add --no-cache \
miniupnpd \
iptables \
iproute2 \
bash
# Startup script (generates miniupnpd config dynamically)
COPY router-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# UPnP SSDP multicast + HTTP control port
EXPOSE 1900/udp
ENTRYPOINT ["/entrypoint.sh"]