Easy NAT
Tuesday, December 15th, 2009This is the easy way to give virtual machines access to an external network using iptables.
Warning this is very open and probably shouldnt be used in a production environment.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -j MASQUERADE