Statistics
| Branch: | Revision:

ml / tests / nat-test / nat1.startup @ 0b807e3e

History | View | Annotate | Download (206 Bytes)

1
#configure the network interfaces
2
ifconfig eth0 ${HOSTNAME}pub up
3
ifconfig eth1 ${HOSTNAME}priv up
4

    
5
# turn on NAT
6
echo 1 > /proc/sys/net/ipv4/ip_forward
7
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE