Forum Discussion
Joseph_Gallo_31
Nimbostratus
Feb 06, 2008HTTP rewrite
Hello, All.
I am in a crunch here and new to iRules. I need to be able to rewrite our internal server FQDN to our external FQDN Domain Name outgoing to the client. This will ensure that the internal DNS name is not compromised to the outside world. This needs to be added to an existing iRule I have created that redirects the requests to a specified pool.
i.e. myserver.inside.com to outsidename.outside.com
Any assistance would be greatly appreciated.
- Colin_Walker_12Historic F5 AccountWhere is it you need to be able to re-write this, in the packet payload, or in the Location header?
- Joseph_Gallo_31
Nimbostratus
The problem is that SAP has embedded links in the Java Stack that expose our internal server names. When a request from the outside world comes in and something is "clicked" on that response back to the client now has our internal server name.dns.com associated with thus failing the client connection. SAP wants us to rewrite the url at the BigIP from internal DNS to our outside facing FQDN URL. I believe this needs to be in the response in one of my current iRules assoicatied with that Virtual Server, but I do no know. - Wil_Schultz_101
Nimbostratus
You can use the STREAM profile, or if you like to use iRules you can try something like this:when HTTP_RESPONSE { STREAM::enable STREAM::expression "@myserver.inside.com@outsidename.outside.com@" }
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