From: Julian Orth <ju.orth@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Re: Setting the transit namespace at runtime
Date: Thu, 6 Sep 2018 22:42:41 +0200 [thread overview]
Message-ID: <CAHijbEWTvJW+FsBS3NTsuF=FXAHJFRqThs5tEiPYwj51V7vzYQ@mail.gmail.com> (raw)
In-Reply-To: <CAHijbEWf1S0Tc+zxZBvmJ0xe5iBU00pOxikejetF8x33Qh=GcQ@mail.gmail.com>
Hi,
After receiving some positive feedback on IRC, I've gone ahead and implemented
this. You can see the code here:
https://github.com/mahkoh/wireguard/commits/transit-namespace
You can test it as follows:
* Create a new netns: ip netns add test
* Enter it: ip netns exec test bash
* Use wg-quick to create a wireguard device
* Try to connect anywhere: It doesn't work
* Set the transit namespace to the init namespace:
wg set wg0 transit-net /proc/1/ns/net
* Try to connect anywhere: It works
I haven't written any documentation yet but I hope that the commits are clear
enough.
Julian
next prev parent reply other threads:[~2018-09-06 20:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-03 16:16 Setting the transit namespace at runtime Julian Orth
2018-09-06 20:42 ` Julian Orth [this message]
2018-09-07 1:29 ` Jason A. Donenfeld
2018-09-07 1:26 ` Jason A. Donenfeld
2018-09-07 19:06 ` Julian Orth
2018-09-09 22:27 ` Jason A. Donenfeld
2018-09-10 7:16 ` Julian Orth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHijbEWTvJW+FsBS3NTsuF=FXAHJFRqThs5tEiPYwj51V7vzYQ@mail.gmail.com' \
--to=ju.orth@gmail.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).