go-namespaces

module
v0.0.0-...-470ea0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2014 License: Apache-2.0

README

go-namespaces

Golang implementations of Linux Namespaces

nspipe

nspipe is a simple example application included with go-namespaces. It lets you bind a socket into a namespace and connect the other end to some other tcp address.

Outside the namespace in a namespace with routable internet networking:

nspipe -t $TARGET_PID

Inside the namespace with private networking:

telnet 127.0.0.1 23

You can also create a new namespace using iproute2

sudo ip netns add test
sudo ip netns exec test netstat -ltup
nspipe -p /var/run/netns/test
sudo ip netns  exec test netstat -ltup

Libraries

Directories

Path Synopsis
+build linux,x86_64 namespace implements low level APIs for moving a process into a given Linux Namespace.
+build linux,x86_64 namespace implements low level APIs for moving a process into a given Linux Namespace.
net implements a simple interface to the network namespaces.
net implements a simple interface to the network namespaces.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL