Forum Discussion
akhil_2877
Nimbostratus
Jul 11, 2013Irule On LTM to track the socurce ip address based on hostname/URI
Could some please help me creating an Irule based on to track and log soruce ip address/ cleint ip address accessing VIP based on FQDN name
as i am having mutiple FQDN pointing to same VIP so i want to log track source ip addresses who are accessing trans.abc.com which is pointing to 10.201.x.y
Thanks
Akhil
3 Replies
- nitass
Employee
is this http logging helpful?
Log Http Tcp Udp To Syslogng
https://devcentral.f5.com/wiki/iRules.LogHttpTcpUdpToSyslogng.ashx - akhil_2877
Nimbostratus
actually as i mentioned on same vip is poitning to multple URLs HOWVER i need to get info for one particular URL say tran.abc.com for all http and https requests. - nitass
Employee
e.g.[root@ve10:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.252:80 ip protocol 6 rules myrule profiles { http {} tcp {} } } [root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { if { [HTTP::host] eq "trans.abc.com" } { log local0. "Client: [IP::client_addr]:[TCP::client_port] URL: [HTTP::host][HTTP::uri]" } } } /var/log/ltm [root@ve10:Active] config tail -f /var/log/ltm Jul 11 22:02:45 local/tmm info tmm[4950]: Rule myrule : Client: 172.28.20.17:38773 URL: trans.abc.com/bhabhabha
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