Skip to content

Instantly share code, notes, and snippets.

@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