Skip to content

Commit d0f58a2

Browse files
authored
Update ip-groups-override-rules.md (#680)
change example of override-rules
1 parent 3079aca commit d0f58a2

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

content/includes/nap-waf/config/common/ip-groups-override-rules.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,31 @@ Here is a policy example:
2323
"ip-address-lists": [
2424
{
2525
"name": "standalone",
26-
"description": "This is my list of IP addresses",
2726
"ipAddresses": [
2827
{
29-
"ipAddress": "6.5.3.3/32"
30-
},
31-
{
32-
"ipAddress": "6.5.4.2"
28+
"ipAddress": "1.1.1.1/32"
3329
}
3430
]
3531
}
3632
],
3733
"override-rules": [
3834
{
39-
"name": "myFirstRule",
35+
"name": "myRule1",
4036
"condition": "clientIp.matches(ipAddressLists['standalone'])",
41-
"actionType": "violation",
42-
"violation": {
43-
"block": true,
44-
"alarm": true,
45-
"attackType": {
46-
"name": "Forceful Browsing"
47-
},
48-
"description": "Attempt to access from clientIp",
49-
"rating": 4
50-
}
37+
"actionType": "extend-policy",
38+
"override": {
39+
"policy": {
40+
"enforcementMode": "transparent"
41+
}
42+
}
5143
}
52-
],
44+
]
5345
}
5446
}
5547
```
5648

5749
The previous example policy contains an IP group with the name "standalone", used for the override rule condition "clientIp.matches(ipAddressLists['standalone'])".
58-
The condition means that the rule enforcement is applied when clientIp is matched to one of ipAddresses in ipAddressList with name "standalone".
50+
The condition means that the rule enforcement is applied and override base policy enforcement when clientIp is matched to one of ipAddresses in ipAddressList with name "standalone".
5951
The value used for the override condition must exist and exactly match the name in "ip-address-lists".
6052

6153
#### Possible errors

0 commit comments

Comments
 (0)