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 destined to a specific destination (non loc al) to a gateway address (FW)?
Hopefully that make sense.
Thanks,
Christopher G Davis
Sr. Network Engineer
SITA Atlanta Data Center
5 Replies
- Deb_Allen_18Historic F5 Accountmost likely. something like this:
would get you started.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 } }
Each pool member would ideally be monitored with a transparent monitor targetting a host one hop past it.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 } }
- Chris_G_Davis_1
Nimbostratus
Thanks for the info. - Deb_Allen_18Historic F5 AccountVS config would use one of the iRules above as its only resource.
- Chris_G_Davis_1
Nimbostratus
Thanks for your help!!! - Deb_Allen_18Historic F5 Accountnp
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