zafer
May 11, 2009Nimbostratus
logging client ip address with nat
Hello
i use this irule for logging client ip address and server communications
when CLIENT_ACCEPTED {
log local0. "client: [IP::remote_addr]:[TCP::remote_port] -> dest: [IP::local_addr]:[TCP::local_port]"
}
when SERVER_CONNECTED {
log local0. "client: [IP::local_addr]:[TCP::local_port] -> dest: [IP::remote_addr]:[TCP::remote_port]"
}
but we will enable application firewall before bigip and its another box and they natted connection on their box, they will send client ip address with header (HTTP_CLIENT)
how do you suggest me getting client ip address from header and inserting my rule
regexp? for finding client ip on header
regards
zafer