History | View | Annotate | Download (206 Bytes)
#configure the network interfaces
ifconfig eth0 ${HOSTNAME}pub up
ifconfig eth1 ${HOSTNAME}priv up
# turn on NAT
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE