* NATting for the WebDSL server.
svn path=/configurations/trunk/tud/; revision=9961
Eelco Dolstra committed
Dec 21, 2007 at 14:52 UTC
a267b673a44384975890f351e7bcdf9eda9ecb68
1 file changed
+4
-1
main.nix
+4
-1
@@ -60,7 +60,7 @@ rec {
60
subnetMask = "255.255.254.0";
61
}
62
{ name = "eth1:1";
63
- ipAddress = "130.161.159.14";
63
+ ipAddress = "130.161.158.185";
64
subnetMask = "255.255.254.0";
65
}
66
{ name = "eth0";
@@ -93,6 +93,9 @@ rec {
93
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
94
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source 130.161.158.181
95
96
+ # WebDSL server.
97
+ iptables -t nat -A PREROUTING -d 130.161.158.185 -i eth1 -p tcp --dport 80 -j DNAT --to-destination 130.161.158.181:8080
98
+
99
echo 1 > /proc/sys/net/ipv4/ip_forward
100
";
101