Changes

From Amahi Wiki
Jump to: navigation, search
1,029 bytes added ,  00:09, 3 April 2014
no edit summary
'''NOTE:''' This is an Amahi 6 ONLY feature.
 
This feature allows control of supported routers and firewalls from the Amahi HDA Setup pages, under Setup -> Networking -> Firewall and Settings.
see the example ruby files there (*.rb).
Each module should provide the following ''class '' (not instance methods!) methods:
* '''name''' > String: returns the name of the module, typically the brand name of the models supported by this module, e.g. "D-Link"
* http://www.shorewall.net/
* IPTables, the default linux firewall
 
== Tools ==
 
A useful tool to discover exactly what URLs are being exercised on during development is [http://portswigger.net/suite/ Burp Suite]
 
Quick HOWTO on how to use Burp Suite to see what URLs and form parameters your router requires so that you can put them in your module:
 
* start it with java -jar burpsuite_v1.2.01.jar or however you do it
* on burpsuite, go to the "alerts" tab and make sure the proxy is running on 8080
* all it takes after the proxy is running to use is setup firefox or whatever to use localhost:8080 as the proxy
* then go to the proxy tab, turn on intercept and you will be prompted to either forward or drop every request that firefox makes
* go to your router and set things up to turn on or off the settings you want to research for adding to your module
* what i do is this: i leave intercept off until i am just about to hit the button to accept, then turn it on. and then take a look at the variables being sent
12,424

edits