Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

coreos/go-namespaces

Repository files navigation

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

About

DEPRECATED: Golang implementations of Linux Namespaces

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •