Statistics
| Branch: | Revision:

ml / tests / nat-test / nat11.startup @ a7a1fe71

History | View | Annotate | Download (236 Bytes)

1
#configure the network interfaces
2
ifconfig eth0 ${HOSTNAME}pub up
3
ifconfig eth1 ${HOSTNAME}priv up
4
route add default gw nat1priv
5

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