This article describes the issue of groups, which are applied under [security policies] , are not creating the required policies for all zones.
A group was formed to create inherit policies from the <*> zone to the test2 zone and the group has to be used to create security policies from all the available zones to the test2 zone.
The Apply-group will create security policies, only if there is a configuration available at the level [security policies from-zone {NAME.EN_US} to-zone test3] , in which {NAME.EN_US} is a zone name. Assume that the following zones are available:
security-zone test1; security-zone test2; security-zone test3;
test { security { policies { from-zone <*> to-zone test3 { policy inherit { match { source-address any; destination-address any; application any; } then { permit; } } } } } }
root@210-1# show security policies from-zone test1 to-zone test3 { policy p1 { match { source-address any; destination-address any; application any; } then { permit; } } } default-policy { permit-all; }
[edit] root@210-1# show security policies | display inheritance | except # | no-more from-zone test1 to-zone test3 { policy p1 { match { source-address any; destination-address any; application any; } then { permit; } } policy inherit { match { source-address any; destination-address any; application any; } then { permit; } } }
The solution is to apply the group at the from-zone [zone1] to-zone [zone2] level, as shown below:
from-zone test1 to-zone test3 { policy p1 { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone test2 to-zone test3 { apply-groups test; } from-zone test3 to-zone test3 { apply-groups test; }
[edit] root@210-1# show security policies | display inheritance | except # | no-more from-zone test2 to-zone test3 { policy inherit { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone test1 to-zone test3 { policy p1 { match { source-address any; destination-address any; application any; } then { permit; } } policy inherit { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone test3 to-zone test3 { policy inherit { match { source-address any; destination-address any; application any; } then { permit; } } }
2020-06-24: Article reviewed for accuracy; no changes required