User Tools

Site Tools


Sidebar

tips:linux:networknamespaces

**This is an old revision of the document!**

Network Namespaces

setup

install netns helper

wget https://raw.githubusercontent.com/Lekensteyn/netns/master/netns -O /bin/netns
chmod +x /bin/nets

uncomment “net.ipv4.ip_forward=1” in /etc/sysctl.d/99-sysctl.conf

enable NAT

iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
iptables-save  > /etc/firewall
tips/linux/networknamespaces.1548340304.txt.gz · Last modified: by scipio