Closed mmetc closed 10 months ago
I can confirm this works on my box with the following change. My tables are named crowdsec-blacklists and crowdsec6-blacklists.
crowdsec-blacklists
crowdsec6-blacklists
--- a/pkg/pf/metrics.go +++ b/pkg/pf/metrics.go @@ -19,7 +19,7 @@ type counter struct { } var ( - rexpTable = regexp.MustCompile(`^block .* from <(?P<table>\w+)> .*"$`) + rexpTable = regexp.MustCompile(`^block .* from <(?P<table>[^ ]+)>`) rexpMetrics = regexp.MustCompile(`^\s+\[.*Packets: (?P<packets>\d+)\s+Bytes: (?P<bytes>\d+).*\]$`) )
Oh yes, I forgot outside pfsense we use the dash character. Ok. Thanks for testing!
I can confirm this works on my box with the following change. My tables are named
crowdsec-blacklists
andcrowdsec6-blacklists
.