@cryptotaxi247 / infra-1 / commits / 2302ea78

* Remove the WebDSL DNAT.

svn path=/configurations/trunk/tud/; revision=11120

Eelco Dolstra committed Mar 14, 2008 at 12:06 UTC 2302ea780812be48201c877efe987fc58f5e970f
1 file changed -8
cartman.nix
-8
@@ -34,7 +34,6 @@ let
34 jiraJetty = (import ../../services/jira/jira-instance.nix).jetty;
35
36 myIP = "130.161.158.181";
37 - webdslIP = "130.161.158.185";
37
38 in
39
@@ -73,10 +72,6 @@ rec {
72 ipAddress = myIP;
73 subnetMask = "255.255.254.0";
74 }
76 - { name = "eth1:1";
77 - ipAddress = webdslIP;
78 - subnetMask = "255.255.254.0";
79 - }
75 { name = "eth0";
76 ipAddress = machines.cartman.ipAddress;
77 }
@@ -107,9 +102,6 @@ rec {
102 iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
103 iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source ${myIP}
104
110 - # WebDSL server.
111 - iptables -t nat -A PREROUTING -d ${webdslIP} -i eth1 -p tcp --dport 80 -j DNAT --to-destination ${myIP}:8080
112 -
105 echo 1 > /proc/sys/net/ipv4/ip_forward
106 '';
107