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
#!/bin/bash | |
# UPPERCASE space-separated country codes to ACCEPT | |
ALLOW_COUNTRIES="FR CH DE US" | |
LOGDENY_FACILITY="authpriv.notice" | |
TOKEN="token from ipinfo" | |
if [ $# -ne 1 ]; then | |
echo "Usage: `basename $0` <ip>" 1>&2 | |
exit 0 # return true in case of config issue |