# Redirect HTTPS traffic to specific node on proxy load balance.

**URL:** <https://community.f5.com/t/redirect-https-traffic-to-specific-node-on-proxy-load-balance/51029>\
**Category:** Technical Forums\
**Tags:** deployment, big-ip-access-policy-manager-apm, irules, security, devops, ltm, application-delivery\
**Created:** [July 7, 2014, 7:46pm UTC](https://community.f5.com/t/redirect-https-traffic-to-specific-node-on-proxy-load-balance/51029 "2014-07-07T19:46:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_Rodrig4](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Marcelo\_Rodrig4](https://community.f5.com/u/Marcelo_Rodrig4)\
**Post date:** [July 7, 2014, 7:46pm UTC](https://community.f5.com/t/redirect-https-traffic-to-specific-node-on-proxy-load-balance/51029/1 "2014-07-07T19:46:43Z")

</div>

Hi, We are load balancing four bluecoat proxy servers (SG900) with bigip. Some times we have problems with persistance and HTTPS traffic. We are trying to create an iRule to redirect all https traffic to a specific node. We already done that succefuly to youtube using this iRule:

when HTTP\_REQUEST { if { [HTTP::host] ends\_with “[youtube.com](http://youtube.com)” } { if { [LB::status pool Pool\_Bluecoat member 192.168.206.11 0] eq “up” } { pool Pool\_Bluecoat member 192.168.206.11 } else { pool Pool\_Bluecoat } } }

This work well for youtube, but this time I would like to send all https traffic to a specific node.

Any ideas on how to do that?

The Virtual server is configured as follows: ltm virtual VS\_bluecoat { destination 10.30.1.10:any ip-protocol tcp mask 255.255.255.255 persist { Hash\_Persistence\_Bluecoat { default yes } } pool Pool\_Bluecoat profiles { http { } httpcompression-tse { } tcp { } } rules { iRule\_select\_pool\_youtube } source 0.0.0.0/0 translate-address disabled translate-port disabled vlans { Fronteira RedeLocal } vlans-enabled vs-index 33 }

The pool: ltm pool Pool\_Bluecoat { description “Pool de equipamentos Bluecoat para proxy.” load-balancing-mode ratio-member members { bc01:any { address 192.168.206.10 description “Proxy Bluecoat 01.” session monitor-enabled state up } bc02:any { address 192.168.206.11 description “Proxy Bluecoat 02.” session monitor-enabled state up } bc03:any { address 192.168.206.12 description “Proxy Bluecoat 03.” session monitor-enabled state up } bc04:any { address 192.168.206.13 description “Proxy BlueCoat 04.” session monitor-enabled state up } } monitor gateway\_icmp }

and we use hash carp to persist the traffic. ltm rule iRule\_Hash\_Persist\_Bluecoat { when HTTP\_REQUEST { persist carp [HTTP::uri] } }

thanks for any help.

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [July 8, 2014, 8:04am UTC](https://community.f5.com/t/redirect-https-traffic-to-specific-node-on-proxy-load-balance/51029/2 "2014-07-08T08:04:14Z")

</div>

but this time I would like to send all https traffic to a specific node.

what about http method (i.e. CONNECT method)?

HTTP::method

> **[DevCentral](https://community.f5.com/)**
>
> DevCentral is an online technical community where engineers and practitioners collaborate, share knowledge, and solve problems related to F5 technologies and industry trends.
