Skip to content

Commit 79e0e99

Browse files
committed
patch wg-quick to suppress false sysctl warning
1 parent 40aaa18 commit 79e0e99

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN \
1818
curl \
1919
dkms \
2020
git \
21-
gnupg \
21+
gnupg \
2222
ifupdown \
2323
iproute2 \
2424
iptables \
@@ -43,6 +43,7 @@ RUN \
4343
git clone https://git.zx2c4.com/wireguard-tools && \
4444
cd wireguard-tools && \
4545
git checkout "${WIREGUARD_RELEASE}" && \
46+
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 && \
4647
make -C src -j$(nproc) && \
4748
make -C src install && \
4849
echo "**** install CoreDNS ****" && \

Dockerfile.aarch64

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN \
1818
curl \
1919
dkms \
2020
git \
21-
gnupg \
21+
gnupg \
2222
ifupdown \
2323
iproute2 \
2424
iptables \
@@ -43,6 +43,7 @@ RUN \
4343
git clone https://git.zx2c4.com/wireguard-tools && \
4444
cd wireguard-tools && \
4545
git checkout "${WIREGUARD_RELEASE}" && \
46+
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 && \
4647
make -C src -j$(nproc) && \
4748
make -C src install && \
4849
echo "**** install CoreDNS ****" && \

Dockerfile.armhf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN \
1818
curl \
1919
dkms \
2020
git \
21-
gnupg \
21+
gnupg \
2222
ifupdown \
2323
iproute2 \
2424
iptables \
@@ -43,6 +43,7 @@ RUN \
4343
git clone https://git.zx2c4.com/wireguard-tools && \
4444
cd wireguard-tools && \
4545
git checkout "${WIREGUARD_RELEASE}" && \
46+
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 && \
4647
make -C src -j$(nproc) && \
4748
make -C src install && \
4849
echo "**** install CoreDNS ****" && \

README.md

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)