Smart-Router

Build Status

Developement takes place at https://gitlab.cylab.be/cylab/smart-router

Install OpenWRT on Linksys WRT1200AC

Join wireless network

First, we need to reset de router, he will then create a network with an SSID which can be found at the bottom of the router. So we need to connect to the routeur with the IDs found at his bottom. Or simply connect to in by plugging a network cable into it.

The router me have an internet connection for the next step, so we connect his wan interface to a switch or something like thind wich provide dhcp lease and internet connection.

Connect to web interface

https://www.youtube.com/watch?v=YB0VL_YFn9M

Configure OpenWRT

Configure the SmartRouter settings

For the next step, an USB stick formated on ext4(sudo mkfs.ext4 /dev/diskName) must be plugged into the smart-router and the routeur needs to have an internet connection

Format the usb for the OpenWRT config from a debian VM

alt textalt textalt textalt textalt text

USB format

In linux VM (or something else that has gparted) use gparted to create a msdos partion table then next create an ext4 partion of the full size of the USB. Once USB formated and plugged into the router, run :

opkg update 
opkg install ca-bundle ca-certificates curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/RUCD/smart-router/master/docs/setupScripts/setupUSB.sh)"

Once done, reboot the router

You can check the correct previous configuration by doing : alt text

Smart-router setup script

sh -c "$(curl -fsSL https://raw.githubusercontent.com/RUCD/smart-router/master/docs/setupScripts/setupSR.sh)"

Check all output because the script does not ecit if there is an error!

If there is no errors during the script, the smart-routeur is ready !

You can now see alerts @ http://192.168.1.1:81/alerts.txt

Wireless setup script

In case you want a default wireless setting with SSID like the router's hostname and pseudorandom password :

sh -c "$(curl -fsSL https://raw.githubusercontent.com/RUCD/smart-router/master/docs/setupScripts/setupWireless.sh)"

Uninstall

Use this script at your own risks

In case you want to uninstall all things installed, run :

sh -c "$(curl -fsSL https://raw.githubusercontent.com/RUCD/smart-router/master/docs/setupScripts/uninstall.sh)"

If the script fails, run it a second time, must do the job.

Check this project on GitLab