> Take a look at the example in man relayd.conf. You have to set the X-header > like: > > match header set "X-Forwarded-For" \ value "$REMOTE_ADDR" > match header set "X-Forwarded-By" \ value > "$SERVER_ADDR:$SERVER_PORT"
This has nothing to do with relayd's forwarding rules in this topic. Setting these headers is for logging in httpd. Because if not set X-Forwarded-For then httpd logs the IP of the relayd host as source for ALL requests and the original IP of the request would be lost. To overcome this httpd comes with a log format called "forwarded" which appends X-Forwarded-{For,Port} to existing log format.