Initial commit for archive
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data/
|
||||
1
create-network
Executable file
1
create-network
Executable file
@@ -0,0 +1 @@
|
||||
sudo docker network create --subnet=172.23.0.0/16 network-pignon
|
||||
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal 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
1
redirect-command
Normal 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
|
||||
Reference in New Issue
Block a user