Forum Discussion
Wiljam_98380
Nimbostratus
Nov 04, 2009Redirect From port :80 to :8000
I am trying to load balance people soft though our F5's and I am running into a problem. right now we have the production environment on the Cisco CSM's and it works normally.
When we move that VIP to the F5's we are not able to access the page unless we put :8000 behind the VIP.
My question is. Is there a way to convert traffic destine to 192.168.1.1:80 to say 192.168.1.1:8000.
We have a test environment that has the :8000 in the URL but we don't want to place that in the production URL. Everything on the Test environment works as desired.
Any help would be appreciated. Thanks
- Shane_Winters_6
Nimbostratus
Would you please add the config from the CSM as well as the F5? - hoolio
Cirrostratus
I would think there is a way within Peoplesoft to configure the app to use standard port 80 references to itself instead of port 8080 (even if it's listening on port 8080). If you do want to fix this with LTM, you could use an iRule which rewrites the response headers and content using a stream profile and STREAM::expression iRule:when HTTP_RESPONSE { Rewrite redirects to remove the pool member's port From http://devcentral.f5.com/wiki/default.aspx/iRules/RewriteHTTPRedirectPort.html 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 :8080/ with / HTTP::header replace Location [string map ":[TCP::remote_port]/ /" [HTTP::header value Location]] } Remove any instance of the pool member's port from response content This requires adding a blank stream profile to the virtual server From http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace :8080/ with / STREAM::expression "@:[TCP::remote_port]/@/@" Enable the stream filter for this response only STREAM::enable } else { Disable the stream filter by default STREAM::disable } }
- Wiljam_98380
Nimbostratus
I have no configuration control over the peoplesoft application. - The_Bhattman
Nimbostratus
Why couldn't you create a vip on port 80 rather then ANY? The VIP setting you should have address translation and port translations checked. - L4L7_53191
Nimbostratus
Agreed CB. Also use an HTTP profile on this virtual. But before you go much further have a look at the deployment guide: http://www.f5.com/pdf/deployment-guides/f5-peoplesoft-dg.pdf - Wiljam_98380
Nimbostratus
I appreciate all the replies. The problem that I was having was the port translation was not checked. i found that if you click it and then change the port it clears the click on port translation. but basically that was the one little box I was looking for. I just have to get it in Production and verify that I am right. Thanks for all the help! - The_Bhattman
Nimbostratus
Yep that would do it. Glad that you find your solution.
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