Forum Discussion
ToonVA
Jun 20, 2019Cirrus
Log client source IP when connecting to TCP Virtual by iRule
Hi All, I received the request if it is possible to log the client IP when connecting to the virtual IP. We did this already based on an HTTP Virtual but now it's for an SMTP relay with regular T...
Lee_Sutcliffe
Jun 20, 2019Nacreous
when CLIENT_ACCEPTED {
log local0. "Client IP:[IP::client_addr]"
}
You'll need to do this in the CLIENT_ACCEPTED event as above
- David_MJun 24, 2019Cirrostratus
I dont know why I dont see my client connected firing at all!!
- Lee_SutcliffeJun 24, 2019Nacreous
the CLIENT_ACCEPTED event triggers when a TCP three way handshake has been completed. If you're not seeing anything in the logs it may be because your ISP is multiplexing TCP connections. This is common if you have services behind Akamai for example.
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