}
}
+ /**
+ * getAddressListObject() method returns the map from this class
+ * <p>
+ * This method is useful for MAC policy class so that it doesn't have
+ * to query the router again
+ */
+ public Map<String, String> getAddressListObject() {
+
+ return mapMACtoIPAdd;
+ }
+
/**
* getAddressList() method gets list of IP addresses
* <p>
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");
}
/**