Forum Discussion

Brian_Thompson's avatar
Brian_Thompson
Icon for Nimbostratus rankNimbostratus
Mar 19, 2009

LTM Inline to function as basic Proxy

I need for my inline implementation of LTM to function as a web proxy for servers sitting behind it. I'm not sure if this is an iRule or not

 

 

But this is one of those issues that is so simple it is hard to find good resources on proper configs. I can't use redirects, because the hosts are sitting behind the F5, it will have to proxy the requests.

 

 

How do you accomplish this?

4 Replies

  • Sounds like you just need to use a virtual server and a pool like any other config, unless I'm misunderstanding the question...

     

     

    Denny
  • yeah, the packet dumps I am taking show the requests hitting the VIP, and the "HOST: " header has the actual server the client needs to hit, the servers are physically inline with the BIGIP and the network they are on isn't routable in my core (where the client is), so how do I get the BigIP to connect to the correct host?
  • This is almost for sure overly simple for your setup, but it sounds like you're after something fairly simple. Here's an untested little chunk:

     
     when HTTP_REQUEST { 
      
     LB::reselect  [HTTP::host] 80 
      
     } 
     

    This assumes that the HTTP::host header will render the IP address of the server in question or that the LTM can resolve the name.

    HTH,

    Matt
  • If I understand correctly, you want LTM to perform proxy like function

     

    this reminds me about one of old post (I posted question and got excellent answer)

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=13321658

     

     

    I guess it should be easier for current version of LTM (may not need to modify tmm_base.tcl)