on 12-Mar-2015 15:51
Problem this snippet solves:
Creates a virtual server referencing a pool with a basic monitor, a basic TCP profile, a cookie insert persistence profile, a customized HTTP profile with compression & caching, and a generic clientSSL profile.
Tested on EM 1.4.1/LTM 9.4.0 Based on F5 Deployment Guide Deploying F5 with Microsoft Exchange Server 2007
How to use this snippet:
Code :
@define @members description "ActiveSync Pool Members" editable visible default "10.10.10.1:http 10.10.10.2:http" @define @destination description "ActiveSync Virtual" editable visible default "10.12.12.101:https" #F5[Local Traffic / Monitor] #F5[$target_partition$] monitor exch_activesync_http { defaults from http interval 30 timeout 91 } #F5[Local Traffic / Pool] #F5[$target_partition$] pool exch_activesync_pool { lb method least conn monitor all exch_activesync_http members @members } #F5[Local Traffic / Profiles / ClientSSL] #F5[$target_partition$] profile clientssl exch_activesync_clientssl { defaults from clientssl } #F5[Local Traffic / Profiles / HTTP] #F5[$target_partition$] profile http exch_activesync_http { defaults from http-wan-optimized-compression-caching compress keep accept encoding enable redirect rewrite matching compress content type include "text/" "application/(xml|x-javascript)" "application/pdf" "application/vnd.ms-publisher" "application/vnd.ms-powerpoint" "application/vnd.ms-excel" "application/msword" compress content type exclude none } #F5[Local Traffic / Profiles / Persist] #F5[$target_partition$] profile persist exch_activesync_cookie { defaults from cookie mode cookie } #F5[Local Traffic / Profiles / TCP] #F5[$target_partition$] profile tcp exch_activesync_tcp { defaults from tcp } #F5[Local Traffic / Virtual Server] #F5[$target_partition$] virtual exch_activesync_virtual { pool exch_activesync_pool destination 10.133.20.204:https ip protocol tcp profiles exch_activesync_clientssl exch_activesync_http exch_activesync_tcp persist exch_activesync_cookie }