Forum Discussion
leozou_80567
Oct 15, 2008Historic F5 Account
what iRule event would be triggered by Non-TCP/non-UDP/non-SCTP protocol?
Dear All,
We have one virtual server: 0.0.0.0/0 , VS type is performance L4, protocol is all protocol. We want to use Client_ACCEPTED to capture the packet’s source address to do UIE persistence (enable across virtual server).
when CLIENT_ACCEPTED {
set client_ip [IP::remote_addr]
if {$::ms_log}{log local0. " client ip is $client_ip"}
persist uie $client_ip
}
We find that udp/tcp packet would trigger this event, but other non-tcp and non-udp protocol like icmp would not trigger this event. Does anyone has experiment about this ? what iRule event would be triggered by Non-TCP/non-UDP/non-SCTP protocol?
Thanks!
- hoolio
Cirrostratus
Hi there,virtual forwarding_vs { snatpool snat_pool pool live_gateway_pool destination any:any mask none rules fastl4_logging_rule profiles loose_open_close_fastl4 } profile fastL4 loose_open_close_fastl4 { defaults from fastL4 idle timeout 7200 loose initiation enable loose close enable } rule fastl4_logging_rule { when CLIENT_ACCEPTED { Get time for start of connection in milleseconds set tcp_start_time [clock clicks -milliseconds] Log the start of a new TCP connection log local0. "New connection from [IP::client_addr]:[TCP::client_port] to [IP::local_addr]:[TCP::local_port]" } when CLIENT_CLOSED { Log the end time of the TCP connection log "Closed connection from [IP::client_addr]:[TCP::client_port] to [IP::local_addr]:[TCP::local_port]\ (open for: [expr [clock clicks -milliseconds] - $tcp_start_time]ms)" } }
- leozou_80567Historic F5 AccountHi Aaron,
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