Forum Discussion
1qaz
Nimbostratus
May 07, 2020How can i log source ip and source port on SSL vip by irule?
I have a SSL VIP,I know that X-Forwarded-For can log the source address,but I want to log the source address and source port on F5.How can I get this by irule?thanks!
Samir
MVP
May 07, 2020Try below irule. Hpe it will work.
when HTTP_REQUEST {
log local0. "Source IP address and Port is [IP::client_addr]:[TCP::client_port]"
HTTP::header insert Client-IP [IP::client_addr]:[TCP::client_port]
}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