Hi,
I am trying to build a script that does the following.During the month we insert som firewall filter rules for some clients(due to capping for instance) that only allows him access to some local sites.I am looking to write a script that will(at the end of the month) take away all these rules that was added.
My first problem is that,to remove an entry you need to do a > ip firewall print command first.
Is there any other way to remove firewall filter entries,for instance by specifying the Src address of the rule?
Secondly,if their is no way to do that,I want to do a print first and then remove the entry.The following command works from telnet …
ip firewall filter { print
{… remove 6 }
That removes the entry marked 6,but taking that command and copying it into a script does not work.The script does nothing.Is their any reason for this.syntax maybe?
Any help will be really apreciated.Thanks