Hello,
I moved my working traefik and crowdsec compose to a new server. Since then I feel like it is not working anymore. I am using the traefik bouncer plugin.
No external IPs in the dashboard. I can spam refresh my external service and nothing happens.
Can somebody please help me…
cscli metrics
Acquisition Metrics:
╭────────────────────────────────────┬────────────┬──────────────┬────────────────┬────────────────────────┬───────────────────╮
│ Source │ Lines read │ Lines parsed │ Lines unparsed │ Lines poured to bucket │ Lines whitelisted │
├────────────────────────────────────┼────────────┼──────────────┼────────────────┼────────────────────────┼───────────────────┤
│ file:/var/log/auth.log │ 2 │ - │ 2 │ - │ - │
│ file:/var/log/crowdsec/traefik.log │ 2.09k │ 1.82k │ 273 │ 275 │ - │
│ file:/var/log/syslog │ 9.87k │ - │ 9.87k │ - │ - │
╰────────────────────────────────────┴───────────┴──────────────┴────────────────┴────────────────────────┴───────────────────╯
Local API Alerts:
╭────────────────────────────────────────────┬───────╮
│ Reason │ Count │
├────────────────────────────────────────────┼───────┤
│ crowdsecurity/http-admin-interface-probing │ 1 │
│ crowdsecurity/http-crawl-non_statics │ 1 │
│ crowdsecurity/http-cve-2021-41773 │ 8 │
│ crowdsecurity/http-probing │ 7 │
│ crowdsecurity/thinkphp-cve-2018-20062 │ 6 │
│ LePresidente/http-generic-403-bf │ 31 │
│ crowdsecurity/CVE-2017-9841 │ 26 │
│ crowdsecurity/CVE-2022-41082 │ 2 │
╰────────────────────────────────────────────┴───────╯
Local API Decisions:
╭────────────────────────────────────────────┬────────┬────────┬───────╮
│ Reason │ Origin │ Action │ Count │
├────────────────────────────────────────────┼────────┼────────┼───────┤
│ crowdsecurity/netgear_rce │ CAPI │ ban │ 55 │
│ crowdsecurity/ssh-slow-bf │ CAPI │ ban │ 6145 │
│ crowdsecurity/CVE-2023-49103 │ CAPI │ ban │ 134 │
│ firehol_cruzit_web_attacks │ lists │ ban │ 13197 │
│ crowdsecurity/http-open-proxy │ CAPI │ ban │ 2023 │
│ crowdsecurity/f5-big-ip-cve-2020-5902 │ CAPI │ ban │ 3 │
│ crowdsecurity/http-path-traversal-probing │ CAPI │ ban │ 216 │
│ crowdsecurity/http-probing │ CAPI │ ban │ 4776 │
│ crowdsecurity/ssh-bf │ CAPI │ ban │ 5531 │
│ crowdsecurity/CVE-2022-37042 │ CAPI │ ban │ 2 │
│ crowdsecurity/http-crawl-non_statics │ CAPI │ ban │ 398 │
│ crowdsecurity/http-cve-2021-42013 │ CAPI │ ban │ 4 │
│ firehol_greensnow │ lists │ ban │ 4762 │
│ crowdsecurity/CVE-2022-26134 │ CAPI │ ban │ 7 │
│ crowdsecurity/http-cve-2021-41773 │ CAPI │ ban │ 278 │
│ crowdsecurity/http-sensitive-files │ CAPI │ ban │ 400 │
│ crowdsecurity/jira_cve-2021-26086 │ CAPI │ ban │ 27 │
│ ltsich/http-w00tw00t │ CAPI │ ban │ 4 │
│ crowdsecurity/CVE-2019-18935 │ CAPI │ ban │ 14 │
│ crowdsecurity/http-backdoors-attempts │ CAPI │ ban │ 166 │
│ crowdsecurity/http-bad-user-agent │ CAPI │ ban │ 10195 │
│ crowdsecurity/http-cve-probing │ CAPI │ ban │ 17 │
│ crowdsecurity/http-admin-interface-probing │ CAPI │ ban │ 354 │
│ crowdsecurity/fortinet-cve-2018-13379 │ CAPI │ ban │ 16 │
│ crowdsecurity/http-generic-bf │ CAPI │ ban │ 46 │
│ crowdsecurity/http-wordpress-scan │ CAPI │ ban │ 309 │
│ crowdsecurity/ssh-cve-2024-6387 │ CAPI │ ban │ 41 │
│ crowdsecurity/CVE-2022-35914 │ CAPI │ ban │ 5 │
│ crowdsecurity/CVE-2023-22515 │ CAPI │ ban │ 4 │
│ crowdsecurity/apache_log4j2_cve-2021-44228 │ CAPI │ ban │ 77 │
│ crowdsecurity/thinkphp-cve-2018-20062 │ CAPI │ ban │ 138 │
│ firehol_cybercrime │ lists │ ban │ 1798 │
│ crowdsecurity/CVE-2017-9841 │ CAPI │ ban │ 355 │
╰────────────────────────────────────────────┴────────┴────────┴───────╯
Local API Metrics:
╭──────────────────────┬────────┬──────╮
│ Route │ Method │ Hits │
├──────────────────────┼────────┼──────┤
│ /v1/alerts │ GET │ 15 │
│ /v1/decisions/stream │ GET │ 91 │
│ /v1/heartbeat │ GET │ 90 │
│ /v1/watchers/login │ POST │ 17 │
╰──────────────────────┴────────┴──────╯
Local API Bouncers Metrics:
╭─────────────────┬──────────────────────┬────────┬──────╮
│ Bouncer │ Route │ Method │ Hits │
├─────────────────┼──────────────────────┼────────┼──────┤
│ crowdsecBouncer │ /v1/decisions/stream │ GET │ 91 │
╰─────────────────┴──────────────────────┴────────┴──────╯
Local API Machines Metrics:
╭───────────┬───────────────┬────────┬──────╮
│ Machine │ Route │ Method │ Hits │
├───────────┼───────────────┼────────┼──────┤
│ localhost │ /v1/heartbeat │ GET │ 90 │
│ localhost │ /v1/alerts │ GET │ 15 │
╰───────────┴───────────────┴────────┴──────╯
Parser Metrics:
╭──────────────────────────────────┬───────┬────────┬──────────╮
│ Parsers │ Hits │ Parsed │ Unparsed │
├──────────────────────────────────┼───────┼────────┼──────────┤
│ child-crowdsecurity/http-logs │ 5.46k │ 3.97k │ 1.49k │
│ child-crowdsecurity/syslog-logs │ 9.88k │ 9.87k │ 10 │
│ child-crowdsecurity/traefik-logs │ 2.09k │ 1.82k │ 273 │
│ crowdsecurity/dateparse-enrich │ 1.82k │ 1.82k │ - │
│ crowdsecurity/http-logs │ 1.82k │ 1.82k │ - │
│ crowdsecurity/non-syslog │ 2.09k │ 2.09k │ - │
│ crowdsecurity/syslog-logs │ 9.87k │ 9.87k │ 5 │
│ crowdsecurity/traefik-logs │ 2.09k │ 1.82k │ 273 │
│ crowdsecurity/whitelists │ 1.82k │ 1.82k │ - │
╰──────────────────────────────────┴───────┴────────┴─────────╯
Scenario Metrics:
╭──────────────────────────────────────┬───────────────┬───────────┬──────────────┬────────┬─────────╮
│ Scenario │ Current Count │ Overflows │ Instantiated │ Poured │ Expired │
├──────────────────────────────────────┼───────────────┼───────────┼──────────────┼────────┼─────────┤
│ crowdsecurity/http-crawl-non_statics │ - │ - │ 41 │ 212 │ 41 │
│ crowdsecurity/http-probing │ - │ - │ 21 │ 63 │ 21 │
╰──────────────────────────────────────┴───────────────┴───────────┴──────────────┴────────┴─────────╯
Whitelist Metrics:
╭──────────────────────────┬─────────────────────────────┬──────┬─────────────╮
│ Whitelist │ Reason │ Hits │ Whitelisted │
├──────────────────────────┼─────────────────────────────┼──────┼─────────────┤
│ crowdsecurity/whitelists │ private ipv4/ipv6 ip/ranges │ 1820 │ - │
╰──────────────────────────┴─────────────────────────────┴──────┴─────────────╯
PARSERS
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Name 📦 Status Version Local Path
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
crowdsecurity/cri-logs ✔️ enabled 0.1 /etc/crowdsec/parsers/s00-raw/cri-logs.yaml
crowdsecurity/dateparse-enrich ✔️ enabled 0.2 /etc/crowdsec/parsers/s02-enrich/dateparse-enrich.yaml
crowdsecurity/docker-logs ✔️ enabled 0.1 /etc/crowdsec/parsers/s00-raw/docker-logs.yaml
crowdsecurity/geoip-enrich ✔️ enabled 0.4 /etc/crowdsec/parsers/s02-enrich/geoip-enrich.yaml
crowdsecurity/http-logs ✔️ enabled 1.2 /etc/crowdsec/parsers/s02-enrich/http-logs.yaml
crowdsecurity/sshd-logs ✔️ enabled 2.7 /etc/crowdsec/parsers/s01-parse/sshd-logs.yaml
crowdsecurity/syslog-logs ✔️ enabled 0.8 /etc/crowdsec/parsers/s00-raw/syslog-logs.yaml
crowdsecurity/traefik-logs ✔️ enabled 0.9 /etc/crowdsec/parsers/s01-parse/traefik-logs.yaml
crowdsecurity/whitelists ⚠️ enabled,tainted ? /etc/crowdsec/parsers/s02-enrich/whitelists.yaml
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
cscli bouncers list
─────────────────────────────────────────────────────────────────────────────────────────────────
Name IP Address Valid Last API pull Type Version Auth Type
─────────────────────────────────────────────────────────────────────────────────────────────────
TRAEFIK ✔️ 2024-07-22T20:23:04Z api-key
crowdsecBouncer 192.168.144.1 ✔️ 2024-08-02T10:35:05Z Go-http-client 1.1 api-key
─────────────────────────────────────────────────────────────────────────────────────────────────
Here I am not sure if TRAEFIK was working before, but that one is offline.
I am also seeing some error
time="2024-08-02T10:36:41Z" level=warning msg="failed to run filter : invalid character '.' after top-level value (1:1)\n | UnmarshalJSON(evt.Parsed.message, evt.Unmarshaled, \"traefik\") in [\"\", nil]\n | ^" id=still-water name=child-crowdsecurity/traefik-logs stage=s01-parse
time="2024-08-02T10:36:44Z" level=error msg="UnmarshalJSON : invalid character '.' after top-level value" line="192.168.144.1 - - [02/Aug/2024:10:35:44 +0000] \"POST /signalexchange.SignalExchange/ConnectStream HTTP/2.0\" 0 0 \"-\" \"-\" 1792 \"https-netbird-signal@docker\" \"h2c://192.168.144.9:80\" 60001ms"
time="2024-08-02T10:36:44Z" level=warning msg="failed to run filter : invalid character '.' after top-level value (1:1)\n | UnmarshalJSON(evt.Parsed.message, evt.Unmarshaled, \"traefik\") in [\"\", nil]\n | ^" id=still-water name=child-crowdsecurity/traefik-logs stage=s01-parse
Thanks!