Forum Discussion
Eric_Frankenfie
Apr 29, 2011Nimbostratus
Forward Traffic to Proxy Server
I have an application server on the inside of our network that needs to send HTTPS soap messages to one of our clients. No devices on our network have direct access to the Internet; rather all outbou...
The new request is not being fully constructed. Rather it is appearing on the Proxy server as 'GET /samltest/samltest.asp' opposed to ‘GET http://dalvdmz08.carreker.com/samltest/samltest.asp’ and the Proxy server is denying the request with the following error:
Error Code: 502 Proxy Error. The Uniform Resource Locator (URL) does not use a recognized protocol. Either the protocol is not supported or the request was not typed correctly. Confirm that a valid protocol is in use (for example, HTTP for a Web request). (12006)
Here is the iRule I have configured. Any help would be greatly appreciated.
Source NAT (SNAT)
when CLIENT_ACCEPTED {
snat 10.206.1.245
log local0. "iRule SCO-Proxy - Setting SNAT to 10.206.1.245"
}
Search for Bank Name
when HTTP_REQUEST {
log local0. "iRule SCO-Proxy - HOST: [HTTP::header host]"
log local0. "iRule SCO-Proxy - PATH: [HTTP::path]"
if { [string tolower [HTTP::path]] contains "/adirondacktrust" } {
log local0. "iRule SCO-Proxy - Yes URL contains /adirondacktrust"
Rewrite the URI
HTTP::uri "/samltest/samltest.asp"
log local0. "iRule SCO-Proxy - New URI is [HTTP::uri]"
Rewrite the Host header
HTTP::header replace host "dalvdmz08.carreker.com"
log local0. "iRule SCO-Proxy - New host is [HTTP::header host]"
Log Re-written URL
log local0. "iRule SCO-Proxy - New URL is [HTTP::header host][HTTP::uri]"
use pool proxy-isa} else {
discard
log local0. "iRule SCO-Proxy - The request was discarded"}
}
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