Forum Discussion
derekpayne_2032
Nimbostratus
Sep 02, 2016Logging all virtual server hits?
Our security team is requesting that we log to syslog all connection attempts to any virtual server. All we really need is the source IP, destination IP, and timestamp. Is there a simple way to enabl...
Stephan_Mierau
Employee
Sep 02, 2016to log you could use a simple iRule:
when CLIENT_ACCEPTED {
set vip [IP::local_addr]:[TCP::local_port]
when SERVER_CONNECTED {
set client "[IP::client_addr]:[TCP::client_port]" set node "[IP::server_addr]:[TCP::server_port]" }
when CLIENT_CLOSED {
log connection info log local0.info "Client $client -> VIP: $vip -> Node: $node"
}
to apply this rule I would use a tmsh cli script
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