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 ...
nitass
Employee
Jul 11, 2013e.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