Hello,
Based on the following link : https://devcentral.f5.com/codeshare?sid=551
You can use SWG and then chain to an upstream proxy
Example 3: Proxy Chaining via Categorization (Requires either an SWG or URL Filtering Subscription)
when RULE_INIT {
log local0. "Proxy Chain iRule"
set static::Proxy_Chain_categories {
/Common/Restaurants_and_Dining
}
set static::Proxy_Chain_debug 1
}
when HTTP_PROXY_REQUEST {
set proxy_chain 0
if { $static::Proxy_Chain_debug } { log local0. "URI: [HTTP::uri]" }
Check for a category match
set reply [getfield [CATEGORY::lookup [HTTP::uri]] " " 1]
if {[lsearch -exact $static::Proxy_Chain_categories $reply] >= 0}{
if { $static::Proxy_Chain_debug } { log local0. "HIT: The category $reply should be bypassed for [HTTP::uri]" }
set proxy_chain 1
}
Check for a URI::host for HTTP connections
if {[URI::host [HTTP::uri]] == "www.cariboucoffee.com"} {
set proxy_chain 1
}
Perform the prescibed action
if { $proxy_chain } {
if { $static::Proxy_Chain_debug } { log local0. "Proxy Chain: [HTTP::method] URI:[HTTP::uri]" }
HTTP::proxy disable
snat 10.10.1.10
pool squid
}
}