-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is net.ipv4.conf.all.src_valid_mark
necessary?
#96
Comments
For reference, inside my working pia wireguard container, |
The container uses I'm not sure what |
Interesting. I do notice that in my [[ $proto == -4 ]] && set +e && sysctl -q net.ipv4.conf.all.src_valid_mark=1 &> /dev/null && set -e So it seems not necessarily necessary (for all cases at least) since at least this version allows failure? In any case, I'll ad it to my |
That line in docker-wireguard-pia/Dockerfile Lines 13 to 16 in ecde52f
Previously it would try to set it and fail if privileged mode wasn't enabled, even if it had already been set to 1 on container creation, causing Here's the original line:
|
@thrnz https://www.procustodibus.com/blog/2022/01/wg-quick-firewall-rules/ I think that it was not necessary for me because my system's |
Thanks for the link. It looks like you might have it sussed out. I've had a brief play with Based on this I've clarified the example docker-compose a bit in #97, and I've also adding a warning to the container if |
I am running on kernel version
6.6.8
withoutSYS_MODULE
and without anysysctl
commands in my docker-compose file. Isnet.ipv4.conf.all.src_valid_mark
necessary? Am I loosing out on some functionality by not enabling it? I'm looking to find out ifnet.ipv4.conf.all.src_valid_mark
causes WG to work or not work in a binary fashion, or if it is disabling some but not all functionality.I'm making this issue since there is a comment about
SYS_MODULE
not being needed in newer kernel versions due to the kernel module being loaded already. I'd like to document what conditions makenet.ipv4.conf.all.src_valid_mark
necessary or not.The text was updated successfully, but these errors were encountered: