iankelling.org
/
git
/
newns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48072c2
)
remove duplicate documentation, improve synopsis
author
Ian Kelling
<ian@iankelling.org>
Thu, 19 Jan 2017 11:18:33 +0000
(
03:18
-0800)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 19 Jan 2017 11:18:33 +0000
(
03:18
-0800)
newns
patch
|
blob
|
history
diff --git
a/newns
b/newns
index 4bd1650f7179bddeb1ba0e09888d37d27bf49b31..dbe6598c19f3642b29e698c9d75111fb7a369359 100755
(executable)
--- a/
newns
+++ b/
newns
@@
-38,7
+38,7
@@
fi
usage() {
cat <<EOF
usage: ${0##*/} [OPTS] start|stop NS_NAME
usage() {
cat <<EOF
usage: ${0##*/} [OPTS] start|stop NS_NAME
-Setup
new or systemd created network namespace with nat and
mount namespace
+Setup
& optionally create, a network namespace with nat and a
mount namespace
-c, --create Create a named network namespace. When running from
the same network namespace as pid 1, this is set automatically.
-c, --create Create a named network namespace. When running from
the same network namespace as pid 1, this is set automatically.
@@
-50,9
+50,6
@@
From within a systemd network namespace, nat it to the outside. This
would be called from ExecStartPre, and or subsequent units called with
JoinsNamespaceOf= and PrivateNetwork=true.
would be called from ExecStartPre, and or subsequent units called with
JoinsNamespaceOf= and PrivateNetwork=true.
-If given -c, or if in the default network namespace, create a named
-network namepace natted to the current netns.
-
Uses /24 network, finding the first locally unused one starting at
10.173.0.
Uses /24 network, finding the first locally unused one starting at
10.173.0.