Skip to content

home1-public/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

Golang implementations of Linux Namespaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%