Troubleshooting
Client IP is still the CDN hop
- Confirm providers are enabled (
EDGE_TRUST_PROVIDERSor publishedconfig/edge-trust.php). - Confirm TrustProxies uses
EdgeTrust::proxies()or the package middleware — installing alone does nothing. - Check forwarded headers match your edge (
config/edge-trust.headers). - Ensure the TCP peer Laravel sees is actually in the trusted CIDR set (
edge-trust:list).
Empty proxy list
bash
php artisan edge-trust:status
php artisan edge-trust:list
php artisan edge-trust:validate- In
bundledmode, verify archives exist and checksums pass. - In
runtime/hybrid, runedge-trust:syncand check logs / network egress. fallback.fail_open_emptydefaults tofalseso an empty set does not silently trust everything.
Sync fails with change-percent errors
Large swings vs the previous set are rejected by default. Inspect the provider payload, then re-run with --force only if the change is intentional:
bash
php artisan edge-trust:sync --provider=cloudflare --forceValidation rejects global ranges
0.0.0.0/0 and ::/0 are refused when validation.reject_non_global is enabled. Fix the upstream source or custom range — do not disable this casually in production.
Multiple app servers see different ranges
Point cache.store at a shared store (for example Redis) and keep TTLs aligned. Run scheduled sync on a single designated worker or rely on shared cache after sync.
Origin still reachable bypassing the CDN
Laravel TrustProxies cannot stop direct origin hits. Restrict security groups / firewalls — see Origin firewall.