Forum Discussion
Jayme_41167
Nimbostratus
Oct 17, 2009LTM like Web Proxy (Squid)
Hi all,
I am beginner with the F5.
I need to configure the LTM as a web proxy (squid).
This is possible?
Thanks.
Jayme.
21 Replies
- dom_chang_23836
Nimbostratus
Posted By Fadhil Marus (TSID) on 11/08/2009 9:53 PM
Hi Arron,
it works!! there's SOL5299 for DNS resolution , and the HTTP proxy works like a charm, but still no HTTPS/CONNECT function, any ideas?
Thanks
Fadhil
so what was the irule that worked with plain http? - hoolio
Cirrostratus
Hi Dom,
Fadhil was talking about the iRule posted above:
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=31&postid=85518&view=topic85545
Aaron - dom_chang_23836
Nimbostratus
Thanks Aaron but he reported errors with it, but regardless, found another way around the issue....thanks anyways. - hoolio
Cirrostratus
Yep--which I fixed in the same post. Anyhow, it's not a fully functional rule and I am not sure it's plausible to implement full web proxy functionality in an iRule. So if you've found another solution that would probably be better.
Aaron - The_Bhattman
Nimbostratus
It would be so nice in future versions the iRule unlocked TCL command "http". The things I could do that ;-)
Bhattman - t123444_89792
Nimbostratus
Works great! Had to do some modifications for the port detection, didn't work straight out of the box with v10.1.Check if host header has a port if {$host contains ":"}{
I had to use [HTTP::host] instead of $host there to get it rolling.
Would I be able to make this to do HTTP --> HTTPS transition (with chosen SSL-profile) just by modifying this, or is that too complicated? I mean traffic sent to LTM in private network would be HTTP, and them LTM would send it to public network using HTTPS with chosen profile. - hoolio
Cirrostratus
And actually, you could update the iRule for 10.1+ to use RESOLV::lookup instead of NAME::lookup. The RESOLV::lookup command should be more efficient than NAME::lookup:
http://devcentral.f5.com/wiki/default.aspx/iRules/resolv__lookup
The functional difference between the two is that RESOLV::lookup suspends and returns the result inline, whereas NAME::lookup continues and eventually causes NAME_RESOLVED to fire and then you need to call NAME::response to retrieve it.
Aaron - t123444_89792
Nimbostratus
Thanks for the tips Aaron
If I recall correctly, the problem was that the value of $host didn't contain the port or the colon, so I used [HTTP::host] instead which fixed the issue.
I will try the RESOLV::lookup and SSL profile. - Spidey_29396
Nimbostratus
Hi Aaron,
Do the iRule you provided have URL redirect functionality and do we still need to define pool in the VS? - Spidey_29396
Nimbostratus
Hi Fadhil,
What's the configuration of your VS?
Thanks!
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
