Forum Discussion
El_Jefe
May 10, 2011Nimbostratus
IP Forwarding question
OK - So, I have a situation where I want the user to type in "http://virtualserverserver.xyz.com/abc" in the browser, and have the F5 re-direct to "http://realserver.xyz.com:8888/abc" This doesn't see...
hooleylist
May 10, 2011Cirrostratus
Hi,
Do you just need to have destination IP and port translation performed? Or do you need to rewrite the Host header value based on which server receives the HTTP request?
For the former, LTM will do this by default as long as you enable address and port translation on the virtual server properties. This is enabled by default for a standard TCP virtual server.
For the latter, you can use an iRule like this:
http://devcentral.f5.com/wiki/default.aspx/iRules/rewrite_host_header_to_server_name.html
If you're running v10, you should update the above codeshare example to use the class command instead of the findclass command:
http://devcentral.f5.com/wiki/default.aspx/iRules/class
Aaron
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