Revision a7a1fe71

View differences:

tests/nat-test/lab.conf
15 15
peer1a[0]=private1
16 16
peer1b[0]=private1
17 17
peer1c[0]=private1
18

  
19
#NAT behind a NAT
20
nat11[0]=private1
21
nat11[1]=private11
22

  
23
#double NATted peers
24
peer11a[0]=private11
25
peer11b[0]=private11
tests/nat-test/nat11.startup
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
tests/nat-test/nat11/README
1
A NAT behind a NAT
tests/nat-test/peer11a.startup
1
#configure the network interfaces
2
ifconfig eth0 $HOSTNAME up
3
route add default gw nat11priv
4

  
5
. /hostlab/CONFIG
tests/nat-test/peer11a/README
1
double NATted peer
tests/nat-test/peer11b.startup
1
#configure the network interfaces
2
ifconfig eth0 $HOSTNAME up
3
route add default gw nat11priv
4

  
5
. /hostlab/CONFIG
tests/nat-test/peer11b/README
1
double NATted peer
tests/nat-test/shared/etc/hosts
11 11

  
12 12
55.55.55.253	stunserver1a
13 13
55.55.55.254	stunserver1b
14

  
15
192.168.1.99	nat11pub
16
192.168.2.1	nat11priv
17

  
18
192.168.2.101	peer11a
19

  
20
192.168.2.102	peer11b

Also available in: Unified diff