Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.12 KB

wifiRuleToggle

This app interacts with your router running on OpenWRT firmware using JSON RPC.

More details about OpenWRT UCI can be found here: https://wiki.openwrt.org/doc/uci

This is a simple app which I created while learning Ionic 2, Angular and Cordova.

What it does

This app toggles the state, on / off, of a rule that you configure on your router using the web interface.

How to use

If you wish to use this app, then you must configure these 4 things in 'router-channel.ts' file:
  • url - This points to the router's IP. Example: http://192.168.0.1
  • adminUserName - This is your admin user name
  • adminPassword - This is your corresponding admin password
  • ruleIndex - This is the index of the firewall (traffic) rule that you have already must have configured on your router

For me, the rule was configured to "deny" any access to internet for a specified MAC address. The default state of the rule is configured to be "off". Thus this app behaves accordingly.

Hope this application helps you in understanding how to use JSON RPC to interact with UCI of OpenWRT.