Forum Discussion
Mike_Maher
Nimbostratus
Mar 16, 2011Insert IPv6 address into header
I have a fairly simple iRule that inserts the client IP address into the header see below
when HTTP_REQUEST {
HTTP::header insert x-remote-host [IP::client_addr]
HTTP::header insert x-user-agent [HTTP::header User-Agent]
}
The problem is that I know the IP::client_addr only works for v4 addresses, and I want to setup the rule so that it will also insert an IP v6 address if that is where the client is coming from. Any help is appreciated.
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