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
`?listname=foo` - Set the list name to `foo`, by default `listname` is set to `CrowdSec`
337
+
Using on device [MikroTik scripting](https://help.mikrotik.com/docs/display/ROS/Scripting) following is a starting point to download and import the blocklist. Ensure to adjust the [global query parameters](#global-runtime-query-parameters) according to your needs!
Generates a .txt file with all IP addresses (single host and subnets) in the CIDR notation format supported by the Juniper Networks SRX firewall platform.
366
+
367
+
Example:
368
+
```text
369
+
1.2.3.4/32
370
+
4.3.2.1/32
371
+
```
372
+
373
+
#### SRX Dynamic Address configuration sample
374
+
375
+
Using the blocklist on a Juniper SRX requires that the published url ends in .txt. This can be acieved by altering the endpoint config in`cfg.yaml` as follows:
376
+
377
+
Sample `cfg.yaml`
378
+
```yaml
379
+
####
380
+
blocklists:
381
+
- format: juniper # Supported formats are either of "plain_text", "mikrotik", "juniper"
382
+
endpoint: /security/blocklist.txt #Must have .txt for juniper formatter.
383
+
authentication:
384
+
type: none # Supported types are either of "none", "ip_based", "basic"
385
+
user:
386
+
password:
387
+
trusted_ips: # IP ranges, or IPs which don't require auth to access this blocklist
388
+
- 127.0.0.1
389
+
- ::1
390
+
####
391
+
```
392
+
393
+
This can then be configured on the SRX firewall as follows:
394
+
395
+
Sample SRX config:
396
+
```test
397
+
user@srx> show configuration security dynamic-address | display set
398
+
399
+
set security dynamic-address feed-server crowdsec url http://192.168.1.2:41412
400
+
set security dynamic-address feed-server crowdsec update-interval 30
401
+
set security dynamic-address feed-server crowdsec feed-name crowdsec path /security/blocklist.txt
402
+
set security dynamic-address address-name crowdsec-blocklist profile feed-name crowdsec
403
+
```
404
+
405
+
[Further information here](https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/dynamic-address.html)
406
+
407
+
A successful configuration should return a similar result when queried:
408
+
409
+
```text
410
+
user@srx> show security dynamic-address summary
411
+
412
+
413
+
Dynamic-address session scan status : Disable
414
+
Hold-interval for dynamic-address session scan : 10 seconds
0 commit comments