tips:linux:networknamespaces

This is an old revision of the document!


Network Namespaces

install https://raw.githubusercontent.com/Lekensteyn/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.1548340285.txt.gz
  • Last modified: 2019/01/24 15:31
  • by scipio