yuanqiang_22112
Jul 13, 2016Nimbostratus
Irules for tcp option
scenario: F5 to load balance for mysql database,f5 set the automap function,The user needs to see the client's real IP ; solove : I create the irules to insert client true ip ,but when I associated the irules ,Client can't connect mysql through F5 V_IP; If not associated the irules ,client can connect mysql through F5 V_IP;Below is my irulse ,please help me what's the problem of the irulse .
when CLIENT_ACCEPTED { set INPUT_OPTION [TCP::option get 28] binary scan $INPUT_OPTION c ver set ver [expr { $ver & 0xff }] set forwarded_ip [IP::addr parse $INPUT_OPTION 1] log local0. "The IP address was $forwarded_ip for version $ver" }