Building shell scripts
Does anyone know how to create your own shell script that for example change the rule value from enabled to disabled?? I would like to trigger that script when some ip (for example ip of my gateway) is not available any more, and for result of that i would like to have some rule being disabled so the next rule in order will take place..
I've tried failover methods, but not get them worked, so i would like to try do that manually…
anyone with this kind of knowledge?
I know people have done things of this nature using curl, might search the forum on that to find more info.
Use a php script with the -q argument when calling the interpreter. Include the config.inc file, and set the variable to whatever you need it to be. It will reset to the stored value when the router reboots. The current value will be written to the config if you save any settings.