You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/console/service_api/integrations.md
+47-4Lines changed: 47 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,54 @@ For some constructors, the integrations can generate vendor-specific format, see
19
19
20
20
For all the other providers, the `plain_text` format consists of one ip per line, and should be supported by most devices. If a specific format is missing, reach out to us and we'll help you support it!
21
21
22
-
## Dealing with blocklist size limits
22
+
## Managing integrations size limits with pagination
23
23
24
-
Some providers have technical limits on the number of IPs they can pull at once. That's why we recommand to monitor the number of IPS returned by the integration and use the pagination feature if needed. For this, you can use the page and page_size query parameters in the URL.
24
+
Some firewalls or security devices impose strict limits on how many IP addresses can be imported or processed from an external blocklist. When a blocklist exceeds these limits, it can lead to incomplete imports or failures during updates. To address this, CrowdSec integrations support pagination, allowing you to fetch IPs in manageable chunks.
You can then use the page parameter to get the next page of IPs.
28
+
Pagination ensures that large blocklists are retrieved and processed efficiently by splitting them into smaller segments. This helps:
29
29
30
+
* Avoid exceeding the maximum number of entries a firewall can handle per list.
31
+
* Maintain reliable updates without API timeouts.
32
+
* Improve performance when synchronizing IPs from CrowdSec.
33
+
34
+
### How pagination works
35
+
36
+
You can control pagination using two query parameters in the integration API URL:
37
+
38
+
*`page`: The current page number (starting from 1).
39
+
*`page_size`: The number of IP addresses to include per page.
40
+
41
+
Example request:
42
+
43
+
```
44
+
GET https://admin.api.crowdsec.net/v1/integrations/123/content?page=1&page_size=1500
45
+
```
46
+
47
+
* The above request retrieves the first 1,500 IPs in the list.
48
+
* To fetch the next batch, increment the page parameter:
49
+
50
+
```
51
+
GET https://admin.api.crowdsec.net/v1/integrations/123/content?page=2&page_size=1500
52
+
```
53
+
54
+
Repeat this process until no new results are returned.
55
+
56
+
### Example use case (Palo Alto firewall)
57
+
58
+
A Palo Alto firewall may limit external dynamic lists between 50,000 and 150,000 entries depending on the model. If your CrowdSec blocklist exceeds this limit, you can set `page_size` to 50,000 and iterate through pages until all IPs are retrieved.
59
+
60
+
1. Start with `page=1` and `page_size=50000`.
61
+
2. Add the dynamic list to the firewall.
62
+
3. Increment the `page` parameter and add the new dynamic list.
63
+
4. Repeat until all IPs are processed.
64
+
65
+
66
+
### Pro Tip
67
+
68
+
When you know the maximum number of entries your device can handle, and you want to calculate the number of pages needed, you will also need to know the total number of IPs in your integration. You can get this information from the [integration details page](https://app.crowdsec.net/blocklists/integrations), where you can find the "Total IPs" count. Then, use the following formula:
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/checkpoint.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,10 @@ Accessobserv2,192.168.38.188,IP,high,high,AB,C&C server IP
98
98
The format is as follows: UNIQ-NAME , VALUE , TYPE , CONFIDENCE , SEVERITY , PRODUCT , COMMENT
99
99
:::
100
100
101
+
## Manage integration size limits with pagination
102
+
103
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
104
+
101
105
## Contribute to this documentation
102
106
103
107
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/cisco.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,11 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
61
61
192.168.38.186
62
62
```
63
63
64
+
## Manage integration size limits with pagination
65
+
66
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
67
+
68
+
64
69
## Contribute to this documentation
65
70
66
71
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/f5.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@ The CrowdSec blocklist will be in F5 format, with formatted data per line. Here
63
63
The format is as follows: IP, Mask, WL/BL, Category
64
64
:::
65
65
66
+
## Manage integration size limits with pagination
67
+
68
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
69
+
66
70
## Contribute to this documentation
67
71
68
72
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/fortinet.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
60
60
192.168.38.186
61
61
```
62
62
63
+
## Manage integration size limits with pagination
64
+
65
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
66
+
63
67
## Contribute to this documentation
64
68
65
69
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/juniper.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,10 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
108
108
192.168.38.186
109
109
```
110
110
111
+
## Manage integration size limits with pagination
112
+
113
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
114
+
111
115
## Contribute to this documentation
112
116
113
117
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
118
+
115
119
## Contribute to this documentation
116
120
117
121
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/opnsense.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,10 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
78
78
192.168.38.186
79
79
```
80
80
81
+
## Manage integration size limits with pagination
82
+
83
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
84
+
81
85
## Contribute to this documentation
82
86
83
87
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/paloalto.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,10 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
107
107
192.168.38.186
108
108
```
109
109
110
+
## Manage integration size limits with pagination
111
+
112
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
113
+
110
114
## Contribute to this documentation
111
115
112
116
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/integrations/pfsense.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,10 @@ The CrowdSec blocklist will be in plain text format, with one IP address per lin
78
78
192.168.38.186
79
79
```
80
80
81
+
## Manage integration size limits with pagination
82
+
83
+
If you want to learn how to manage integration size limits with pagination, please refer to the [Managing integrations size limits with pagination](console/service_api/integrations.md#managing-integrations-size-limits-with-pagination) section.
84
+
81
85
## Contribute to this documentation
82
86
83
87
Since CrowdSec is a community-driven project, we welcome contributions to this documentation. If you have any instructions or tips that you would like to share with the community, please feel free to open a pull request on our [GitHub repository](https://github.com/crowdsecurity/crowdsec-docs)
0 commit comments