
Intro #
Envoy Proxy is a high-performance, open-source proxy designed for modern networking applications, offering features such as HTTP routing, load balancing, traffic filtering, and observability. The Envoy Proxy GeoIP filter extends these capabilities by enriching incoming HTTP requests with geographical and anonymization information derived from client IP addresses.
Although Envoy’s GeoIP HTTP filter uses the MaxMind database provider, it can also work with compatible MMDB databases from IP2Location and IP2Proxy. This allows administrators to perform local IP intelligence lookups without sending additional API requests for each incoming request.
In this tutorial, we will configure Envoy Proxy to use two MMDB databases:
- IP2Location LITE DB11: A free IP geolocation database that provides country, region, city, latitude, longitude, ZIP code, and time zone information. Its MMDB format uses a GeoLite2-City-compatible schema.
- IP2Proxy PX10: A commercial proxy detection database that identifies VPNs, public proxies, Tor exit nodes, hosting providers, and other proxy classifications. Its MMDB format uses a GeoIP2-Anonymous-IP-compatible schema.
The GeoIP filter allows Envoy to read both MMDB files locally and attach the lookup results as HTTP request headers. This enables backend applications to access IP intelligence information without making additional API requests.
For this demonstration, we will run Envoy inside Docker on a Debian 13 server, avoiding the need to compile Envoy or install it through an APT repository.
What we will build #

By the end of this tutorial, you will have a working local demonstration that can:
- Identify the country, region, and city associated with an IP address.
- Detect VPN, proxy, Tor, and hosting-provider indicators.
- Add the lookup results to HTTP request headers.
- Forward enriched HTTP requests to a Python backend.
- Display the results in JSON for verification.
Important: Envoy’s GeoIP provider is documented as a work-in-progress feature with security limitations. This tutorial is for a controlled demonstration, not a production-hardened deployment.
Prerequisites #
Before proceeding, ensure that you have:
- A Debian 13 (Trixie) server with
sudoaccess. - Internet access for downloading packages and Docker images.
- An IP2Location LITE account to download DB11 in MMDB format.
- An active IP2Proxy PX10 commercial subscription to download its MMDB file.
- Basic knowledge of Linux commands.
We will use the following configuration:
| Component | Configuration |
| Operating system | Debian 13 |
| Envoy version | 1.39.3 |
| Installation method | Docker |
| Envoy HTTP port | 10000 |
| Python backend port | 8080 |
| Envoy admin port | 9901 |
| Envoy configuration directory | /etc/envoy/ |
| MMDB database directory | /etc/envoy/mmdb/ |
All services will be bound to localhost for testing. We will use Docker’s host networking mode so the Envoy container can communicate with the Python backend running directly on the Debian host.
Step 1: Update Debian 13 #
First, update the package lists:
sudo apt update
Upgrade installed packages:
sudo apt upgrade -y
Install the required utilities:
sudo apt install -y \
 curl \
 wget \
 ca-certificates \
 gnupg \
 unzip \
 python3 \
 python3-venv
Step 2: Install Docker #
Debian 13 provides Docker packages through its official repositories.
For this demonstration, we can install Docker directly:
sudo apt install -y docker.io
Enable and start the Docker service:
sudo systemctl enable --now docker
Verify that Docker is installed:
sudo docker –version

Check its status:
sudo systemctl status docker --no-pager
The service should display active (running).

To confirm that Docker can run containers:
sudo docker run --rm hello-world

A successful execution displays a message indicating that Docker is working correctly.
Step 3: Download the Envoy Docker image #
We will use the official Envoy Docker image, pinned to version v1.39.3.
This image is published on Docker Hub and is available for both AMD64 and ARM64 Linux systems.
Download the image:
sudo docker pull envoyproxy/envoy:v1.39.3
Verify the Envoy version:
sudo docker run --rm \
 envoyproxy/envoy:v1.39.3 \
 --version
The output should report Envoy version 1.39.3 and its build information.

Using a specific version instead of latest helps maintain consistent behavior when reproducing this tutorial.
Step 4: Download the IP2Location and IP2Proxy MMDB databases #
We need two MMDB files before configuring the GeoIP filter. The IP2Location LITE DB11 database provides geographical information such as country, region, city, latitude, longitude, ZIP code, and time zone.
Meanwhile, the commercial IP2Proxy PX10 includes proxy classifications beyond those covered by the free LITE edition, including VPNs, Tor, and residential proxies.
Login to your IP2Location.com account and note down your download token which we’ll use to download the required files to your home folder on the server.
Run the below to download the files to your home folder after modifying for your actual token:
TOKEN="YOUR_DOWNLOAD_TOKEN"
curl -L -o DB11.zip "https://www.ip2location.com/download?token=${TOKEN}&file=DB11LITEMMDB"
curl -L -o PX10.zip "https://www.ip2location.com/download?token=${TOKEN}&file=PX10MMDB"
Extract the MMDB files:
unzip DB11.zip IP2LOCATION-LITE-DB11.MMDB
unzip PX10.zip IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.MMDB
Rename the PX10 file to make it shorter:
mv ~/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.MMDB ~/IP2PROXY-PX10.MMDB
You should now have 2 MMDB files in your home folder like:
~/IP2LOCATION-LITE-DB11.MMDB
~/IP2PROXY-PX10.MMDB
Create a dedicated directory for Envoy’s databases:
sudo mkdir -p /etc/envoy/mmdb
Copy the databases into the directory:
sudo cp ~/IP2LOCATION-LITE-DB11.MMDB \
 /etc/envoy/mmdb/IP2LOCATION-LITE-DB11.mmdb
sudo cp ~/IP2PROXY-PX10.MMDB \
 /etc/envoy/mmdb/IP2PROXY-PX10.mmdb
Set the file permissions:
sudo chmod 755 /etc/envoy /etc/envoy/mmdb
sudo chmod 644 /etc/envoy/mmdb/*.mmdb
Verify the files:
ls -lh /etc/envoy/mmdb/

These files will later be mounted into the Envoy Docker container.
Step 5: Create a Python HTTP backend #
To verify that Envoy enriches HTTP requests correctly, we will create a simple Python HTTP backend.
This backend will display all received HTTP headers as JSON, including the geolocation and proxy detection headers generated by Envoy.
Create a working directory:
mkdir -p ~/envoy-geoip-demo
cd ~/envoy-geoip-demo
Create the Python script:
nano backend.py
Add the following code:
from http.server import BaseHTTPRequestHandler, HTTPServer
import json
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
headers = dict(self.headers.items())
geoip_headers = {
key: value
for key, value in headers.items()
if key.lower().startswith("x-geo-")
}
response = {
"message": "Envoy GeoIP Demo",
"geoip": geoip_headers,
"all_headers": headers
}
body = json.dumps(
response,
indent=2
).encode("utf-8")
self.send_response(200)
self.send_header(
"Content-Type",
"application/json"
)
self.send_header(
"Content-Length",
str(len(body))
)
self.end_headers()
self.wfile.write(body)
server = HTTPServer(
("127.0.0.1", 8080),
RequestHandler
)
print(
"Backend running at http://127.0.0.1:8080",
flush=True
)
server.serve_forever()
Save and close the file.
Start the backend:
python3 backend.py
Expected output:
Backend running at http://127.0.0.1:8080
Leave this terminal running.
Open a second SSH session and test the backend:
curl -s http://127.0.0.1:8080/
You should receive a JSON response similar to:
{
 "message": "Envoy GeoIP Demo",
 "geoip": {},
 "all_headers": {
   "Host": "127.0.0.1:8080",
   "User-Agent": "curl/8.14.1",
   "Accept": "*/*"
 }
}
At this stage, geoip is empty because Envoy is not yet involved.
Step 6: Configure Envoy’s GeoIP HTTP filter #
Now we will create the Envoy configuration file that loads both MMDB databases.
Envoy’s built-in GeoIP provider supports multiple database types. For this tutorial, we need two parameters:
| Envoy parameter | MMDB database | Purpose |
| city_db_path | IP2Location LITE DB11 | Geolocation lookup |
| anon_db_path | IP2Proxy PX10 | Proxy and anonymization detection |
We will use geo_field_keys to configure the headers generated from the MMDB lookup results. This configuration is available in Envoy 1.39 and is preferred over the older geo_headers_to_add parameter.
Create the configuration file #
Open the file:
sudo nano /etc/envoy/envoy.yaml
Add the following YAML configuration:
static_resources:
listeners:
- name: geoip_listener
address:
socket_address:
address: 127.0.0.1
port_value: 10000
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
stat_prefix: geoip_http
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: backend
domains: ["*"]
routes:
- match:
prefix: "/"
route:
cluster: backend_service
http_filters:
- name: envoy.filters.http.geoip
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.geoip.v3.Geoip
custom_header_config:
header_name: x-demo-client-ip
provider:
name: envoy.geoip_providers.maxmind
typed_config:
"@type": type.googleapis.com/envoy.extensions.geoip_providers.maxmind.v3.MaxMindConfig
city_db_path: /etc/envoy/mmdb/IP2LOCATION-LITE-DB11.mmdb
anon_db_path: /etc/envoy/mmdb/IP2PROXY-PX10.mmdb
common_provider_config:
geo_field_keys:
country: x-geo-country
region: x-geo-region
city: x-geo-city
anon: x-geo-anonymous
anon_vpn: x-geo-vpn
anon_proxy: x-geo-proxy
anon_tor: x-geo-tor
anon_hosting: x-geo-hosting
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: backend_service
connect_timeout: 5s
type: STATIC
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: backend_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8080
admin:
address:
socket_address:
address: 127.0.0.1
port_value: 9901
Save the file.
Understand the configuration #
HTTP listener #
The listener accepts HTTP requests at:
http://127.0.0.1:10000
It is intentionally bound to localhost so that the demo cannot be accessed directly from the internet.
GeoIP HTTP filter #
The following filter enables Envoy’s built-in geolocation functionality:
- name: envoy.filters.http.geoip
 typed_config:
   "@type": type.googleapis.com/envoy.extensions.filters.http.geoip.v3.Geoip
This filter runs before the router filter, allowing it to enrich the request before forwarding it to the backend.
Custom client IP header #
For testing, we use:
custom_header_config:
 header_name: x-demo-client-ip
This tells Envoy to extract the IP address from the x-demo-client-ip header.
For example, sending:
x-demo-client-ip: 8.8.8.8
causes Envoy to perform the lookup for 8.8.8.8 instead of the actual client connection address.
If the header is missing or invalid, Envoy falls back to the downstream connection source address.
This is only suitable for our controlled local demonstration.
MMDB configuration #
The following parameters load the two databases:
city_db_path: /etc/envoy/mmdb/IP2LOCATION-LITE-DB11.mmdb
anon_db_path: /etc/envoy/mmdb/IP2PROXY-PX10.mmdb
These are paths inside the Envoy container. Because we will mount the host’s /etc/envoy directory into the same container path, no database path translation is required.
GeoIP HTTP headers #
The geo_field_keys section maps lookup values to request headers:
| HTTP header | Database | Description |
| x-geo-country | DB11 | Two-letter country code |
| x-geo-region | DB11 | Region |
| x-geo-city | DB11 | City name |
| x-geo-anonymous | PX10 | Anonymization indicator |
| x-geo-vpn | PX10 | VPN indicator |
| x-geo-proxy | PX10 | Public proxy indicator |
| x-geo-tor | PX10 | Tor exit node indicator |
| x-geo-hosting | PX10 | Hosting provider indicator |
Envoy’s common GeoIP schema defines boolean-style true/false results for these anonymization fields. The actual results depend on the contents of the PX10 database.
Although DB11 also contains latitude, longitude, ZIP code, and time zone data, these fields are not exposed by the standard Envoy HTTP GeoIP header mapping used here.
Likewise, PX10 may contain additional information that is not exposed by the filter.
Step 7: Validate the Envoy configuration using Docker #
Before running Envoy, validate the configuration.
Docker allows us to execute Envoy’s built-in validator without installing Envoy directly on Debian.
Run:
sudo docker run --rm \
 --network host \
 -v /etc/envoy:/etc/envoy:ro \
 envoyproxy/envoy:v1.39.3 \
 --mode validate \
 -c /etc/envoy/envoy.yaml
This command mounts the configuration and databases into a temporary Envoy container.
The :ro option makes the mounted files read-only.
If the configuration is valid, Envoy should display a success message indicating that the configuration passed validation.

If validation fails, review the error message for incorrect YAML indentation, unsupported configuration fields, or invalid file paths.
Note that successful configuration validation does not guarantee that every MMDB record is compatible with the provider. We will verify actual lookups later.
Step 8: Start Envoy Proxy using Docker #
Once validation succeeds, start Envoy as a Docker container.
sudo docker run -d \
 --name envoy-geoip \
 --restart unless-stopped \
 --network host \
 -v /etc/envoy:/etc/envoy:ro \
 envoyproxy/envoy:v1.39.3 \
 -c /etc/envoy/envoy.yaml \
 --log-level info
This command starts Envoy in the background.
Docker configuration explained #
| Option | Description |
| -d | Runs the container in the background |
| –name envoy-geoip | Assigns a recognizable container name |
| –restart unless-stopped | Restarts the container after a reboot unless manually stopped |
| –network host | Shares the Debian server’s network namespace |
| -v /etc/envoy:/etc/envoy:ro | Mounts the configuration and MMDB files as read-only |
| envoyproxy/envoy:v1.39.3 | Specifies the Envoy image |
| -c /etc/envoy/envoy.yaml | Specifies the configuration file |
| –log-level info | Enables informational logging |
Why use host networking? #
The Python backend runs on the Debian host at 127.0.0.1:8080.
Under Docker’s default bridge networking, 127.0.0.1 inside the Envoy container would refer to the container itself, not to the Debian host.
Using --network host allows Envoy to access the backend directly through the same localhost address.
This is convenient for the demonstration, though a dedicated Docker network and containerized backend would generally offer better isolation in a production architecture.
Verify that Envoy is running #
sudo docker ps
You should see a container named envoy-geoip with an Up status.

Check the logs:
sudo docker logs envoy-geoip
To continuously monitor the logs:
sudo docker logs -f envoy-geoip
Verify the listening ports:
sudo ss -lntp | grep -E '10000|8080|9901'

Expected services:
| Port | Service |
| 10000 | Envoy HTTP listener |
| 8080 | Python HTTP backend |
| 9901 | Envoy admin interface |
Step 9: Test IP geolocation using IP2Location DB11 #
We can now test whether Envoy correctly retrieves geographical data from the IP2Location LITE DB11 database.
Make sure the Python backend is still running.
Test with IP address 8.8.8.8 #
Send a request through Envoy:
curl -s \
 -H "x-demo-client-ip: 8.8.8.8" \
 http://127.0.0.1:10000/
The request follows this sequence:
- Envoy receives the HTTP request on port
10000. - The GeoIP filter extracts
8.8.8.8fromx-demo-client-ip. - Envoy performs a local MMDB lookup using DB11.
- The filter adds the available geographical headers.
- Envoy forwards the enriched request to the Python backend.
- The backend returns the received headers in JSON format.
An illustrative response looks like this:
{
 "message": "Envoy GeoIP Demo",
 "geoip": {
   "x-geo-country": "US",
   "x-geo-region": "...",
   "x-geo-city": "...",
   "x-geo-anonymous": "false",
   "x-geo-vpn": "false",
   "x-geo-proxy": "false",
   "x-geo-tor": "false",
   "x-geo-hosting": "..."
 }
}
This is an example of the output structure, not a verified lookup result for 8.8.8.8. The actual values will depend on the MMDB versions and their records, and some headers may be omitted.
Test another IP address #
You can also try Cloudflare’s public DNS IP address:
curl -s \
 -H "x-demo-client-ip: 1.1.1.1" \
 http://127.0.0.1:10000/
Compare the response with the previous request.
A successful result demonstrates that Envoy can perform geographical lookups using the DB11 MMDB database.
Step 10: Test proxy detection using IP2Proxy PX10 #
Next, test the commercial IP2Proxy PX10 database.
PX10 provides anonymization information through its GeoIP2-Anonymous-IP-compatible structure.
For this test, use an IP address that your current PX10 database identifies as a VPN, Tor exit node, or public proxy.
Replace YOUR_TEST_PROXY_IP with your test IP address:
curl -s \
 -H "x-demo-client-ip: YOUR_TEST_PROXY_IP" \
 http://127.0.0.1:10000/
For an IP identified as a VPN, a possible response is:
{
 "message": "Envoy GeoIP Demo",
 "geoip": {
   "x-geo-country": "US",
   "x-geo-anonymous": "true",
   "x-geo-vpn": "true",
   "x-geo-proxy": "false",
   "x-geo-tor": "false",
   "x-geo-hosting": "true"
 }
}
These values are illustrative and are not associated with any particular IP address.
The actual classification depends on your PX10 database and the lookup result.
If the database identifies the IP as a Tor exit node, the x-geo-tor header should indicate that classification when the corresponding field is available and correctly interpreted.
Similarly, the VPN and public proxy headers can be used to identify the respective anonymization categories.
This information can help applications implement features such as additional verification, transaction risk analysis, and traffic monitoring.
Step 11: Verify Envoy GeoIP lookup statistics #
Envoy provides statistics that can help confirm whether the GeoIP filter and MMDB database lookups are functioning.
The Envoy administration interface is configured to listen at:
http://127.0.0.1:9901
To display GeoIP-related statistics, execute:
curl -s http://127.0.0.1:9901/stats \
 | grep -E 'geoip|maxmind|city_db|anon_db'
You may see counters resembling:
http.geoip_http.geoip.total: 10
http.geoip_http.maxmind.city_db.total: 10
http.geoip_http.maxmind.city_db.hit: 10
http.geoip_http.maxmind.anon_db.total: 10
http.geoip_http.maxmind.anon_db.hit: 10
The values above are examples. Actual metric prefixes and counters depend on the running Envoy configuration.
The relevant statistics include:
| Statistic | Description |
| geoip.total | Requests processed by the GeoIP filter |
| city_db.total | City database lookup attempts |
| city_db.hit | Successful geolocation lookups |
| anon_db.total | Anonymous IP database lookup attempts |
| anon_db.hit | Successful anonymization lookups |
| lookup_error | Database lookup errors |
| db_reload_success | Successful MMDB reloads |
| db_reload_error | Failed MMDB reloads |
These statistics are documented by Envoy’s GeoIP HTTP filter.
For example, if city_db.hit increases after sending requests, this indicates that Envoy is finding matching records in the DB11 database.
Likewise, increasing anon_db.hit values indicate successful nonempty PX10 lookup results.
The statistics can be particularly useful when an IP address returns geographical information but no anonymization headers.
Step 12: Troubleshoot missing or incorrect GeoIP results #
If the Envoy configuration passes validation but you do not receive the expected GeoIP headers, inspect the MMDB records directly.
Install a Python MMDB reader #
On the Debian host, create a Python virtual environment:
python3 -m venv ~/envoy-mmdb-venv
Install the MaxMind DB reader:
~/envoy-mmdb-venv/bin/pip install maxminddb
Although the Python package is named maxminddb, it can read any databases stored in the standard MMDB format.
Inspect both databases #
Execute the following script:
~/envoy-mmdb-venv/bin/python - <<'PY'
import json
import maxminddb
ip = "8.8.8.8"
databases = {
"IP2Location LITE DB11":
"/etc/envoy/mmdb/IP2LOCATION-LITE-DB11.mmdb",
"IP2Proxy PX10":
"/etc/envoy/mmdb/IP2PROXY-PX10.mmdb",
}
for name, path in databases.items():
print(f"\n=== {name} ===")
with maxminddb.open_database(path) as reader:
print(
"Database type:",
reader.metadata().database_type
)
result = reader.get(ip)
print(json.dumps(result, indent=2))
PY
This script will display the MMDB database type and the raw record associated with 8.8.8.8, if one exists.
You can replace that address with another IP to inspect its data.
For IP2Location DB11, check that the record uses City-compatible geographical structures, such as country, subdivisions, and city.
For IP2Proxy PX10, inspect the available anonymous-IP indicators, such as is_anonymous, is_anonymous_vpn, is_public_proxy, is_tor_exit_node, and is_hosting_provider.
These names represent the fields expected by the GeoIP2-compatible anonymous-IP lookup interface. The exact values and availability must be checked against your PX10 file.
Important: A file being readable as MMDB does not guarantee that Envoy can interpret every field. The record structure and data types must also match the expectations of Envoy’s MaxMind provider.
Common issues #
| Problem | Possible solution |
| Envoy container exits immediately | Run sudo docker logs envoy-geoip and inspect the startup error |
| Configuration validation fails | Check YAML indentation and unsupported parameters |
| Connection refused on port 10000 | Verify that the Envoy container is running |
| HTTP 503 response | Ensure the Python backend is listening on port 8080 |
| No geographical headers | Check DB11’s records, file permissions, and lookup statistics |
| No proxy classification headers | Check PX10’s schema, relevant records, and anonymous lookup counters |
| Envoy cannot read an MMDB | Check file permissions and volume mounts |
| 127.0.0.1 returns no geographical result | Loopback and private IP addresses generally lack public geolocation data |
Inspect the mounted files #
If Envoy reports an error opening a database, verify that both files are accessible inside the container.
sudo docker exec envoy-geoip \
 ls -lh /etc/envoy/mmdb/
The output should show both MMDB files.
You can also check the configuration file:
sudo docker exec envoy-geoip \
 ls -lh /etc/envoy/envoy.yaml
If a file is missing, verify the Docker volume mount and its source directory.
Step 13: Update the MMDB databases #
IP geolocation and proxy detection databases should be updated regularly because IP allocations, network operators, and proxy classifications can change.
When updated versions of DB11 and PX10 become available, download and extract them.
Before replacing the files, stop Envoy:
sudo docker stop envoy-geoip
Copy the updated MMDB files to /etc/envoy/mmdb/, replacing the existing versions.
For example, assuming the new files have been uploaded to your home directory:
sudo cp ~/IP2LOCATION-LITE-DB11.MMDB \
 /etc/envoy/mmdb/IP2LOCATION-LITE-DB11.mmdb
sudo cp ~/IP2PROXY-PX10.MMDB \
 /etc/envoy/mmdb/IP2PROXY-PX10.mmdb
Set the appropriate permissions:
sudo chmod 644 /etc/envoy/mmdb/*.mmdb
Restart the container:
sudo docker start envoy-geoip
Verify the logs:
sudo docker logs --tail 50 envoy-geoip
Test a lookup again:
curl -s \
 -H "x-demo-client-ip: 8.8.8.8" \
 http://127.0.0.1:10000/
For this basic demonstration, restarting Envoy after replacing the databases ensures a fresh load of the files.
Envoy also provides database reload statistics, but an automated update and reload mechanism is outside the scope of this tutorial.
Step 14: Replace the simulated IP with the real client IP #
During testing, we configured Envoy to read an IP address from the x-demo-client-ip header.
This allows us to simulate requests from different locations and proxy networks.
However, this configuration is not appropriate for a publicly accessible environment because a client could submit a forged IP address.
To configure Envoy to use the actual downstream connection IP, remove these lines from /etc/envoy/envoy.yaml:
custom_header_config:
 header_name: x-demo-client-ip
When neither custom_header_config nor xff_config is specified, the HTTP GeoIP filter uses the downstream connection source address.
For applications running behind a trusted load balancer or reverse proxy, Envoy can instead use the X-Forwarded-For header with an explicitly configured trusted hop count.
For example:
xff_config:
 xff_num_trusted_hops: 1
Use this setting only when your load balancer and forwarding chain are configured to prevent IP spoofing.
For an internet-facing deployment, also ensure that clients cannot inject trusted x-geo-* headers. Use a trusted ingress boundary that removes client-supplied geolocation headers before lookup, or explicitly rejects requests that attempt to provide them. Otherwise, missing database results could leave untrusted values available to the backend.
You should also review TLS, firewall access, container privileges, administrative endpoint restrictions, and Envoy’s documented GeoIP security limitations before moving beyond this demo.
After editing the configuration, validate it:
sudo docker run --rm \
 --network host \
 -v /etc/envoy:/etc/envoy:ro \
 envoyproxy/envoy:v1.39.3 \
 --mode validate \
 -c /etc/envoy/envoy.yaml
Restart Envoy to load the updated configuration:
sudo docker restart envoy-geoip
For public access, you would additionally need to change the listener from 127.0.0.1 to an appropriate interface and configure the necessary network protections.
Step 15: Manage the Envoy Docker container #
Because Envoy runs inside Docker, you can manage it using standard Docker commands.
| Action | Command |
| Check container status | sudo docker ps -a |
| View logs | sudo docker logs envoy-geoip |
| Follow live logs | sudo docker logs -f envoy-geoip |
| Stop Envoy | sudo docker stop envoy-geoip |
| Start Envoy | sudo docker start envoy-geoip |
| Restart Envoy | sudo docker restart envoy-geoip |
| Remove the container | sudo docker rm -f envoy-geoip |
The --restart unless-stopped option used during container creation means Docker will restart Envoy after a server reboot unless it has been explicitly stopped.
If you modify the Docker run options or mount configuration, remove and recreate the container with the new settings.
Conclusion #
In this tutorial, we configured Envoy Proxy on Debian 13 using Docker and integrated IP2Location LITE DB11 and IP2Proxy PX10 MMDB databases for IP geolocation and proxy detection.
The IP2Location LITE DB11 database provides geographical information through a GeoLite2-City-compatible schema, while IP2Proxy PX10 supplies anonymization data through a GeoIP2-Anonymous-IP-compatible schema. With the Envoy Proxy GeoIP filter, both databases can be queried locally to enrich incoming HTTP requests with geographical and proxy-related information.
Running Envoy in Docker simplifies deployment, provides a consistent runtime environment, and makes container management easier without relying on an APT repository.
This setup demonstrates how IP2Location and IP2Proxy databases can extend Envoy’s IP intelligence capabilities, helping applications support location-based customization, traffic analysis, and security policies based on client IP information.
