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 enable this? We are running 11.5.3.
2 Replies
- TayF5un
Nimbostratus
It does not log the VS hits by default. You should use irule with hsl, by the way you can send the log to syslog server.
- Stephan_Mierau
Employee
to 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