06-22-2020 05:47 PM
I have a ZBFW policy:
policy-map type inspect mypolicy
class type inspect whitelist
pass
class type inspect everything
inspect
But what if I need to add a new class-map:
policy-map type inspect mypolicy
class type inspect whitelist
pass
class type inspect blacklist
drop
class type inspect everything
inspect
How can I do it without removing mypolicy and recreate it again? If I remove mypolicy, it will also remove its reference within zone pairs. It is a PITA.
06-23-2020 12:46 AM
Hi,
You don't need to remove the policy-map in order to add a class-map. You just need to edit the policy-map, add the class-map and potentially temporarily remove/re-add a class-map until you get the order you desire. Editing the policy-map therefore won't remove the zone-pairs.
HTH
06-23-2020 07:31 AM
You correctly pointed out that I don't need to remove the policy-map.
However, in order do what I want, I still need to remove "class type inspect everything", leaving myself unprotected and also dropping traffic, add "class type inspect blacklist" and add back "class type inspect everything". This will get significantly complicated if I have more than a few classes within policy-map. Is there no way to edit the policy-map by specifying the order?
06-23-2020 10:46 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: