Last active
October 2, 2022 06:38
-
-
Save mib1185/0f49640c14023643c5a4f25c7381f5bd to your computer and use it in GitHub Desktop.
Synology DSM - export blocked ip addresses into a plain text file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tested with DSM 6.2 and 7.0
usage