From 56362cbf89011b8b79e0b3027994b3abc6737782 Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Sun, 8 Jan 2017 15:19:06 -0800 Subject: [PATCH] vpnns: Add note on Debian kernel restriction to man page kernel.unprivileged_userns_clone seems to be disabled by default on Debian Unstable. Document the workaround since it is a show-stopper for Debian users. Signed-off-by: Kevin Cernekee --- vpnns.1 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vpnns.1 b/vpnns.1 index 5d4199c9d800..bbf7d3c28160 100644 --- a/vpnns.1 +++ b/vpnns.1 @@ -80,6 +80,17 @@ on network connection changes, the bind mount used by \fBvpnns\fP to override the DNS configuration can be inadvertently deleted. \fBvpnns\fP attempts to work around this by using overlayfs to override \fI/etc/resolv.conf\fP, but that does not work on all systems. +.PP +Some distributions patch their kernels to prevent unprivileged users from +creating namespaces, resulting in a "can't unshare namespaces: Operation not +permitted" error. This security feature can be disabled using the following +command: +.RS +.PP +sudo sysctl \-w kernel.unprivileged_userns_clone=1 +.RE +.PP +To make the change permanent, edit \fI/etc/sysctl.conf\fP. .SH FILES .TP ~/.vpnns\-\fIidentifier\fP -- 2.7.4