Forum Discussion
Jeff_Nguyen_449
Oct 15, 2015Nimbostratus
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 wit...
Mohamed_Lrhazi
Oct 15, 2015Altocumulus
Your code, maybe better formatted:
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]"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects