From d1813df703b8aa0a90c89f0407e5ecf5239ee5f4 Mon Sep 17 00:00:00 2001 From: Vitor Baptista Date: Fri, 25 Aug 2017 13:28:45 +0100 Subject: [PATCH] Trust proxies in local IPs This allows CachetHQ to be served behind proxies running in the local network. --- config/trustedproxy.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index e95530f251e8..e1f89a1fa767 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -23,7 +23,7 @@ | within TrustedProxy to trust any proxy; a requirement when you cannot | know the address of your proxy (e.g. if using Rackspace balancers). | - | By default, we are trusting CloudFlare only. + | By default, we are trusting local IPs and CloudFlare only. | */ @@ -50,6 +50,12 @@ '2803:f800::/32', '2c0f:f248::/32', '2a06:98c0::/29', + + // Local IPs + '10.0.0.0/8', + '172.16.0.0/12', + '192.168.0.0/16', + 'fc00::/7', ], /*