We are using the LTM to direct traffic to our proxy servers it is currently in line with our firewall and We are using the following IRule to bypass the proxy for http, we need to do the same type of thing with HTTPS and FTP but are running into problems. we have tried changing to HTTP_REQUEST to CLIENT_ACCEPTED and HTTP::host to URI::host
when HTTP_REQUEST { if { [class match [string tolower [HTTP::host]] contains bypass_list] } { pool External_gateway } }
we have the 0.0.0.0/443 and 0.0.0.0/21 virtual servers set to our proxy pool, we only want specific sites listed in bypass_list to go to the external gateway.
The most immediate problem, I’m assuming here, is that you’re trying to get the HTTP host name inside an encrypted 0.0.0.0:443/0 VIP. You would need to decrypt the SSL to know what it was, and that would be difficult given the wildcard config. Can you differentiate the bypass list by IP address instead?
No need to decrypt the packet. This is a transparent proxy, so the client will have resolved the name to the correct address and [IP::local_addr] will be the remote server’s IP address per nitass’ example.