WireGuard hinzugefügt

This commit is contained in:
borgal
2022-08-30 20:58:07 +00:00
parent 326f616058
commit 4891626d32
4 changed files with 24 additions and 26 deletions

22
vpn/docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
version: "3.8"
services:
wg-easy:
image: weejewel/wg-easy
container_name: wg-easy
environment:
- WG_HOST=${HOST}
- PASSWORD=${PASSWORD}
- WG_DEFAULT_DNS=192.168.0.1, fritz.box
- WG_ALLOWED_IPS=10.8.0.0/24, 192.168.0.0/24
volumes:
- .:/etc/wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1