Ajout portforwading

This commit is contained in:
iMax 2025-01-21 10:04:16 +01:00
parent f5b3dd4f92
commit 7b6244631d
2 changed files with 6 additions and 1 deletions

View file

@ -15,6 +15,8 @@ services:
- 5001:5001 - 5001:5001
networks: networks:
- mynetwork - mynetwork
depends_on:
- webserver
networks: networks:
mynetwork: mynetwork:

View file

@ -1,4 +1,7 @@
FROM alpine:latest FROM alpine:latest
RUN apk add --no-cache curl iputils-ping RUN apk add --no-cache curl iputils-ping dsniff
RUN echo 1 | tee /proc/sys/net/ipv4/ip_forward
#curl --insecure https://localhost/ #curl --insecure https://localhost/
CMD ["curl", "--insecure", "https://webserver/"] CMD ["curl", "--insecure", "https://webserver/"]