Forum Discussion
Chris_G_Davis_1
Nimbostratus
Jan 26, 2009Routing iRule
Hi,
We have a layer2 configuration on our LTM. There's a down stream FW, behind which the hosts to be load balanced to reside.
Can a iRule be written to sent traffic des...
Deb_Allen_18
Jan 26, 2009Historic F5 Account
most likely. something like this:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::remote_addr] eq 10.0.1.0/24] }{
node
}
elseif {[IP::addr [IP::remote_addr] eq 10.0.2.0/24] }{
node
}
}would get you started.
But really you'd probably want to build the same of gateway pools as firewalls, each using all firewalls in a different priority order, so you have some way to verify the health of the fw before sending traffic to it, and a fallback in case it fails:
pool FW1 {
member :0 prio 100
member :0 prio 50
monitor FW_transparent
}
pool FW2 {
member :0 prio 100
member :0 prio 50
monitor FW_transparent
}
when CLIENT_ACCEPTED {
if {[IP::addr [IP::remote_addr] eq 10.0.1.0/24] }{
pool FW1
}
elseif {[IP::addr [IP::remote_addr] eq 10.0.2.0/24] }{
pool FW2
}
}
Each pool member would ideally be monitored with a transparent monitor targetting a host one hop past it.
Persistence might be required for some apps as well, but might create an undesirable traffic pattern on failback after failover, so think it through & test thoroughly.
/d
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