pam_geoip(8) | pam_geoip(8) |
pam_geoip - GeoIP account management module for (Linux-)PAM
account required pam_geoip.so [system_file=file] [geoip_db=file] [action=name] [language=name] [debug]
The pam_geoip module provides a check if the remote logged in user is logged in from a given location. This is similar to pam_access(8), but uses a GeoIP2 City or GeoIP2 Country database instead of host name / IP matching.
The matching is done on given country and city names or on distance from a given location. With a country database only matches of the countries are possible.
This PAM module provides the account hook only.
If an IP is not found in the GeoIP2 database, the location to match against is set to "UNKNOWN, *", no distance matching is possible for these, of course.
If a file named /etc/security/geoip.SERVICE.conf (with SERVICE being the name of the PAM service) can be opened, this is used instead of the default /etc/security/geoip.conf.
The first matching entry in the geoip.conf(5) file wins, i.e. the action given in this line will be returned to PAM:
These options may be given in the PAM config file as parameters:
NOTE: when a file /etc/security/geoip.SERVICE.conf file is present, this switch is ignored (with "SERVICE" being the name of the PAM service, e.g. "sshd").
The database can contain IPv4 or IPv6 addresses or both.
Amish - GeoIP2 Hanno Hecker - Legacy GeoIP "<vetinari@ankh-morp.org>"
2020-11-19 |