Skip to content

Instantly share code, notes, and snippets.

View mib1185's full-sized avatar
🤖

Michael mib1185

🤖
  • Germany, Dresden
  • 02:43 (UTC +01:00)
View GitHub Profile
@mib1185
mib1185 / synoautoblock2file.sh
Last active October 2, 2022 06:38
Synology DSM - export blocked ip addresses into a plain text file
outfile="<<full path to output file>>";/bin/sqlite3 /etc/synoautoblock.db 'select IP from AutoBlockIP WHERE 'deny' is 1;' > $outfile ; echo >> $outfile ; chown :users $outfile