Forum Discussion
Brent_J
Nimbostratus
Apr 29, 2015SWG PROXY CHAINING TO BLUECOAT
Hi, Just wondering has anyone on here chained an upstream proxy to SWG and how was it done. We are currently using a service which uses an upstream Bluecoat proxy to provide our internet service. ...
Yann_Desmarest
Cirrus
Mar 17, 2016Hello,
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
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
