Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Send custom headers to the application to check client.ip, server.ip, local.ip & remote.ip
vcl 4.0;
backend default {
.host = "";
.port = "80";
sub vcl_recv {
set req.http.x-clientip = client.ip;
set req.http.x-serverip = server.ip;
set req.http.x-localip = local.ip;
set req.http.x-remoteip = remote.ip;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment