setekhid / go-namespaces

DEPRECATED: Golang implementations of Linux Namespaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Go 100.0%