Forum Discussion

Tyron_Fourie_18's avatar
Feb 20, 2017

Passing on url in header to LB Pool.

Hi,

 

With out current setup we have varnish servers that will treat traffic differently depending on what url is received in the header from the client making the request.

 

These are being moved over to the BIG-IP's now and I need the LTM to pass on this info to the varnish servers.

 

What would be the best way to accomplish this?

 

4 Replies

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Can you be more specific about your requirement? An existing Vanish rule would help.

     

  • I need to pass the url the client is visiting to the backend servers in the header.

     

    needs to be passed on to the pool member.

     

  • The pool members will see , that does not change automatically. The destination (and if necessary, the destination port) will be translated to the server IP address, and translated back in the response when passing the F5 unit.

    Here is the output of a quick tests I did.I ran the command

    curl --http1.1 http://www.example.com/
    , in a pc with an entry in the host file to point that name to the F5 virtual server.I ran a tcpdump in the back end server, and opened the capture with wireshark.

    Frame 4: 145 bytes on wire (1160 bits), 145 bytes captured (1160 bits)
        Ethernet II, Src: Vmware_df:04:b9 (00:0c:29:df:04:b9), Dst: Vmware_82:67:2f (00:0c:29:82:67:2f)
        Internet Protocol Version 4, Src: 10.0.0.32, Dst: 172.16.0.11
        Transmission Control Protocol, Src Port: 60618, Dst Port: 80, Seq: 1, Ack: 1, Len: 79
        Hypertext Transfer Protocol
            GET / HTTP/1.1\r\n
            Host: www.example.com\r\n
            User-Agent: curl/7.50.1\r\n
            Accept: */*\r\n
            \r\n
            [Full request URI: http://www.example.com/]
            [HTTP request 1/1]
            [Response in frame: 6]