Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Domain Translation useing F5

Hi All,

I have 2 domain (Public, local) the enduser using public one and all servers in the local one, my question is can f5 translate the end user request from public domain to local during the end user request and when the server response from the local to public.

plese see the below chart : Image Text

Thanks

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi AL,
Use this irule:

when HTTP_REQUEST {
    # Check if requested host starts with www.public.com
    if {[string tolower [HTTP::host]] starts_with "www.public.com"}{
        # Replace the host header value with www.local.com
        HTTP::header replace Host "www.local.com"
    }
}
0
Comments on this Answer
Comment made 2 months ago by Al Taj 54

Thanks it's working with request but with response doesn't work.

0
Comment made 2 months ago by John Huttley

This can be tricky to debug. You need visbility as to what is going on. get httpwatch or such and track a working local session. Is the host www.local.com in other places other than the header?

Then get a tcpdump from inside the bigip. from bash run tcpdump -s0 -ni 0.0:nnnp -w /var/tmp/pub.pcap host 10.10.10.10

this will get the incoming connection and also the outgoing connection to the backend.

So long as its not https, you are fine! look at the pcap with wireshark 2.6 or later with the F5 protocol enabled.

set display filter to: http

This will let you see whats going to the backend servers and what they are responding with. Regards,

0
Comment made 2 months ago by Al Taj 54

thnks

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi Al,

F5 has a feature to allow its pool members to be based off of a FQDN rather than an IP address. If you add your pool members as a FQDN node, this means you can have your public domain name resolve to the F5 virtual server address and then have that virtual server send requests to any server attached to your local domain name. The responses will look to the user as if they are coming from the public domain name. Hopefully this solution works for you.

If you have any questions, I am sure I can help.

0
Comments on this Answer
Comment made 2 months ago by Al Taj 54

Thanks Rico,

Can you shear with me the steps to do that,please.

Thanks

0
Comment made 2 months ago by Rico 707

Sure thing.
If you go into the Local Traffic menu and click on Pools, you should be able to edit or create the pool that you need. When you are adding the pool members, click New FQDN Node and type in the Address box your local domain name. This should automatically make a pool member based off of the result of the DNS record for that domain.
It should look like the image below. Image Text As long as the DNS records are set up properly, this should be your solution.

1
Comment made 2 months ago by Al Taj 54

I trying but its doesnt work....

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

F5 has a feature to allow its pool members to be based off of a FQDN rather than an IP address. If you add your pool members as a FQDN node, this means you can have your public domain name resolve to the F5 virtual server address and then have that virtual server send requests to any server attached to your local domain name. The responses will look to the user as if they are coming from the public domain name. Hopefully this solution works for you. FaceTime Android

0
Comments on this Answer
Comment made 2 months ago by John Huttley

Fqdn isn't the answer here since the node addresses are known.

0