Initial commit for archive

This commit is contained in:
Lucas
2025-11-07 16:44:25 +00:00
commit 9cecdd50a2
5 changed files with 41 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
data/

4
Caddyfile Normal file
View File

@@ -0,0 +1,4 @@
http://:80 {
root * /srv
file_server
}

1
create-network Executable file
View File

@@ -0,0 +1 @@
sudo docker network create --subnet=172.23.0.0/16 network-pignon

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
services:
pignon-tablette:
image: caddy:latest
container_name: pignon-tablette
restart: always
volumes:
- /home/lucas/pignon-tablette/data:/srv # Dossier contenant les fichiers statiques
- /home/lucas/pignon-tablette/Caddyfile:/etc/caddy/Caddyfile # Fichier de configuration de Caddy
networks:
network-pignon:
ipv4_address: 172.23.0.3
pignon-vpn:
image: hwdsl2/ipsec-vpn-server
container_name: vpn-pignon
privileged: true
restart: always
environment:
- VPN_IPSEC_PSK=GVFtqyXVfqWsXNZuyTvpgC0pFzcanetS
- VPN_USER=tablette
- VPN_PASSWORD=pignon
- VPN_ENABLE_MODP1024=yes
volumes:
- /lib/modules:/lib/modules:ro
networks:
network-pignon:
ipv4_address: 172.23.0.2
ports:
- 500:500/udp
- 4500:4500/udp
networks:
network-pignon:
external: true

1
redirect-command Normal file
View File

@@ -0,0 +1 @@
docker exec -it vpn-pignon iptables -t nat -A POSTROUTING -s 192.168.43.0/24 -d 172.23.0.0/16 -j MASQUERADE