Simple web app for mapping attempted ssh connections to a server.
- Clone repo to webserver root
- Add your ipinfodb.com api key to
get_locations.py, and set paths forips.txtandlocations.json - Copy
read_auth.shto your preferred directory where it will be run by root - Add crontabs for
read_auth.shandget_locations.py. For example:* * * * * /root/read_auth.sh > /var/www/html/ips.txt* * * * * /usr/bin/python3 /var/www/html/get_locations.py > /dev/null
TODO
- Prevent multiple API lookups of the same IP
- Add whitelist for IP ranges or locations
- Improve UI on mobile