I just wanted to have someone verfiy if this is the best approach for modifying the default Exchange iApp created irule to also allow Enterprise Vault. I have added the enterprise vault section.
exchange-mail_owa_redirect_irule3
when HTTP_REQUEST { if { [string tolower [http_uri]] equals “/enterprisevault” } then { pool exchange_enterprisevault } else {
if { ([HTTP::uri] == "/") } then {
HTTP::redirect https://[HTTP::host]/owa/
}
Hi Joe, you should not need to modify the iApp template if you are using a recent version.
You should be able to create a separate iRule with the pool command for Enterprise Vault, then use the iRules section in the iApp to attach that iRule to the virtual server.
The most recent version of the template is v1.2.0, which is available on downloads.f5.com.
The /enterprisevault section does not seem to be working but the /owa is working. when HTTP_REQUEST { if { [string tolower [http_uri]] equals “/enterprisevault” } then { pool exchange-mail_enterprisevault } else { if { ([HTTP::uri] == “/”) } then { HTTP::redirect https://[HTTP::host]/owa/ } } }
You need to use the same syntax for scanning the URI: when HTTP_REQUEST { if { [string tolower [HTTP::uri]] equals “/enterprisevault” } then { pool exchange-mail_enterprisevault } else { if { ([HTTP::uri] == “/”) } then { HTTP::redirect https://[HTTP::host]/owa/ } } }
You can use the following log statement to log a message to /var/log/ltm when the Enterprise Vault URI is seen. Also, you don’t need to use “then” after your if statements: when HTTP_REQUEST { if { [string tolower [HTTP::uri]] equals “/enterprisevault” } { log local0. “enterprise vault found” pool exchange-mail_enterprisevault } else { if { ([HTTP::uri] == “/”) } { HTTP::redirect https://[HTTP::host]/owa/ } } }
Still not working as I do not see any traffic hitting pool member. tcltm-irp-1a-lab info tmm[12841]: Rule /Common/exchange-mail_owa_ev_irule : enterprise vault found
Is the Enterprise Vault URI “/enterprisevault” exactly? Try using “contains” instead: when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains “/enterprisevault” } { log local0. “enterprise vault found” pool exchange-mail_enterprisevault } else { if { ([HTTP::uri] == “/”) } { HTTP::redirect https://[HTTP::host]/owa/ } } } Then ssh into the BIG-IP and run “tail -f /var/log/ltm” while you try to connect. You should see that log statement if you are getting a match.
Still nothing to the enterprisevault pool members Apr 17 14:56:25 ltm-irp1a-lab info tmm2[12843]: Rule /Common/exchange-mail_owa_ev_irule : enterprise vault found Apr 17 14:56:36 ltm-irp1a-lab info tmm2[12843]: Rule /Common/exchange-mail_owa_ev_irule : enterprise vault found Apr 17 14:56:38 ltm-irp1a-lab info tmm2[12843]: Rule /Common/exchange-mail_owa_ev_irule : enterprise vault found Using this irule _______________________________________________________________________________ when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains “/enterprisevault” } { log local0. “enterprise vault found” pool exchange-mail_enterprisevault } }
Do your pool members match the encryption state of the server-side connection? For example, if they are expecting an encrypted connection, is the virtual server using a serverssl profile?
I’m using the same VS the Exchange iPP created for all mail services. OA, OWA, AD, AS. I’m just trying to add another pool and use the same VS and URL but look for /enterprisevault. I have my new iRule in top of iRule order under the VS. I see the irule gets hit but no traffic from LTM to the server, when watching tcpdump. I just tried this irule also. ______________________________________________________________________________ hen HTTP_REQUEST { route to pool based on URI value switch -glob [string tolower [HTTP::uri]] { “/enterprisevault*” { pool exchange-mail_enterprisevault } }
Really not sure why you’re not seeing traffic to that pool. If you can post sanitized configurations of your virtual server and pool, I’ll take a closer look. From tmsh, run "list ltm virtual " and “list ltm pool exchange-mail_enterprisevault” and post the output.
I have tried the below irule and for some reason the irule is not directing traffic to the pool specified in the irule. I see traffic going to the default CAS server pool when doing capture thus getting 404 error. when HTTP_REQUEST { route to pool based on URI value switch -glob [string tolower [HTTP::uri]] { “/enterprisevault*” { log local0. “enterprisevault irule found” pool mail_enterprisevault } } }
I discovered that my custom irule for Enterprise Vault was not being used do to the iapp default irules and priorities, logic. So I was able to add a higher priority to my custom irule (when HTTP_REQUEST priority 600) and move to the top of irules on the iApp created exchange VS and it starting working. I have since enabled in the iApp template (Do you want to customize the server pool settings?) to yes and was able to select my EnterpriseVault irule. Any irule added through iApp template will be placed at the bottom of VS irules but should now work as expected.
I had similar problem, what helped me is adding EV rule in existing Exchange iapp iRule combined_persist_irule7, just before default line:
"/enterprisevault*" {
pool /Common/EV_POOL
return
}
default {
This final section takes all traffic that has not otherwise
been accounted for and sends it to the pool for Outlook Web App
if { ...