mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[GH-ISSUE #230] Feature request: Integrated network namespace support (awgnetns --up/down, awgrun) #135
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-linux-kernel-module#135
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?
Originally created by @Vas-Sferd on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/230
Is your feature request related to a problem? Please describe.
Currently, Amnezia‑WG can be used inside a linux network namespace, but this requires a series of manual steps (creating the namespace, moving the interface, configuring IP and routes, etc.) as described in the WireGuard netns documentation.
This works, but it is tedious, error‑prone, and not integrated with the typical
awg-quickworkflow.Also, using
awg-quickinside the main namespace modifies iptables and adds unnecessary complexity.Describe the solution you'd like
I propose adding a dedicated set of tools that make namespace usage seamless like in Android, without touching the host’s iptables and without requiring veth pairs for new netns.
Specifically, I would like to see:
awgnetns-up <awgnetns config name>andawgnetns-down <awgnetns config name>Unit file generation (e.g.,
awgnetns --gen-unit <awgnetns config name>)awgrun <command> [args...]sudo– instead, it would check that the user belongs to a dedicated group (e.g.,awgns) and use a setuid‑enabled binary (similar to howsudoworks) to perform the namespace switch..desktopfiles or launchers – you can simply runawgrun firefoxto launch Firefox inside the VPN namespace. It is more like amnezia-wg for android solution where you can easy specify which app use or even see vpn tunnel or not.Why this is better