Original_D_2018
Aug 06, 2015Nimbostratus
iRule to create TPDU header
I have a project to grab the source IP address from a client connection and create a fixed length TPDU header to send to the backend server. I need some help to accomplish this: These are my beginning thoughts for the iRule, but I am not sure how to send it to the selected server or what format the data should be in string, hexadecimal, etc... when CLIENT_ACCEPTED { set CLIENT_IP [IP::client_addr] TCP::collect } when CLIENT_DATA { set tcppkt [TCP::payload] set CLIENT_PORT [TCP::client_port] set tpdu_constant "IP36 CR"
$tpdu_constant $CLIENT_IP:$CLIENT_PORT $tcppkt
unset CLIENT_IP unset tcppkt unset CLIENT_PORT unset tpdu_constant }