Forum Discussion
PiotrL
Cirrus
Dec 18, 2015iRule size limitation
Hi, iRules are limited to 65,520 characters (SOL9204). Is there any way to split an oversized irule into 2 irules ?
I have a following irule (each client is directed to its own port on a server 10.55...
Hannes_Rapp
Nimbostratus
Dec 18, 2015Write a new iRule where you use Data Group.
ltm data-group internal data_www.someapp.com_sourceIP_destPort_pairs {
records {
10.10.10.11/32 {
data 10001
}
10.10.10.12/32 {
data 10002
}
}
type ip
}
iRule:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals data_www.someapp.com_sourceIP_destPort_pairs] }{
node 10.55.55.55 [class match -value [IP::client_addr] equals data_www.someapp.com_sourceIP_destPort_pairs]
}
}
Thats all you need, and it will achieve the same results of your 65k digit Switch-Monster.
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