Forum Discussion

Nick_Coelho_338's avatar
Nick_Coelho_338
Icon for Nimbostratus rankNimbostratus
Nov 21, 2005

Insert server address

 

i have a BipIP ver 4.2 answering for a website (http://helloworld.com)

 

 

i need that BigIP to insert a different server destination IP address as I am unable change the DNS resolution for helloworld.com to the correct IP

 

 

so, if http://helloworld.com normally resolves to 10.1.1.1 I want the BigIP ansering 10.1.1.1 to write 10.2.2.2 as the new server IP and the client will be routed to 10.2.2.2 but host name will still be helloworld.com

 

 

possible?
  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Nick,

    yes this is possible, it is called redirect. On the box servicing the old address (the one to which helloworld.com resolves) create a rule like this:

    
    rule redirect_helloworld {
        redirect to "http://10.2.2.2/%u"
    }
    virtual 10.1.1.1:80 {
         use rule redirect_helloworld
    }

    You should upgrade to a supported version of BIG-IP. Software support for BIG-IP 4.2 ended last year.
  • Right, this i was trying but it does not keep my host intact.

     

     

    can i keep the helloworld.com hostname intact within the browser Address but have it redirect to a different IP?

     

     

  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    No, redirecting HTTP requests without changin the hostname in the URL is IMHO not possible, because the browser would again use DNS to resolve helloworld.com to the old address. There is no way for a server to tell browser not to do that (which is good because that would otherwise allow very easy website spoofing).

     

     

    The other possibility is to route all requests via the old location i.e. 10.1.1.1 and have the BIG-IP relay the requests to the new server (or another BIG-IP) 10.2.2.2. To achieve this, you need to make the virtual server on 10.1.1.1 use pool with single member with address 10.2.2.2. This is however getting outside of the charter of this forum because it is not related to iRules.