Yes it sets X-Forwarded-For so that when you select to use reverse proxy it knows the ip. Not sure if it’s my specific server/varnish configuration, but basically that rule allows the IP address to be passed through varnish. Without it the function was just returning 127.0.0.1, and HTTP_X_FORWARDED_FOR was not even present in the PHP var_dump($_SERVER).