Phone app and iotcloud addition into the fourth benchmark and a few minor stuff
[iot2.git] / iotjava / iotruntime / master / RouterConfig.java
index 392fd74269ce613dec0673cb192aa3cf73cc9cb2..760f3d25dc63d53a18bb5928f0f365941874c975 100644 (file)
@@ -629,6 +629,9 @@ public final class RouterConfig {
                PrintWriter pwConfig = getPrintWriter(strConfigHost);
                // Configure NAT
                pwConfig.println("-t nat -A POSTROUTING -o eth0 -j MASQUERADE");
+               // Add the following 2 lines
+               pwConfig.println("-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT");
+               pwConfig.println("-A FORWARD -i wlan0 -o eth0 -j ACCEPT");
        }
 
        /**