Forum Discussion
Nick_67035
Nimbostratus
Feb 24, 2010Client Source routing to virtual servers/pools
Hello All
I have a weird request for F5 and was wondering if anyone here could help me with getting it going.
Basically, a single URL for users to get access to an application whether they are inside the organization (private IP) or outside (public IP). I want to have a single virtual server for load balancing the pool of servers on the backend, but based on whether the user is coming from an internal address or an external address, I want to send the user to different pools on the backend. The internal pool of servers has some additional content and functionality not available to outside users but would like to keep the same host name. Not sure if there is a way to do source-address routing to virtual servers and pools, but any help you can give would be appreciated
Nick
- JRahm
Admin
sure thing. Something like this will address your needs:when HTTP_REQUEST { if { [IP::addr [IP::client_addr]/24 equals "192.168.1.0"] } { pool internal } else { pool external } }
- Nick_67035
Nimbostratus
Citizen_Elah - Colin_Walker_12Historic F5 AccountYes, that's exactly the logic in elah's iRule. If the IP matches the string (or the data group if you replaced the static string with a data group), then send to pool "internal". Otherwise, send to pool "external".
- Nick_67035
Nimbostratus
Awesome...let me test it out and will let you know how it works. I appreciate the help guys. - Nick_67035
Nimbostratus
Hey Guys - JRahm
Admin
it doesn't matter on LTM VE, but you won't want to use the $:: designation on datagroups for CMP systems as it will demote the vip your iRule is attached to.
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