Forum Discussion
rewiting of URL to two bluecoat
hello,
I've one F5 with GTM. my problem is for a proxy.pac who are in the bluecoat.
When my pc GET http://toto.domain.com:8080/proxy.pac the F5 forward to one of my bluecoat the request. But my bluecat don't reponse to this request because it don't know toto.domain.com.
I would like my F5 "rewrite" this request toto.domain.com to "bluecoat1.domaine.com" or "bluecoat2.domain.com"
bluecoat1 and bluecoat2 are in a pool.
i've thinking to an irules but i don't know how to make this one.
excuse me for my english !
thank you for your help
7 Replies
- Mohamed_Lrhazi
Altocumulus
GTM is a DNS server. Did you mean to say GTM? if yes, is the box also licensed for LTM?
If not, then I am afraid the answer is no, you cannot. GTM recieves a DNS request and answers with a DNS response, no "redirects"
Thanks,
Mohamed. - dralom_31747
Nimbostratus
yes i've a license for LTM - Mohamed_Lrhazi
Altocumulus
OK. Let me help you rephrase your problem:
In LTM you have an http Virtual Server configured and is receiving your clients http requests, on port 8080?
this virtual server is then load balancing the requests to two back end servers in a pool.
You want the Host header to be rewritten before the request is submitted to the backend servers?
The replacement header is based on the original header? or is it static?
Thanks,
Mohamed. - dralom_31747
Nimbostratus
it's all right !
it's static.
thank you for your help - Mohamed_Lrhazi
Altocumulus
The Host header you want to set is static, but varies based on the selected pool memebr, right?
If we selected blucoat1, set host header to: bluecoat1.domaine.com
If we selected blucoat2, set host header to: bluecoat2.domaine.com
This thread seems to be about similar need and it posts an irule you might be able to reuse:
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1174645/showtab/groupforums/Default.aspx
You dont need datagroups if all you need is the logic above. - Mohamed_Lrhazi
Altocumulus
Maybe something like:when HTTP_REQUEST_SEND { set server [LB::server addr] clientside { if { [IP::addr $server equals 10.0.0.1] } { HTTP::header replace Host "bluecat1.dom.ain" } if { [IP::addr $server equals 10.0.0.2] } { HTTP::header replace Host "bluecat2.dom.ain" } } } - dralom_31747
Nimbostratus
great !
thank you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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