mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-13 21:34:42 +00:00
[PR #45] [CHERRY-PICK] wg-quick: linux: do not unnecessarily set sysctl #61
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-tools#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-tools/pull/45
Author: @texhobeer
Created: 4/6/2026
Status: 🔄 Open
Base:
master← Head:dev/cherry-pick-sysctl-bug📝 Commits (1)
6daba8cwg-quick: linux: do not unnecessarily set sysctl📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/wg-quick/linux.bash(+1 -1)📄 Description
Found a bug in some scenario while using docker. There is a fix in original WG-Quick repo for it already. TBH, I don't know the sync process of the repo, probably the maintainers are going to update the repo in the nearest future... Anyway, PTAL
--- Original commit comment ---
In some restrictive container namespaces, sysctl is locked down and can't be changed. This shouldn't be a problem, though, at least in theory, because net.ipv4.conf.all.src_valid_mark is already 1. However, currently wg-quick unconditionally sets it. Instead, check to see if it's already 1 before trying make it 1.
Suggested-by: Dean P dean@apakossa.org
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.