Forum Discussion
Peter_Z
Cirrus
Nov 08, 2010Radius Loadbalancing with iRule
Hello,
We need to write an iRule to loadbalance the RADIUS traffic. The users are authenticating with RADIUS servers which are load balanced on the F5 LTM. The ISP is doing a NAT so that ev...
Peter_Z
Cirrus
Nov 11, 2010I'm trying to build similar iRule (starting from the switch command, rest is ommited):
switch $attr_id {
1 { if the type of attrbuite is RADIUS_ATTR_USER_NAME
binary scan $rest_string $ff attr_value rest_string
set USER_NAME [substr $attr_value 0 "@"]
log "AAA ID: $attr_value User: $USER_NAME"
persist uie $USER_NAME
if { ($USER_NAME ends_with "a") or ($USER_NAME ends_with "b") }
{
log "Username $USER_NAME ends with a|b"
pool RADIUS_POOL member 10.20.0.201
}
elseif { $USER_NAME ends_with "t"}
{
log "Username $USER_NAME ends with t"
pool RADIUS_POOL member 10.20.0.202
}
else {log "Username $USER_NAME"}
}
default { binary scan $rest_string $ff attr_value rest_string }
}
}
}
}
The problem is, that if we remove the default pool from the VS configuration, the traffic is never sent to the backend server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
