How To Proxy / Tunnel External URLs Through F5
Hello,
I'm looking to essentially tunnel web requests for a select few external URLs through an F5, and I'm having trouble getting it working.
I've created a FQDN node, for an external domain which I do not own, let's say external.com. This node auto-populates it's configuration with external IPs returned from a DNS query of external.com.
I then attached that FQDN node to a new pool, then created a new virtual server with the pool attached.
I then created an internal DNS record to point to the new VIP of the virtual server. Let's say that record is internal.com.
I then created an irule, upon HTTP_REQUEST to re-write the host header from internal.com, to external.com. I also created an irule upon HTTP_RESPONSE, to re-write the location header from external.com, back to internal.com.
When I try to connect to internal.com (the VS VIP), the connection is refused, and never gets forwarded to the FQDN node members (external.com).
Am I missing something in this config? It seems like it should be pretty straight forward to tunnel / proxy connections for a specfic external domain through an F5, and have that external domain see the source IP of the request as the Big IP, but it seems to be a bit more difficult than anticipated.