Is there any way to remove a parameter to a security rule via the CLI? As an example, if I created the following rule:
set rulebase security rules "Test" from inside
Now I want to change inside to outside.
If I use: set rulebase security rules "Test" from outside, I end up with "from [ inside outside ]"
I would prefer not to have to delete the rule and recreate it as I have a bulk change to do and the CLI will be faster than GUI.
As per my knowledge, PAN is not having an option like "replace-pattern" (use in Juniper Firewall) to make any changes, without deleting the same config from CLI. It might come with a future release.
For the time being, you can collect all "set" command from the PAN firewall as mentioned below:
admin@PAN> set cli config-output-format set
Entering configuration mode
Collect the output in a text file/notepad, and modify as per your requirement ( But need to delete the existing one).
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!