Bug Report - crowdsecurity/spksrc-crowdsec GitHub Wiki

CHECK AND REPORT ISSUE

REFERRER

GITHUB MASTER REOSITORY

https://github.com/CyberMind-FR/spksrc-crowdsec

ISSUES

https://github.com/CyberMind-FR/spksrc-crowdsec/issues

> ssh syno

CHECK WORKING STATUS

$ sudo ipset version
$ sudo ipset list
$ sudo cscli metrics

LOG ISSUES

LOG ISSUES COMMON

$ uname -ar
$ cat /etc/synoinfo.conf | grep unique
$ cat /etc/VERSION
$ dmesg

LOG ISSUES CROWDSEC

$ sudo cat /var/log/packages/crowdsec.log
$ sudo cat /var/packages/crowdsec/tmp/log/crowdsec.log

LOG ISSUES CROWDSEC-FIREWALL-BOUNCER

$ sudo cat /var/log/packages/crowdsec-firewall-bouncer.log
$ sudo cat /var/packages/crowdsec/tmp/log/crowdsec-firewall-bouncer.log

AUTO (SCRIPT)

cat << "EOF" > /tmp/log-report_script.sh
#!/bin/bash
# Name - log-report.sh (bash report file names list for debug)
# Author - Gerald KERMA ([email protected]) under GPL v2.x+
# Usage - Read filenames from a text file and take action on $file 
# ----------------------------------------------------------------
set -e
in="${1:-/tmp/log-report_input.txt}"
out="${2:-/tmp/log-report_output.log}"
 
[ ! -f "$in" ] && { echo "$0 - File $in not found."; exit 1; }
while read LINE
do
	## avoid commented filename ##
	[[ $LINE = \#* ]] && continue
	printf "%s\n" "## $LINE"
	bash -c "$LINE"
done < ${in} > $out
EOF
cat << "EOF" > /tmp/log-report_input.txt
# 20220323
# HEAD
date +"%Y-%m-%d"
# HARDWARE
cat /etc/synoinfo.conf | grep unique
# OS
cat /etc/VERSION
uname -ar
# ROOT
ls /var/packages/ -hal
dmesg
lsmod
# SUDO
sudo cat /var/log/packages/crowdsec.log
sudo cat /var/packages/crowdsec/tmp/log/crowdsec.log
sudo cat /var/log/packages/crowdsec-firewall-bouncer.log
sudo cat /var/packages/crowdsec/tmp/log/crowdsec-firewall-bouncer.log
sudo cat /var/log/synopkg.log | grep crowdsec
sudo ipset version
sudo ipset list
sudo cscli metrics
# ENDOFFILE
echo "---END-OF-FILE---"
EOF
. /tmp/log-report_script.sh /tmp/log-report_input.txt /tmp/log-report_output.log

Then upload/share/look at /tmp/log-report_output.log

⚠️ **GitHub.com Fallback** ⚠️