[PATCH] wg-quick: linux: fix sysctl inside a docker container

Dashamir Hoxha dashohoxha at gmail.com
Thu Oct 15 16:00:56 CEST 2020


In Docker containers you cannot run `sysctl`. So, it is not possible to set
`sysctl -q net.ipv4.conf.all.src_valid_mark=1` from inside the container.
However you can set it when creating the container, with the Docker option:
`--sysctl net.ipv4.conf.all.src_valid_mark=1`

This patch checks first if `net.ipv4.conf.all.src_valid_mark` is already set,
before trying to set it. Otherwise `sysctl` will fail in a docker container,
and `wg-quick` will fail to start the interface.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wg-quick-linux-fix-sysctl-inside-a-docker-container.patch
Type: text/x-patch
Size: 1311 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20201015/28a53a2e/attachment.bin>


More information about the WireGuard mailing list