Allow SSH access based on GeoIP country
- # apt-get install geoip-database geoip-bin. ...
- # chmod 755 /usr/local/bin/ipfilter.sh. ...
- # cat /etc/hosts.deny | grep sshd. ...
- # cat /etc/hosts.allow | grep sshd. ...
- $ ssh [email protected]. ...
- root@rhel # cat /etc/hosts.allow | grep sshd.