MyWiFi

Running the configuration script via the web interface of the router

In the configuration procedure of the Hotspot with OpenWrt firmware, in order to send the script you need to turn TCP port 22 to the WAN port of the wireless router.
In some cases, this procedure can be difficult. Let's look at an alternative procedure to run the configuration script without turning the port 22.

We follow the normal OpenWrt firmware configuration procedure but did not send the script.
Now copy following text:

echo '[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { \
wget 'http://app.mywifiservice.com/script/?nasid=XXXXX' -q -O /tmp/setup.sh; chmod 755 /tmp/setup.sh; /tmp/setup.sh; \
}' > /etc/hotplug.d/iface/99-MyWiFi


Taking care to replace "XXXXX" with the nasid of your location, that you can see in the location settings from the MyWiFi Service control panel.

Connect via browser to the web interface of the router at http://192.168.1.100, click on Network | Firewall, and then click Custom Rules.
Paste the script from the clipboard and click "Submit".


Ejecute el script de configuración de la interfaz web OpenWrt


Now connect the internet cable to the WAN port of the HotSpot Router and finally click on System | Reboot | Perform reboot and wait for about 2 minutes (the router will reboot twice).