Hi All,
I have a need to enable or disable a firewall rule on an interface programatically.
Initially i'd looked at doing an authenticated http get on...
http://x.x.x.x/firewall_rules.php?if=wan&act=toggle&id=0...to toggle the first rule on the wan interface. However once I have done that I need to do a POST request to effectively click the "Apply Changes" button.
So I'm wondering if this is the only way of doing this or am I missing a more elegant way of enabling / disabling a firewall rule from code?
Thanks in Advance :-)