X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=iotjava%2Fiotruntime%2Fmaster%2FRouterConfig.java;h=760f3d25dc63d53a18bb5928f0f365941874c975;hb=1f03a0ea82bcc8ad278e89c478fbf59c1185251b;hp=392fd74269ce613dec0673cb192aa3cf73cc9cb2;hpb=4c116198a80b62ddc11720ef80daa99850facaee;p=iot2.git diff --git a/iotjava/iotruntime/master/RouterConfig.java b/iotjava/iotruntime/master/RouterConfig.java index 392fd74..760f3d2 100644 --- a/iotjava/iotruntime/master/RouterConfig.java +++ b/iotjava/iotruntime/master/RouterConfig.java @@ -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"); } /**