Forum Discussion
Faruk_AYDIN
Jan 08, 2017Nimbostratus
Use this irule to log connection from the client through the node :
when SERVER_CONNECTED {
This logs information about the TCP connections on *both* sides of the full proxy
set client_remote "[IP::client_addr]:[TCP::client_port]"
set client_local "[IP::local_addr clientside]:[TCP::local_port clientside]"
set server_local "[IP::local_addr]:[TCP::local_port]"
set server_remote "[IP::server_addr]:[TCP::server_port]"
log local0. "Got connection: Client($client_remote)<->($client_local)LTM($server_local)<->($server_remote)Server"
}
you can also use the following command to view which client is connected to which node:
tmsh show sys conn cs-client-addr cs-server-addr