Forum Discussion
Reverse proxy from internal IP to external url.
I have a need to create a dns record internally for a web address . I then would like the dns record to point to the F5 and have the F5 redirect that address to .
Reason behind this... our branch servers are using ZScaler so when they navigate the internet ZScaler gives them a dhcp address. Our main office has a public facing static IP. Therefore I want to create a dns record for that comes back to my main building to the F5 and then have the F5 redirect the traffic out to the site () but this time the website will think it is coming from the public IP of my main building. This will allow me to create a firewall rule to allow access to this particular website strictly from my main building.
Is this possible?
1 Reply
- Kevin_Davies
Nacreous
You will need to clarify, do you mean this?
- HTTP POST Request -> 302 HTTP Redirect from the iRule
- HTTP POST Request with new destination -> FAIL
- HTTP GET Request with new destination
- JamesB12
Altocumulus
The GET and POST method directly to redirected URL https://xyz.com/* works perfectly ok.
And GET method to actual URL https://abc.com/* , redirects perfectly to https://xyz.com/* with no header content being missed.
only problem is with POST method where the actual URL's https://abc.com/* redirection is working but the header content is being missed - not giving the expected results.
- JamesB12
Altocumulus
I'm trying to preserve data in a HTTP 302 redirect of a POST method
- msenturk
Altocumulus
Try with HTTP::respond 307 for the POST and 302 for the GET
if { [string tolower [HTTP::method]] eq "post" } {
HTTP::respond 307 Location "https://test.example.com" }
Hints:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
- JamesB12
Altocumulus
Was able to resolve by changing redirect to respond 307, Thanks.
Cheers