Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
81fd8a2
feat: Add information about IP groups for NAP-WAF 5.7 (#562)
kudriavitsky May 20, 2025
fddf29b
Merge branch 'main' into nap-release-5.7
ADubhlaoich May 20, 2025
4f69882
chore: add IP intelligence (#616)
mouraddmeiri May 28, 2025
c898f90
feat: Improve NAP-WAF brute force and login-pages documentation (#609)
kudriavitsky May 28, 2025
dfc25ee
Merge branch 'main' into nap-release-5.7
ADubhlaoich May 28, 2025
f5de946
feat: add IP intelligence (new) (#622)
mouraddmeiri May 30, 2025
9db7a2c
Merge branch 'main' into nap-release-5.7
ADubhlaoich May 30, 2025
fe9f6e0
Update configuration.md
ohad-perets Jun 3, 2025
737cef1
add ipi to configuration table
ohad-perets Jun 3, 2025
027a26a
remove xff from ip groups example
ohad-perets Jun 3, 2025
11921cd
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 4, 2025
f4660b8
feat: Remove redundant content
ADubhlaoich Jun 4, 2025
f8fedc0
feat: Update IP feature links
ADubhlaoich Jun 5, 2025
4c2691d
Update install.md (#650)
kudriavitsky Jun 9, 2025
44f4b7d
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 16, 2025
1b319ce
feat: Add placeholder release pages
ADubhlaoich Jun 16, 2025
7d8f146
Update about-4.15.md
ohad-perets Jun 16, 2025
d7808ab
Update about-5.7.md
ohad-perets Jun 16, 2025
337d455
Update about-4.15.md
ohad-perets Jun 16, 2025
4d9b35c
Update about-5.7.md
ohad-perets Jun 16, 2025
3079aca
Update ip-groups-overview.md (#679)
kudriavitsky Jun 17, 2025
d0f58a2
Update ip-groups-override-rules.md (#680)
kudriavitsky Jun 17, 2025
08cd183
Update about-4.15.md
ohad-perets Jun 19, 2025
d449557
Update about-5.7.md
ohad-perets Jun 19, 2025
78fb5cb
feat: Update overview.md (#651)
kudriavitsky Jun 19, 2025
0dfb1c0
Update deploy-on-docker.md
ohad-perets Jun 19, 2025
a5ccc4c
Update deploy-with-helm.md
ohad-perets Jun 19, 2025
3499bbb
Update install.md
ohad-perets Jun 19, 2025
4b9f094
Update overview.md
ohad-perets Jun 19, 2025
85a17f4
Update troubleshooting.md
ohad-perets Jun 19, 2025
73d7f35
Update install.md
ohad-perets Jun 19, 2025
1b584c5
Update upgrade-nap-waf.md
ohad-perets Jun 19, 2025
039a688
Update deploy-with-manifests.md
ohad-perets Jun 19, 2025
df3dbc2
Update install.md
ohad-perets Jun 19, 2025
39360d8
Update about-5.7.md
ohad-perets Jun 19, 2025
50f2177
Update about-4.15.md
ohad-perets Jun 19, 2025
5aa316f
Update ip-groups-override-rules.md
ohad-perets Jun 19, 2025
893d1f7
Update ip-groups-overview.md
ohad-perets Jun 19, 2025
150f76e
Update configuration.md
ohad-perets Jun 19, 2025
1708b8a
Update configuration.md
ohad-perets Jun 19, 2025
b6d0c54
Update configuration.md
ohad-perets Jun 19, 2025
606b0f3
Update ip-groups-override-rules.md (#711)
kudriavitsky Jun 20, 2025
89e9b47
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 20, 2025
118a1fd
Update install.md
ohad-perets Jun 22, 2025
c50d9fd
Update install.md
ohad-perets Jun 22, 2025
08d3d9d
Create build-rocky.md
ohad-perets Jun 22, 2025
eddc8bb
Create build-rocky.md
ohad-perets Jun 22, 2025
e1a561f
Update deploy-with-helm.md
ohad-perets Jun 22, 2025
7eb2004
Update deploy-with-manifests.md
ohad-perets Jun 22, 2025
20d29c1
Update build-rocky.md
ohad-perets Jun 22, 2025
f7122b9
Update build-rocky.md
ohad-perets Jun 22, 2025
f392846
Update deploy-on-docker.md
ohad-perets Jun 22, 2025
7797ada
Update Generated Documentation (#723)
ohad-perets Jun 22, 2025
5cba050
Update about-4.15.md
ohad-perets Jun 22, 2025
2397377
Update about-5.7.md
ohad-perets Jun 22, 2025
13dfebf
feat: Last minute changes for IP intelligence (#722)
mouraddmeiri Jun 23, 2025
0500694
Update policy.json (#724)
kudriavitsky Jun 23, 2025
0ae1680
Update policy.html (#726)
kudriavitsky Jun 23, 2025
f571041
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 23, 2025
3dbf3fe
feat: Update release dates
ADubhlaoich Jun 23, 2025
35af817
Update install.md
ohad-perets Jun 23, 2025
3724435
Merge branch 'nap-release-5.7' of github.com:nginx/documentation into…
ADubhlaoich Jun 23, 2025
9e6ca07
Update about-4.15.md
ohad-perets Jun 23, 2025
09366a0
Update about-5.7.md
ohad-perets Jun 23, 2025
602d7f2
Update ip-intelligence-conf.md
ohad-perets Jun 23, 2025
4c6203f
Update ip-intelligence-conf.md
ohad-perets Jun 23, 2025
b04c275
chore: add manifest and helm vars (#729)
mouraddmeiri Jun 23, 2025
ec943dc
Update install.md
ohad-perets Jun 23, 2025
0d0047a
Update ip-intelligence-conf.md
ohad-perets Jun 23, 2025
b1a03c2
Update content/includes/nap-waf/ip-intelligence.md
ohad-perets Jun 23, 2025
a46dadb
Update content/nap-waf/v4/configuration-guide/configuration.md
ohad-perets Jun 23, 2025
40a7251
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 23, 2025
927aa51
Update content/includes/nap-waf/config/common/ip-intelligence-conf.md
ADubhlaoich Jun 23, 2025
40fe954
feat: Escape JSON properly
ADubhlaoich Jun 23, 2025
8faf586
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 24, 2025
f864dfa
Create forward-proxy-settings
ohad-perets Jun 24, 2025
958f90a
Rename forward-proxy-settings to forward-proxy-settings.md
ohad-perets Jun 24, 2025
51338c2
Create forward-proxy-conf.md
ohad-perets Jun 24, 2025
336b4ec
Update configuration.md
ohad-perets Jun 24, 2025
4dd3f37
Update configuration.md
ohad-perets Jun 24, 2025
e7cb677
Update ip-intelligence-conf.md
ohad-perets Jun 24, 2025
53dbf90
Update forward-proxy-conf.md
ohad-perets Jun 24, 2025
e334c89
Delete content/includes/nap-waf/forward-proxy-settings.md
ohad-perets Jun 24, 2025
d3b81d4
Update forward-proxy-conf.md
ohad-perets Jun 24, 2025
c6d2836
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 24, 2025
e445a42
Update forward-proxy-conf.md
ohad-perets Jun 24, 2025
a6444e3
Merge branch 'main' into nap-release-5.7
ADubhlaoich Jun 24, 2025
b7cfc7c
feat: Update date for releases
ADubhlaoich Jun 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#### IP-Groups feature as part of Override Rules feature.

The Override Rules feature allows you to modify original or parent policy settings.

Rules are defined using specific conditions, which can include an IP group based on the declarative policy JSON schema.

When triggered, the rule is applied to the _clientIp_ attribute using the _matches_ function.

'clientIp.matches(ipAddressLists["standalone"])'

Here is a policy example:

```json
{
"policy": {
"name": "ip_group_override_rule",
"template": {
"name": "POLICY_TEMPLATE_NGINX_BASE"
},
"applicationLanguage": "utf-8",
"caseInsensitive": false,
"enforcementMode": "blocking",
"ip-address-lists": [
{
"name": "standalone",
"description": "This is my list of IP addresses",
"ipAddresses": [
{
"ipAddress": "6.5.3.3/32"
},
{
"ipAddress": "6.5.4.2"
}
]
}
],
"override-rules": [
{
"name": "myFirstRule",
"condition": "clientIp.matches(ipAddressLists['standalone'])",
"actionType": "violation",
"violation": {
"block": true,
"alarm": true,
"attackType": {
"name": "Forceful Browsing"
},
"description": "Attempt to access from clientIp",
"rating": 4
}
}
],
"general": {
"trustXff": true
}
}
}
```

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

#### Possible errors

| Error text | Input | Explanation |
| -----------| ------------- | ------------ |
| _Invalid field invalidList_ | _clientIp.matches(invalidList['standalone']);_ | An incorrect keyword was used instead of _ipAddressLists_ |
| _Invalid value empty string_ | _clientIp.matches(ipAddressLists['']_ | An empty name was provided |
| _Failed to compile policy - 'ipGroupOverridePolicy'_ | _uri.matches(ipAddressLists['standalone']);_ | Used _ipAddressLists_ without the _clientIP_ attribute |



86 changes: 86 additions & 0 deletions content/includes/nap-waf/config/common/ip-groups-overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
IP groups is a feature to organize lists of allowed and forbidden IP addresses across several lists with common attributes.

This allows you to control unique policy settings for incoming requests based on specific IP addresses.

Each IP Group contains a unique name, enforcement type (_always_, _never_ and _policy-default_), and list of IP addresses.


An example of a declarative policy using IP Groups configuration:

```json
{
"policy": {
"name": "IpGroups_policy",
"template": {
"name": "POLICY_TEMPLATE_NGINX_BASE"
},
"applicationLanguage": "utf-8",
"caseInsensitive": false,
"enforcementMode": "blocking",
"ip-address-lists": [
{
"name": "Standalone",
"description": "Optional Description",
"blockRequests": "policy-default",
"setGeolocation": "IN",
"ipAddresses": [
{
"ipAddress": "1.2.3.4/32"
},
{
"ipAddress": "1111:fc00:0:112::2"
}
]
}
]
}
}

```
The example with IP-Group definition in external file external_ip_groups.json:

```json
{
"policy": {
"name": "IpGroups_policy2",
"template": {
"name": "POLICY_TEMPLATE_NGINX_BASE"
},
"applicationLanguage": "utf-8",
"caseInsensitive": false,
"enforcementMode": "blocking",
"ip-address-lists": [
{
"name": "external_ip_groups",
"description": "Optional Description",
"blockRequests": "always",
"setGeolocation": "IL",
"ipAddresses": [
{
"ipAddress": "31.8.194.27"
}
],
"$ref": "file:///tmp/policy/external_ip_groups.json"
}
]
}
}
```
Example of the file external_ip_groups.json

```json
{
"name": "External Ip Groups List",
"description": "Optional Description",
"blockRequests": "always",
"setGeolocation": "IR",
"ipAddresses": [
{
"ipAddress": "66.51.41.21"
},
{
"ipAddress": "66.52.42.22"
}
]
}
```
9 changes: 9 additions & 0 deletions content/nap-waf/v4/configuration-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,15 @@ For the full reference of Override Rules condition syntax and usage see the NGIN

{{< include "nap-waf/config/common/geolocation-override-rules.md" >}}

## IP Groups

### Overview

{{< include "nap-waf/config/common/ip-groups-overview.md" >}}

### IP Groups in Policy Override Rules Conditions

{{< include "nap-waf/config/common/ip-groups-override-rules.md" >}}

## JSON Web Token Protection

Expand Down
10 changes: 10 additions & 0 deletions content/nap-waf/v5/configuration-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,16 @@ For the full reference of Override Rules condition syntax and usage see the NGIN

{{< include "nap-waf/config/common/geolocation-override-rules.md" >}}

## IP Groups

### Overview

{{< include "nap-waf/config/common/ip-groups-overview.md" >}}

### IP Groups in Policy Override Rules Conditions

{{< include "nap-waf/config/common/ip-groups-override-rules.md" >}}

## JSON Web Token Protection

### Overview
Expand Down
Loading