Add subnet for external NAT interface
authorAndy Bavier <acb@cs.princeton.edu>
Mon, 18 May 2009 14:26:14 +0000 (14:26 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Mon, 18 May 2009 14:26:14 +0000 (14:26 +0000)
factory/setup-nat

index e703f5d..9a0c4f5 100755 (executable)
@@ -8,7 +8,7 @@ read KEY
 ETUN0=nat$KEY
 ETUN1=natx$KEY
 ip link add name $ETUN0 type veth peer name $ETUN1
-ifconfig $ETUN1 10.0.$KEY.1 up
+ifconfig $ETUN1 10.0.$KEY.1/24 up
 
 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 iptables -A FORWARD -i eth0 -o $ETUN1 -m state --state RELATED,ESTABLISHED -j ACCEPT