Forum Discussion
Craig_Freyman_1
Nimbostratus
Nov 07, 2005Masking URL
So I've got a number of VIP's going into the BIGIP. Each VIP has a URL associated with it. We use these different URLs to manipulate the traffic in different ways before the traffic is sent back to a single Macromedia Breeze server.
Breeze is configured to only listen to requests for: breeze.domain.com
I have a few other domains:
1. nocache.domain.com
2. performance.domain.com
I need both of these domains to be sent back to the breeze server as if they were going to breeze.domain.com - and it would be nice if the user didnt notice any of this.
Is there a way to send traffic to the Breeze server so it thinks all traffic is going to breeze.domain.com ?
I've tried using the HTTP::header replace Host breeze.domain.com in an IRule but it isnt really working. Any ideas out there?
25 Replies
- Why exactly isn't that working? That is what I would have recommended you do...
-Joe - Craig_Freyman_1
Nimbostratus
Well, it is sort of working, however none of my POST data is retained, so I am presented with my login page again. Is there away to retain this info on the redirect?
POST /system/login-content/ok?account-id=7&next=%2Ffreyman&path=%2Ffreyman&set-lang=en HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://performance.telept.com/freyman
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: performance.telept.com
Content-Length: 67
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: BreezeLoginCookie=craig.freyman@medpt.com; BREEZESESSION=breezhw8zxggtmp64dyaq
login=craig.freyman@medpt.com&password=******* - I don't think there is a way to include POST data on a redirect as a redirect is just a HTTP response code with a url as a parameter.
If you could provide your network layout along with how you want the HTTP traffic to flow. And add the current iRule you are using....
If all you want to do is to accept traffic for a domain and change that domain when it goes to the backend server, just change the host header and continue the request to the backend server.
Again, if you pass along your config, ins and outs, and your current iRule that will help us help you.
-Joe - Craig_Freyman_1
Nimbostratus
Please see attached net diag. Let me know if this is clear!
Here is the very complex Irule:
when HTTP_REQUEST {
HTTP::header replace Host conference2.telept.com
}
The other nocache rule (noted in the diag) is here:
when HTTP_REQUEST {
set foundmatch 0
if { ([HTTP::uri] contains "Slide") or ([HTTP::uri] contains "ps") or ([HTTP::uri] contains "Master")} {
set foundmatch 1
}
}
when HTTP_RESPONSE {
if {$foundmatch == 1} {
HTTP::header replace Pragma no-cache
HTTP::header replace Cache-Control no-cache
}
}
Let me know if this isnt clear! Thanks again. - unRuleY_95363Historic F5 AccountI'd like to remind users that this forum is more or less a public website. Please be careful that you don't post sensitive information.
Thanks! - Craig_Freyman_1
Nimbostratus
How do I get the output of what the BIG IP is sending to the back end server? I have a sniff from the client machine to the big IP... - JRahm
Admin
tcpdump -ni -w/var/tmp/ -s0 - Craig_Freyman_1
Nimbostratus
tcpdump - Craig_Freyman_1
Nimbostratus
rename that .txt to a .zip - JRahm
Admin
From your dump, it appears your rule is doing what it should:
POST /system/login-content/ok?account-id=7&next=%2Ffreyman&path=%2Ffreyman&set-lang=en HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://performance.telept.com/freyman
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
---------------: ----- -------
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Host: conference2.telept.com
Content-Length: 67
Connection: Keep-Alive
Cache-Control: no-cache
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
