Forum Discussion
rubbishking_110
Nimbostratus
Mar 25, 2008UDP Profile?
Hi All
I have created an iRules just now, however, it is failed when I tried to assigne to a virtual server.
"01070394:3: UDP::payload in rule (FIP_Route) requires an associated UD...
david_wang_2073
Mar 27, 2008Historic F5 Account
session can be used to for irule to share information between different virtual servers, needn't defind in RULE_INIT.
8 -
{ 8 "Framed-IP-Address"
binary scan $rest_string c4a* IPtmp rest_string
set IP {}
foreach num $IPtmp {
lappend IP [expr ($num + 0x100) % 0x100]
}
set attr_value [join $IP .]
log "Frame-ip-address value $attr_value"
set lll [list $attr_value any]
set sss [session lookup uie $lll]
puts "find $sss"
if {$sss == ""} {
set lll [list $attr_value any]
XXX 7 is an example, set to your real port
session add uie $lll [format "%s:%s" [IP::remote_addr] 8080] 8080 is the port of WAP gateway
}
}
then use following irule for WAP virtual server in CLIENT_ACCEPTED event:
When CLIENT_ACCEPTED {
set lll [list [IP::remote_addr] any]
set sss [session lookup uie $lll]
puts $sss
set ppp [persist lookup uie $lll]
puts $ppp
if {$sss != "" && $ppp == ""} {
XXX use your real pool name
use pool wappool member $sss
} else {
persist uie [IP::remote_addr]
}
}
Above irule is doing what you want: for Radius virtula server add the frame-ip-address and backend server to the session table, then for HTTP or WAP request, search the session table based on source-ip( frame-ip-address) to find out the backend server ip adress.
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
