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