Skip to content

Troubleshooting ​

Client IP is still the CDN hop ​

  1. Confirm providers are enabled (EDGE_TRUST_PROVIDERS or published config/edge-trust.php).
  2. Confirm TrustProxies uses EdgeTrust::proxies() or the package middleware — installing alone does nothing.
  3. Check forwarded headers match your edge (config/edge-trust.headers).
  4. 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 bundled mode, verify archives exist and checksums pass.
  • In runtime / hybrid, run edge-trust:sync and check logs / network egress.
  • fallback.fail_open_empty defaults to false so 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 --force

Validation 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.

Released under the MIT License.