#OpenWrt_1900AC ##Setting up coovachilli in openwrt for Captive portal application
- ir a 192.168.1.1 y terminar wizard
- conectividad
- actualización del firmware del router
- manual < openwrt-15.05-mvebu-armada-xp-linksys-mamba-squashfs-factory.img
ir a http://192.168.1.1
- cambiar password
- acceder ssh
- opkg update
- opkg install librt
- opkg install libpthread
- opkg install kmod-tun
- opkg install coova-chilli
- opkg install haserl
- opkg install iwinfo
https://github.com/lbriones/OpenWrt_1900AC/blob/master/etc/chilli/config https://github.com/lbriones/OpenWrt_1900AC/blob/master/etc/chilli/www/coova.html https://github.com/lbriones/OpenWrt_1900AC/blob/master/etc/init.d/chilli https://github.com/lbriones/OpenWrt_1900AC/blob/master/etc/rc.local https://github.com/lbriones/OpenWrt_1900AC/blob/master/etc/crontabs/root https://github.com/lbriones/OpenWrt_1900AC/tree/master/root
- chmod +x sendData.sh
- chmod +x startSendData
- chmod +x updateRouter.sh
- chmod +x /etc/init.d/chilli
- mv config /etc/chilli/config
- mv coova.html /etc/chilli/www/
- mv chilli /etc/init.d/
- mv rc.local /etc/
- mv root /etc/crontabs/
- /etc/init.d/chilli restart
- /etc/init.d/chilli enable
- reboot
- section=$(uci add network interface)
- uci rename network."$section"='chilli'
- uci set network.chilli.type=bridge
- uci set network.chilli.proto=static
- uci set network.chilli.ipaddr='192.168.100.1'
- uci set network.chilli.netmask='255.255.255.0'
- uci commit network
- uci add wireless wifi-iface >/dev/null
- uci set wireless.@wifi-iface[0].ssid='Admin WiFi'
- uci set wireless.@wifi-iface[0].encryption=psk
- uci set wireless.@wifi-iface[0].key="123456789"
- uci set wireless.@wifi-iface[1].device=radio0
- uci set wireless.@wifi-iface[1].mode=ap
- uci set wireless.@wifi-iface[1].encryption=none
- uci set wireless.@wifi-iface[1].network=chilli
- uci set wireless.@wifi-iface[1].ssid='WifiGratis'
- uci commit wireless
- uci set wireless.@wifi-device[0].disabled=0
- uci commit wireless
- wifi
- find ./ -type f -exec sed -i -e 's/domain_from/domain_to/g' {} ;