add NAT-PMP for automatic port mapping and external address discovery
This commit is contained in:
16
docker-tests/nat-pmp/Dockerfile.router
Normal file
16
docker-tests/nat-pmp/Dockerfile.router
Normal file
@@ -0,0 +1,16 @@
|
||||
# NAT Router with miniupnpd (NAT-PMP + UPnP IGD)
|
||||
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
|
||||
|
||||
EXPOSE 5351/udp
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user