xiaolche
Feb 15, 2023Nimbostratus
Collect UDP packet client IP with irule on LTM
Could anyone tell me how to collect client IP address with irule and save client ip to log ?
We have VIP which is for DNS and NTP service, protocol profile is UDP ( without Datagram LB enable) . i use below irule in a DNS VIP ( there is huge dns request to the vip ) , it worked for a few packets , then VIP stopped to response the dns request. where is wrong on the irule ? thanks for help in advance
when CLIENT_ACCEPTED {
log -noname local0. "[virtual name] client [IP::client_addr]:[UDP::client_port] test-snat [IP::local_addr]:[UDP::local_port] server [IP::server_addr]:[UDP::server_port]"
}