From e5a34e0c66fbe870371892674416ca716308448e Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Fri, 24 Oct 2025 06:28:46 +0000 Subject: [PATCH] Initiale Version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Neuer Versuch der WireGuard Lösung --- compose_support.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 compose_support.yaml diff --git a/compose_support.yaml b/compose_support.yaml new file mode 100644 index 0000000..d2fad7b --- /dev/null +++ b/compose_support.yaml @@ -0,0 +1,28 @@ +version: "3.9" + +services: + wireguard: + image: linuxserver/wireguard + container_name: wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Zurich + - SERVERURL=bizmark.ch # public IP + - SERVERPORT=51820 + - PEERS=1 # Anzahl initialer Clients + - PEERDNS=auto + - INTERNAL_SUBNET=10.50.0.0/24 # Subnetz für VPN-Clients + - ALLOWEDIPS=192.168.100.0/24 # Zielnetz, das Clients über VPN erreichen sollen + - PERSISTENTKEEPALIVE_PEERS=all # hält den Tunnel offen (optional) + volumes: + - /opt/wireguard/config:/config + - /lib/modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + net.ipv4.ip_forward: 1 # aktiviert IP-Forwarding im Container + restart: unless-stopped \ No newline at end of file