Forum Discussion
Hartono_Tjung_1
Nimbostratus
Mar 08, 2010iRules for monitoring source and destination address
Dear All,
I have two Virtual Servers which each has public Ip address (let say):
124.124.124.124
125.125.125.125
Both of two IP address above are binded two one A record let say www.test.com. I want to monitor which IP address access one of those Virtual Servers, and how long an IP address accesses those Virtual Servers.
Could anyboyd give me an advise for the iRules ?
Thanks
Hartono
7 Replies
- The_Bhattman
Nimbostratus
Hi Hartono,when CLIENT_ACCEPTED { log local0. "The Client Address is [IP::client_addr] }
- Hartono_Tjung_1
Nimbostratus
Hi Bhattman, - The_Bhattman
Nimbostratus
Hi Hartono, - Hartono_Tjung_1
Nimbostratus
Hi Bhattman,Posted By Bhattman on 03/08/2010 9:59 AM
- The_Bhattman
Nimbostratus
Hi Hartono,when CLIENT_ACCEPTED { log local0. "Virtual IP address being accessed is: [IP::local_addr]" }
- hoolio
Cirrostratus
You can track the start time of a TCP connection in CLIENT_ACCEPTED using 'set start [clock clicks -milliseconds]' and then calculate the delta in CLIENT_CLOSED using '[expr {[clock clicks -milliseconds] - $start}]'. Here is an example: - I think a good question to ask here is what are you trying to accomplish?? What kind of traffic is this? Do you have persistence enabled?
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