Forum Discussion
Eddie_27920
Nimbostratus
Jan 07, 2015New to iRules and trying to get port translation to work
I have a website that is HTTP, a VIP built on HTTP with the following iRule:
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { $host eq "solidwaste.dev.mesaaz.gov"} {
pool solidwaste.de...
Eddie_27920
Nimbostratus
Jan 07, 2015Thanks, I'll give this a try. To answer your question this is the actual url that should take me to the back end server on port 57070 http://swfm1.dev.mesaaz.gov/fm_http/
See the customer enters this from the Internet in their browser then hits the VIP solidwaste.mesaaz.gov within that VIP is the iRule so basically all 3 url's go to the same VIP but have different pools to be directed to. Hope that helps.
Michael_Jenkins
Cirrostratus
Jan 07, 2015Yea. the connection to the back end server will go on whatever port you specify on the pool member. So, you're assigning pools based on host names, and those pools are telling the F5 to connect to the specific port on the node. The user will still use the same url as normal.
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