Custom IP Ranges
Use configuration when you need extra trusted proxies (office VPN, private load balancer) or must exclude a subset of a provider's published ranges.
Include extra ranges
ini
EDGE_TRUST_CUSTOM_RANGES=203.0.113.0/24,2001:db8::/32These CIDRs are merged into the resolved trusted proxy list for all modes. You can also set custom_ranges in a published config file.
Exclude ranges
ini
EDGE_TRUST_EXCLUDE_RANGES=198.51.100.0/24Excluded prefixes are removed from the final set after providers and custom ranges are combined.
Per-provider static ranges
Attach fixed ranges to a custom provider key without writing a fetch implementation:
php
'custom_provider_ranges' => [
'my-proxy' => [
'203.0.113.10/32',
],
],For dynamic sources, implement a custom provider instead.
Validation notes
- Built-in / fetched ranges reject non-global prefixes when
validation.reject_non_globalistrue. - Custom ranges use
validation.reject_non_global_custom(defaultfalse) so carefully chosen private/lab ranges can be allowed when you need them.
Verify
bash
php artisan edge-trust:list
php artisan edge-trust:validate