Forum Discussion
Snl
Cirrostratus
Apr 16, 2017Irule for combine useragent & xforwarder-for
Hello Folks
I am looking for 2 combination irule for get user agent and X-forwarder-for (origin client ip)to send to server for audit purpose
any help appreciated
Thanks
Kevin_Davies_40
Nacreous
Apr 17, 2017I'm not sure I follow.
The F5 passes the User-Agent from the client to the server untouched. The X-Forwarded-For header can be added with a HTTP profile with the X-Forwarded-For option enabled. The server will then receive both items. No iRule is needed.
If you need an iRule to combine both then this will do the job for you.
when HTTP_REQUEST {
HTTP::header insert "X-Audit-Info" "[IP::client_addr]:[HTTP::header User-Agent]"
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
