17 lines
323 B
Docker
17 lines
323 B
Docker
# 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"]
|