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.
Jayme_41167
Nimbostratus
Oct 19, 2009Hi Aaron,
Sorry, but there were errors:
01070151:3: Rule [proxy_irule] error: line 6: [parse error: missing close-brace] [{ log local0. "[IP::client_addr]:[TCP::client_port]: New HTTP [HTTP::method] request to [HTTP::host], [HTTP::uri]" Check if host header has a port if {[HTTP::host] contains ":"}{ Scan the host header to parse the host and port if {[scan [HTTP::host] {%[^:]:%s} host port] == 2}{ log local0. "[IP::client_addr]:[TCP::client_port]: \$host:\$port: $host:$port" } else { Host header didn't have a value for host and port if {not ([info exists host]}{ set host "" } else { set port "" } } else { Host header didn't have a port set host [HTTP::host] set port "" } Check if the host header isn't an IP address (ie, it contains an alpha character) if {[string match {*[a-zA-Z]*} $host]}{ log local0. "[IP::client_addr]:[TCP::client_port]: Host not an IP: [HTTP::host]"
My LTM is version 10.0.1.
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