Forum Discussion
Paul_Slosberg_8
May 15, 2007Historic F5 Account
Multiple Port translations in an i-Rule
I would like to find an eloquent solution to eliminate 254 VS and 254 pools using an i-Rule. We have servers making http (port 80) requests to VS that in turn are pointing to pool that have specific ...
Colin_Walker_12
Sep 28, 2007Historic F5 Account
I think the big issue you're going to run into here is that, to get the iRule to do the port translation for you, you're going to have to know which member of the pool you want to send the traffic to. This means knowing the IPs of the members in each pool and being able to derive that the same way you are the port.
For example, if you had corresponding IPs to ports, you could do something like:
when HTTP_REQUEST {
set lastOct [getfield [IP::local_addr] "." 4]
set myPool "pool_4"$lastOct
set myMember "192.168.1."$lastOct
set myPort "4"$lastOct
pool $myPool $myMember $myPort
}But there has to be some way to derive the member info, or it's going to make it tough to send traffic to the pool/member/port combo.
Make sense?
Colin
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