Hello all.
I hope someone can help me understand the cause of the problem.
I have TrueNas scale, traefik and crowdsec containers are installed in Docker. I configured the plugin(crowdsec-bouncer-traefik-plugin) 3 days ago. The dynamic configuration contains the following settings
crowdsec:
plugin:
bouncer:
enabled: true
logLevel: INFO
updateIntervalSeconds: 15
updateMaxFailure: 0
defaultDecisionSeconds: 15
httpTimeoutSeconds: 10
crowdsecMode: stream
crowdsecAppsecEnabled: true
crowdsecAppsecHost: crowdsec:7422
crowdsecAppsecFailureBlock: true
crowdsecAppsecUnreachableBlock: true
crowdsecLapiKey: *********** #
crowdsecLapiHost: crowdsec:8080
crowdsecLapiScheme: http
forwardedHeadersTrustedIPs:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.1.0/24
clientTrustedIPs:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.1.0/24
But yesterday I had to reboot the server, and after that everything stopped working, containers, virtual machine with local DNS. I think the problem is with Crowdsec, because I thought it banned all my local IP addresses and container IP addresses. When trying to run the command “metrics” I see this
admin@truenas[~]$ docker exec crowdsec cscli metrics
level=warning msg="while fetching metrics: executing GET request for URL \"http://0.0.0.0:6060/metrics\" failed: Get \"http://0.0.0.0:6060/metrics\": dial tcp 0.0.0.0:6060: connect: connection refused"
And the same
admin@truenas[~]$ docker exec crowdsec cscli alerts list
level=error msg="error while performing request: dial tcp 0.0.0.0:8080: connect: connection refused; 4 retries left"
level=info msg="retrying in 23 seconds (attempt 2 of 5)"
level=error msg="error while performing request: dial tcp 0.0.0.0:8080: connect: connection refused; 3 retries left"
level=info msg="retrying in 34 seconds (attempt 3 of 5)"
level=error msg="error while performing request: dial tcp 0.0.0.0:8080: connect: connection refused; 2 retries left"
level=info msg="retrying in 63 seconds (attempt 4 of 5)"
level=error msg="error while performing request: dial tcp 0.0.0.0:8080: connect: connection refused; 1 retries left"
level=info msg="retrying in 88 seconds (attempt 5 of 5)"