Forum Discussion
Paul_Slosberg_8
May 17, 2007Historic F5 Account
A better way
Greetings,
Im trying to grab the last octect of the client adress so I can then use that to send the thraffic to the proper pool. I will have 254 pools that I need to send traffic too. Im trying t...
Paul_Slosberg_8
May 21, 2007Historic F5 Account
Ok sorry to be vague. I was told that by removing the [brackets] from a command I can set values such as HTTP::uri /something/here. I then thought I may be able to use the same logic to the TCP::local_port command. I actually have this iRule saved on my 9.3 machine.
when CLIENT_ACCEPTED {
TCP::local_port 4[format "%.3d" [getfield [IP::local_addr] "." 4]]}I didn't think it was going to work and I was surprised that it saved with out error.
On the VS and pool issue. The iRule that you wrote is great and it works perfectly. I have a network virtual 192.168.1.0/24:any and pools mypool_4001 mypool_4100 ect. Works great.
What I was trying to accomplish with translating the port. Was the further reduction in objects on the configuration.
It was a shot in the dark.
I was hoping to have a network virtual
192.168.1.0/24:any
that would point to a
default pool with servers X Y Z
When a request that was destined to the 192.168.1.0/24 network with an IP adress of 192.168.1.123
BIP-IP would inturn translate the port to 4123 and send to the default pool member. Not sure if this is possible.
thanks
Recent Discussions
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