wireguard-tools icon indicating copy to clipboard operation
wireguard-tools copied to clipboard

Added network namespacing support

Open Manouchehri opened this issue 4 years ago • 2 comments

Originally from https://lists.zx2c4.com/pipermail/wireguard/2020-March/005140.html.

Manouchehri avatar Sep 18 '21 22:09 Manouchehri

@endreszabo Is this the latest version of the patch you have?

Manouchehri avatar Sep 19 '21 06:09 Manouchehri

Hi,

Yes, this is. I'd be happy to finish it sometimes, which is not likely to happen in the forecoming months.

I did not have much time to proceed on with this, especially because I found to use a workaround that works for me perfectly:

# cat hubud0_v4.conf 
#
# Ansible managed -- source at: ***@***.***:wg_s2s_ipv4.conf' last modified on 2021-09-09 14:56:58
#

[Interface]
PrivateKey = [REDACTED]
#PublicKey = [REDACTED]
ListenPort = 27184
Table      = off
PostUp     = ip link set hubud0_v4 netns s2s
PostUp     = ip netns exec s2s ip -4 addr add 44.128.251.181/30 dev hubud0_v4
PostUp     = ip netns exec s2s ip -6 addr add fd4d:4045:e5e8:fbed::1/64 dev hubud0_v4
PostUp     = ip netns exec s2s ip link set hubud0_v4 up

[Peer] # vsh01.hubud0.y7.local
PublicKey = [REDACTED]
Endpoint = [REDACTED]
AllowedIPs = 0.0.0.0/0,::/0

On Sat, Sep 18, 2021 at 23:45:07-0700, David Manouchehri wrote:

@endreszabo Is this the latest version of the patch you have?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/WireGuard/wireguard-tools/pull/10#issuecomment-922424157

endreszabo avatar Sep 19 '21 10:09 endreszabo