Skip to content

Commit 2885a42

Browse files
authored
Merge pull request #237 from linuxserver/sysctl
patch wg-quick to suppress false sysctl warning
2 parents 40aaa18 + 82bffa9 commit 2885a42

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
24

35
# set version label
@@ -15,19 +17,16 @@ RUN \
1517
apt-get install -y --no-install-recommends \
1618
bc \
1719
build-essential \
18-
curl \
1920
dkms \
2021
git \
21-
gnupg \
22+
gnupg \
2223
ifupdown \
2324
iproute2 \
2425
iptables \
2526
iputils-ping \
26-
jq \
2727
libc6 \
2828
libelf-dev \
2929
net-tools \
30-
netcat \
3130
openresolv \
3231
perl \
3332
pkg-config \
@@ -43,6 +42,7 @@ RUN \
4342
git clone https://git.zx2c4.com/wireguard-tools && \
4443
cd wireguard-tools && \
4544
git checkout "${WIREGUARD_RELEASE}" && \
45+
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|' src/wg-quick/linux.bash && \
4646
make -C src -j$(nproc) && \
4747
make -C src install && \
4848
echo "**** install CoreDNS ****" && \

Dockerfile.aarch64

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
24

35
# set version label
@@ -15,19 +17,16 @@ RUN \
1517
apt-get install -y --no-install-recommends \
1618
bc \
1719
build-essential \
18-
curl \
1920
dkms \
2021
git \
21-
gnupg \
22+
gnupg \
2223
ifupdown \
2324
iproute2 \
2425
iptables \
2526
iputils-ping \
26-
jq \
2727
libc6 \
2828
libelf-dev \
2929
net-tools \
30-
netcat \
3130
openresolv \
3231
perl \
3332
pkg-config \
@@ -43,6 +42,7 @@ RUN \
4342
git clone https://git.zx2c4.com/wireguard-tools && \
4443
cd wireguard-tools && \
4544
git checkout "${WIREGUARD_RELEASE}" && \
45+
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|' src/wg-quick/linux.bash && \
4646
make -C src -j$(nproc) && \
4747
make -C src install && \
4848
echo "**** install CoreDNS ****" && \

Dockerfile.armhf

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
24

35
# set version label
@@ -15,19 +17,16 @@ RUN \
1517
apt-get install -y --no-install-recommends \
1618
bc \
1719
build-essential \
18-
curl \
1920
dkms \
2021
git \
21-
gnupg \
22+
gnupg \
2223
ifupdown \
2324
iproute2 \
2425
iptables \
2526
iputils-ping \
26-
jq \
2727
libc6 \
2828
libelf-dev \
2929
net-tools \
30-
netcat \
3130
openresolv \
3231
perl \
3332
pkg-config \
@@ -43,6 +42,7 @@ RUN \
4342
git clone https://git.zx2c4.com/wireguard-tools && \
4443
cd wireguard-tools && \
4544
git checkout "${WIREGUARD_RELEASE}" && \
45+
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|' src/wg-quick/linux.bash && \
4646
make -C src -j$(nproc) && \
4747
make -C src install && \
4848
echo "**** install CoreDNS ****" && \

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
332332

333333
## Versions
334334

335+
* **28.01.23:** - Patch wg-quick to suppress false positive sysctl warning.
335336
* **10.01.23:** - Add new var to add `PersistentKeepalive` to server config for select peers to survive server IP changes when domain name is used.
336337
* **26.10.22:** - Better handle unsupported peer names. Improve logging.
337338
* **12.10.22:** - Add Alpine branch. Optimize wg and coredns services.

readme-vars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ app_setup_block: |
127127
128128
# changelog
129129
changelogs:
130+
- { date: "28.01.23:", desc: "Patch wg-quick to suppress false positive sysctl warning." }
130131
- { date: "10.01.23:", desc: "Add new var to add `PersistentKeepalive` to server config for select peers to survive server IP changes when domain name is used." }
131132
- { date: "26.10.22:", desc: "Better handle unsupported peer names. Improve logging." }
132133
- { date: "12.10.22:", desc: "Add Alpine branch. Optimize wg and coredns services." }

0 commit comments

Comments
 (0)