Forum Discussion
xforward-for doesnt work
Below http request iRule displays real ip in system - > logs -- > local traffic when HTTP_REQUEST { if { [HTTP::header exists X-Forwarded-For] } { log local0. "Received XFF from [IP::client_addr]: [HTTP::header X-Forwarded-For]"
} }
but i don't see the incoming request landing on backend server even if i add the below irule.
when CLIENT_ACCEPTED {
set vip [IP::local_addr]:[TCP::local_port] } when SERVER_CONNECTED {
set client "[IP::client_addr]:[TCP::client_port]"
set node "[IP::server_addr]:[TCP::server_port]" log local0. "Client $client -> VIP: $vip -> Node: $node"
}
could you please let me know how to combine both http_request and client_accepted irule so that the logs would be displayed in system - > logs -- > local traffic
as
XFF IP -- > VIP -- > Backend Server IP
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
