diff --git a/templates/haproxy_cfg.jinja2 b/templates/haproxy_cfg.jinja2
index dd930d0bb235b57da58e15a896ad1d07866e2e12..b8bce06fef00368c6f10032da02cd768c32b309b 100644
--- a/templates/haproxy_cfg.jinja2
+++ b/templates/haproxy_cfg.jinja2
@@ -438,6 +438,7 @@ backend backend_varnish_bigpipe
 {% endif %}
   no option http-buffer-request
   option httpchk HEAD /varnishcheck
+  http-request set-header x-real-ip %[src]
   http-check expect status 200
   option forwardfor
   hash-type consistent