add UPnP IGD for automatic port mapping and external address discovery
This commit is contained in:
17
docker-tests/upnp/Dockerfile.router
Normal file
17
docker-tests/upnp/Dockerfile.router
Normal 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"]
|
||||
Reference in New Issue
Block a user