High-Performance Threat Intelligence, GeoIP & RBL Orchestration Platform
IPXA is a private-by-design platform for threat intelligence aggregation. It provides instant IP reputation queries, GeoIP lookups, and integration with 20+ Real-time Blackhole Lists (RBLs) & threat feeds, running entirely on your own infrastructure with zero cloud dependencies and sub-5ms response times.
Manage threat feeds, reputation scores, CIDRs, and allowlists through the administrative dashboard.
Detailed inspection covering GeoIP, ASN, threat scoring, and matched RBL reasons.
- π Ultra-low Latency: Sub-5ms local reputation and GeoIP lookups.
- π 100% Private & On-Premise: No queries, metadata, or IP addresses ever leave your network. Air-gap friendly.
- π° Zero Cost & No Rate Limits: Self-hosted alternative to expensive SaaS IP intelligence APIs.
- π‘οΈ RBL Threat Orchestration: Dynamic ingestion of 20+ curated threat and intelligence feeds (FireHOL 1, Cisco Talos, Abuse.ch Feodo & SSLBL, Spamhaus DROP, Emerging Threats, Blocklist.de, GreenSnow, Binary Defense, SANS DShield, Tor Exit Nodes, Cymru Bogons).
- π Edge Server Integrations: Native Lua middleware hooks for Apache (
mod_lua) and OpenResty / Nginx. - π Modern Material UI: High-contrast Dark and Light modes with Angular Material M3 tokens.
- π Multi-Language (i18n): Full runtime internationalization supporting English (
en_US) and Portuguese (pt_BR).
The Admin Dashboard (accessible at /ipxa/admin) provides a high-contrast web interface for:
- Live threat feed orchestration (remote URL sync or manual CIDR embedding).
- Interactive IP intelligence lookup with GeoIP, ASN, risk evaluation, and matched feeds.
- Full session security with JWT authentication.
| Variable | Description | Default Value |
|---|---|---|
ADMIN_EMAIL |
Administrator login email | admin@local |
ADMIN_PASSWORD |
Administrator login password | admin |
API_KEY |
Default API key for service calls | dev |
volumes:
data:
services:
ipxa:
image: liberatti/ipxa:latest
container_name: ipxa
environment:
- API_KEY=dev
# - SECURITY_ENABLED=false
# - IPINFO_TOKEN=
# - IBLOCKLIST_USERNAME=
# - IBLOCKLIST_PASSWORD=
# - MAXMIND_ACCOUNT_ID=
# - MAXMIND_LICENSE_KEY=
volumes:
- data:/data
ports:
- "5001:5000"
deploy:
resources:
limits:
memory: 256M
restart: unless-stoppedRun the container:
docker compose up -dAccess the Dashboard at: http://localhost:5001/ipxa/admin
IPXA provides native middleware hooks to enforce threat blocking at the web server edge before traffic hits backend application workers. Blocked requests return standardized JSON error payloads with unique request_id tracking for security auditing.
Evaluate incoming client IPs in Apache using mod_lua:
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html
# IPXA Access Control Hook
LuaHookAccessChecker /etc/httpd/lua/ipxa.lua ip_info_check
# IPXA JSON Error Handler
Alias /errors /etc/httpd/lua/errors.lua
<Location /errors>
SetHandler lua-script
</Location>
ErrorDocument 403 /errors
</VirtualHost>(See hooks/httpd/ for configuration and Dockerfile).
Ultra-low latency edge inspection with shared in-memory dictionary caching:
http {
lua_package_path "/usr/local/openresty/lualib/ipxa/?.lua;;";
lua_shared_dict ip_cache 10m; # In-memory caching
server {
listen 80;
error_page 403 /lua-error;
location / {
access_by_lua_file /usr/local/openresty/lualib/ipxa/ip_info_check.lua;
}
location = /lua-error {
internal;
content_by_lua_file /usr/local/openresty/lualib/ipxa/errors.lua;
}
}
}(See hooks/openresty/nginx.conf and hooks/openresty/Dockerfile for working examples).
{
"error": "Forbidden",
"status": 403,
"request_id": "b10ed3a6f76ad62a75a956ce3e922336",
"message": "ipxa [block/risk-score]: 172.20.0.1 risk_score=14"
}GET /ipxa/api/ip/info/{address}
Header: x-api-key: dev
Returns complete GeoIP, ASN information, risk score, and matched RBL reasons.
{
"ip": {
"address": "14.152.94.1",
"network": "14.152.80.0",
"prefix": 20,
"version": 4
},
"location": {
"continent": "Asia",
"country_code": "CN",
"country_name": "China"
},
"organization": {
"asn_name": "CT-DONGGUAN-IDC CHINANET Guangdong province network",
"asn_number": 134763
},
"security": {
"reasons": [
"rbl:firehol_level1"
],
"risk_score": 9,
"trusted": false
}
}GET /ipxa/api/ip/check/{address}
Simplified response focused on threat reputation and trigger list.
{
"ip": "14.152.94.1",
"risk_score": 9,
"reasons": [
"rbl:firehol_level1"
]
}GET /ipxa/api/ip/quick/{address}
Optimized for firewalls and proxies. Returns risk score in JSON and response headers:
x-risk-score: 9x-country-code: CNx-trusted: False
{
"risk_score": 9
}Feeds can be configured via JSON files in config/ or dynamically edited in the Admin Dashboard:
| Field | Description |
|---|---|
name |
Human-friendly identifier for the feed |
slug |
Unique internal identifier |
type |
reputation (threat scoring) or bypass (allowlisting) |
format |
cdir_text (plain text URL), cdir_gz (compressed URL), or embedded (manual CIDR list) |
source |
Public download URL (when format is remote) |
data |
Array of CIDRs / IPs (when format is embedded) |
risk_score |
Weighted score contribution (0-10) |
update_interval |
Automatic synchronization interval (hourly, daily) |
- FireHOL Level 1: Curated threat and attack aggregation lists.
- Cisco Talos & DShield: Global IP blacklists and telemetry.
- Abuse.ch Feodo & SSLBL: Active botnet Command & Control servers and malicious SSL IPs.
- Spamhaus DROP: Don't Route Or Peer advisory blocks.
- Emerging Threats & CI Army: Known compromised hosts and malicious scanners.
- Blocklist.de & GreenSnow: SSH, mail, and brute-force attacker IPs.
- Binary Defense & BruteForceBlocker: Honeypot attackers and SSH brute-force lists.
- Tor Project & Cymru Bogons: Tor exit nodes and unallocated/bogon IP ranges.
- GeoIP & ASN Feeds: MaxMind GeoLite2, IPInfo Lite, IPverse, and IPtoASN.
IPXA includes automated unit tests and end-to-end (E2E) browser tests powered by pytest and playwright.
Fast, isolated tests for backend utilities and validation logic without browser or external service dependencies:
pytest -m unit -vPlaywright-driven browser tests validating user journeys (authentication, dashboard navigation, UI error feedback, and IP inspection):
Recording:
playwright codegen http://localhost:5000/ipxa/login --target pytho
Prerequisite: Ensure the IPXA application is running (default:
http://localhost:5000or viaAPP_BASE_URL).
pytest -m e2e -v
# Video and trace
pytest -m e2e --video on --tracing on --output=test-results/
# Run with a visible browser window
pytest tests/e2e/ -v --headedIPXA includes an api.rest file for testing endpoints directly in VS Code / IDEs using the REST Client extension.
IPXA follows an automated release lifecycle managed by GitHub Actions workflows:
flowchart LR
A["Push to v1.0.x-rc"] --> B["CI / develop"]
B --> C["Docker Hub: liberatti/ipxa:v1.0.x-rc"]
C --> D["Pull Request to main"]
D --> E["PR Merged"]
E --> F["CI / main"]
F --> G["Docker Hub: v1.0.x & latest"]
F --> H["Git Tag: v1.0.x"]
F --> I["Delete v1.0.x-rc branch"]
F --> J["GitHub Release & Close Milestone"]
When committing and pushing to a release candidate branch (e.g., v1.0.11-rc or v*-fix):
- Code Check & Lint: Runs code quality checks (
flake8) and security validation. - Multi-Architecture Build: Builds Docker images across
linux/amd64andlinux/arm64. - Pre-Release Docker Image: Generates and pushes the multi-arch manifest to Docker Hub tagged with the branch name:
docker pull liberatti/ipxa:v1.0.x-rc
- Production Safety: The
latesttag is not modified during candidate branch builds.
When a Pull Request from a v1.0.x-rc (or v*-fix) branch is merged into main:
- Version Resolution: Automatically extracts the release version from the source branch (e.g.,
v1.0.11-rcβv1.0.11). - Production Docker Images: Builds and pushes the multi-arch image to Docker Hub under two tags:
liberatti/ipxa:v1.0.x(e.g.,liberatti/ipxa:v1.0.11)liberatti/ipxa:latest
- Git Tagging: Automatically creates and pushes the release tag
v1.0.xto the repository. - Branch Cleanup: Automatically deletes the merged source branch (
v1.0.x-rc) from the remote repository. - GitHub Release & Milestone: Compiles release notes from merged PRs and closed issues, attaches the release notes, publishes the GitHub Release, and closes the corresponding milestone.
Disclaimer of Warranty: This software is provided "AS IS", without warranty of any kind, express or implied. The author(s) and contributor(s) shall not be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
Use at Your Own Risk: You are solely responsible for any decisions made or actions taken based on the data provided by IPXA.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
