Radius irule
Needs some help with my irule that we use to load balance AAA UDP traffic. my rule works fine for 1812/1813 traffic but when it comes to 1645/1646 traffic it fails. I'm sure its something wrong with the coding but needs to assistance with it... Thanks in advance..
when CLIENT_ACCEPTED { if { ([UDP::local_port] != 1645) && ([UDP::local_port] != 1646) && ([UDP::local_port] != 1812) && ([UDP::local_port] != 1813) } { log local0. "packet on port [UDP::local_port] dropped" drop } else { set CALLID [RADIUS::avp 31 string] persist uie $CALLID log local0. "persisted $CALLID" } } when CLIENT_DATA { if { ([UDP::local_port] == 1646) or ([UDP::local_port] == 1813) } { set CALLID [RADIUS::avp 31 string] set IP [RADIUS::avp 8 ip4] if { $IP != "" } { table set $IP [LB::server addr] 900 log local0. "Radius maps $IP to [LB::server addr] for $CALLID" } } } when LB_SELECTED { log local0. "Selected [LB::server addr] [LB::server port]" } when SERVER_DATA { persist add uie $CALLID log local0. "persist added for $CALLID to [LB::server addr]" }