# APM - Web Application Split Tunnel

**URL:** <https://community.f5.com/t/apm-web-application-split-tunnel/1005>\
**Category:** Technical Forums\
**Tags:** app-sec, big-ip-access-policy-manager-apm, security\
**Created:** [June 16, 2011, 4:17am UTC](https://community.f5.com/t/apm-web-application-split-tunnel/1005 "2011-06-16T04:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blacksan\_10396](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@blacksan\_10396](https://community.f5.com/u/blacksan_10396)\
**Post date:** [June 16, 2011, 4:17am UTC](https://community.f5.com/t/apm-web-application-split-tunnel/1005/1 "2011-06-16T04:17:56Z")

</div>

Does anyone have any examples to create a split-tunnel environment like the Firepass?

I am trying to create the following scenario which is easy with the Firepass:

1: Split-Tunnel ACL - example: [www.f5.com](http://www.f5.com)

2: Rewrite ACL - example: \*.f5.com

3: Default Rewrite Rule - Bypass Rewrite Engine like links on [devcentral.f5.com](http://devcentral.f5.com) to [www.gartner.com](http://www.gartner.com)

4: Deny ACL - example: [devcentral.f5.com/adminconsole](http://devcentral.f5.com/adminconsole)

5: Allow ACL - example: [devcentral.f5.com](http://devcentral.f5.com)

6: Default ACL - Deny All - this will block [support.f5.com](http://support.f5.com) but not [www.gartner.com](http://www.gartner.com)

So far the APM is a little reversed concept:

1: Default Rewrite Rule - Rewrite everything

2: Application Web Application ACL

3: Flexible L7 ACL

I am assuming I can use I-Rules REWRITE\_RESPONSE\_DONE but I don’t know the command to ignore the Rewrite Engine for weblinks.

1: Create a datagroup to bypass ACL = [www.f5.com](http://www.f5.com)

Scan website for links and compare to datagroup like

if { [matchclass bypass-web-group equals “$[HTTP::host]”] }

Do not Rewrite links

2a: Create Application Web Application for all websites which needs to be rewrite - \*.f5.com over 80/443

2b: Create a Datagroup which matchs the ACL on Web Appliation

3: Next level of I-rule will scan website for links and compare to the next datagroup like

if { [matchclass rewrite-web-group not equal “$[HTTP::host]”] } - Rewrite all other links - [www.gartner.com](http://www.gartner.com)

4: Create a ACL to block like [devcentral.f5.com/adminconsole](http://devcentral.f5.com/adminconsole)

5: Create a ACL to Allow website like [devcentral.f5.com](http://devcentral.f5.com)

6: Create a Bottom-ACL to block all websites

If we can’t control Rewrite engine, is there a way to inject around the web-links before it gets to the APM?

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [June 20, 2011, 6:13pm UTC](https://community.f5.com/t/apm-web-application-split-tunnel/1005/2 "2011-06-20T18:13:02Z")

</div>

Hi blacksan,

I think we’ll have an updated set of docs on the APM wiki for this shortly. You might try talking with your F5 or partner SE for details in the meantime.

The titles will be:

APM Portal Host Rewrite

REWRITE::enable|disable

Aaron
