Line 41: |
Line 41: |
| End Quote | | End Quote |
| | | |
− | See the section below [[Xt geoip|Installation]] for steps on how to migrate to the new download mechanism.}} | + | See the section below [[Xt geoip#installation|Installation]] for steps on how to migrate to the new download mechanism.}} |
| | | |
| <!-- add a description here --> This contribs installs xtables-addons [http://xtables-addons.sourceforge.net/geoip.php (http://xtables-addons.sourceforge.net/geoip.php]) on SME Server 9.x. | | <!-- add a description here --> This contribs installs xtables-addons [http://xtables-addons.sourceforge.net/geoip.php (http://xtables-addons.sourceforge.net/geoip.php]) on SME Server 9.x. |
Line 50: |
Line 50: |
| Sign up for a MaxMind account (no purchase required) https://dev.maxmind.com/geoip/geoip2/geolite2/ | | Sign up for a MaxMind account (no purchase required) https://dev.maxmind.com/geoip/geoip2/geolite2/ |
| | | |
− | Important - Note your login details and in particular your AccountID | + | Important - Note your login details and in particular your AccountID and LicenceKey |
| | | |
− | Go to Services My Licence key and generate a licence key, carefully note the key details, multiple keys may be created. | + | Go to Services My Licence key and generate a licence key, carefully note the key details, multiple keys may be created, these details are also used in the smeserver-geoip contrib. |
| | | |
| The following config property keys and values will be used to set the geoip config db for ongoing updates see below | | The following config property keys and values will be used to set the geoip config db for ongoing updates see below |
Line 62: |
Line 62: |
| you might need to update to last smeserver-yum >= 2.4.0-23 or you will get an error because of missing GPG key. | | you might need to update to last smeserver-yum >= 2.4.0-23 or you will get an error because of missing GPG key. |
| | | |
− | A configuration db needs to be created with following keys and properties: | + | A configuration db may already be present from another contrib, check for its existence |
| + | |
| + | # config show geoip |
| + | geoip=service |
| + | status=enabled |
| + | |
| + | If it does exists and the LicenseKey and AccountID are NOT present perform the following |
| + | db configuration setprop geoip LicenseKey "YOUR LIC KEY" AccountID "YOUR ACCT ID" |
| + | |
| + | If the configuration db is not present it needs to be created with following keys and properties: |
| db configuration set geoip service status enabled LicenseKey "YOUR LIC KEY" AccountID "YOUR ACCT ID" | | db configuration set geoip service status enabled LicenseKey "YOUR LIC KEY" AccountID "YOUR ACCT ID" |
| | | |
Line 103: |
Line 112: |
| | | | | |
| |coma separated strings | | |coma separated strings |
− | |list of 2 letters countries to block for the global filter. If empty the global filter is deactivated. | + | |list of 2 letters countries to block for the global filter. If empty the global filter is deactivated, max of 50 countries. |
| |- | | |- |
| |GeoIP | | |GeoIP |
Line 151: |
Line 160: |
| |A1 | | |A1 |
| |coma separated strings | | |coma separated strings |
− | |list of 2 letters countries to block for this specific service. If empty the global filter is deactivated. | + | |list of 2 letters countries to block for this specific service. If empty the global filter is deactivated, max of 50 countries |
| |- | | |- |
| |XTGeoipRev | | |XTGeoipRev |