Files
zigp2p/docker-tests/upnp/Dockerfile.router
Muhammed Tanrıkulu 2fe03cb855 fix MWP hole punch for production use. bind to 0.0.0.0 instead of
published IP, resend packets every 500ms instead of single-shot, fix
Docker iptables-legacy chains so miniupnpd port mapping fully works
without warnings
2026-02-10 11:26:57 -03:00

19 lines
400 B
Docker

# NAT Router with miniupnpd (UPnP IGD only, NAT-PMP disabled)
FROM alpine:3.19
RUN apk add --no-cache \
miniupnpd \
iptables \
iptables-legacy \
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"]