From 90e2bbe0a65bc39802a129311e26b99f32f5d832 Mon Sep 17 00:00:00 2001 From: Bernd Storath <32197462+kaaax0815@users.noreply.github.com> Date: Thu, 21 May 2026 11:59:46 +0200 Subject: [PATCH] patch wg-quick. fix sysctl (#2630) no unneeded sysctl --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5cf0a8d7..b697b9d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ RUN apk add linux-headers build-base go git && \ cd amneziawg-go && \ make && \ cd ../amneziawg-tools/src && \ - make + make && \ + sed -i 's|\[\[ $proto == -4 \]\] && cmd sysctl -q net\.ipv4\.conf\.all\.src_valid_mark=1|[[ $proto == -4 ]] \&\& [[ $(sysctl -n net.ipv4.conf.all.src_valid_mark) != 1 ]] \&\& cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1|' ./wg-quick/linux.bash FROM docker.io/library/node:krypton-alpine AS build-libsql WORKDIR /app @@ -62,7 +63,8 @@ RUN apk add --no-cache \ kmod \ iptables-legacy \ wireguard-go \ - wireguard-tools + wireguard-tools && \ + sed -i 's|\[\[ $proto == -4 \]\] && cmd sysctl -q net\.ipv4\.conf\.all\.src_valid_mark=1|[[ $proto == -4 ]] \&\& [[ $(sysctl -n net.ipv4.conf.all.src_valid_mark) != 1 ]] \&\& cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1|' /usr/bin/wg-quick RUN mkdir -p /etc/amnezia RUN ln -s /etc/wireguard /etc/amnezia/amneziawg