Forum Discussion
eugenix_116516
Nimbostratus
May 08, 2013Help with Port Translation
Apologies in advance if this is the wrong forum or place to ask this question, but I can't seem to figure this out.
We have a Java Web Server application (ManageEngine's AD Self Service)...
eugenix_116516
Nimbostratus
May 10, 2013Yes, I'm able to ping and telnet to 443 on the VIP IP.
Is this something I would create as an iRule, and for my problem, would I change port 9443 to port 9251? I'm not quite sure what I need to change in the example to tailor it to my problem.
Especialliy in regards to the line:
updated: [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]]"
when HTTP_RESPONSE {
Check if server response is a redirect
if { [HTTP::header is_redirect]} {
Log original and updated values
log local0. "Original Location header value: [HTTP::header value Location],\
updated: [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]]"
Do the update, replacing in this case :9443/ with / (where 9443 is the stproxy port)
HTTP::header replace Location [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]]
}
}
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