https://github.com/sander1/docker-xtables
Docker image with xtables addons used to build GeoIP tables
https://github.com/sander1/docker-xtables
docker-image geoip-tables xtables-addons
Last synced: 8 months ago
JSON representation
Docker image with xtables addons used to build GeoIP tables
- Host: GitHub
- URL: https://github.com/sander1/docker-xtables
- Owner: sander1
- License: mit
- Created: 2019-01-20T17:24:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T15:29:51.000Z (over 6 years ago)
- Last Synced: 2025-04-05T10:41:40.398Z (about 1 year ago)
- Topics: docker-image, geoip-tables, xtables-addons
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker xtables_geoip image
Docker image based on `alpine:3.8` with xtables-addons and [Martin Schmitt's GeoLite2xtables][1] scripts to create legacy format GeoIP database.
__Note:__ As of 7 January 2020, changes have been made to the convert script, see commit [329927a6][2].
## MaxMind license key
Sign up for a MaxMind account and [create a license key][3] to use their GeoLite2 databases. On running the Docker set your license key as an environment variable (`-e LICENSE_KEY=xxxxxxxxxxxxxxxx`, where `xxxxxxxxxxxxxxxx` is your license key).
# Building and running
A volume `/xt_build` can be used to get the results. Replace `[path to folder]` in the following commands with the correct path to the `xt_geoip` on the host machine. On Ubuntu the default GeoIP data folder is `/usr/share/xt_geoip`.
## Build from source and run
```
$ git clone https://github.com/sander1/docker-xtables.git
$ cd docker-xtables
$ docker build --tag=xtables_geoip .
$ docker run -e LICENSE_KEY=xxxxxxxxxxxxxxxx --rm -v [path to folder]:/xt_build xtables_geoip
```
## Pull from Docker Hub and run
```
$ docker run -e LICENSE_KEY=xxxxxxxxxxxxxxxx --rm -v [path to folder]:/xt_build sander1/xtables_geoip
```
[1]: https://github.com/mschmitt/GeoLite2xtables
[2]: https://github.com/sander1/GeoLite2xtables/commit/329927a6b8d2a4f7581b0493c54fc48bc99ecf79
[3]: https://www.maxmind.com/en/accounts/current/license-key