Forum Discussion
monica_74227
Nimbostratus
Oct 20, 2009Loadbalancing Traffic for Outbound
Hey gus,
I want to know if we could use Ratio method for the outbound traffic with LC. If we can, How to set up and how to define the iRule.
I guess we may define the two...
monica_74227
Nimbostratus
Oct 21, 2009okay, thank you for your quickl reply.however maybe I need to use irule to do something else, just like the following:
rule iRule_internal_out {
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::cnc_class]} {
pool cnc_ratio_pool
} elseif { [matchclass [IP::local_addr] equals $::ct_class]} {
pool ct_ratio_pool
} else {
pool cnc_ratio_pool
}
}
when LB_SELECTED {
if { [IP::addr [IP::client_addr] equals 172.16.3.X] } {
switch{IP::addr [LB::server addr]}
{
221.218.248.145 {snatpool snat_ct_mail}
222.35.42.97 {snatpool snat_cnc_mail}
}
} else {
snat snat_cnc_default
}
}
}
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