# Bypass Host

**URL:** <https://community.f5.com/t/bypass-host/70035>\
**Category:** Technical Forums\
**Tags:** devops\
**Created:** [June 29, 2022, 2:40pm UTC](https://community.f5.com/t/bypass-host/70035 "2022-06-29T14:40:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jair\_Candia](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@Jair\_Candia](https://community.f5.com/u/Jair_Candia)\
**Post date:** [June 29, 2022, 2:40pm UTC](https://community.f5.com/t/bypass-host/70035/1 "2022-06-29T14:40:14Z")

</div>

Hi

I have multiples websites hosted in same virtual server. But these websites are from differents domains; e.g. “[corporate.com](http://corporate.com)” and “[corp.net](http://corp.net)”

“[corp.net](http://corp.net)” use letsencrypt for the certificates, so these changes every 3 months. When I redirect traffic to BigIP virtual server I can access “[corporate.com](http://corporate.com)” but “[corp.net](http://corp.net)” shows me SSL certificate warning and aint no able to access it, because it’s getting the [corporate.com](http://corporate.com) certificate.&nbsp;Both websites use https.

I need an iRule to bypass the traffic of [corp.net](http://corp.net), I tried with:

when HTTP\_REQUEST {  
if { [HTTP::host] contains “[corp.net](http://corp.net)”{  
ASM::disable  
SSL::disable clientside  
SSL::disable serverside  
pool pool\_10.0.1.1  
}  
}

But it does not work. Any idea?

---

<div class="post-metadata">

**Author:** ![Nikoolayy1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nikoolayy1/32/3589_2.png) [@Nikoolayy1](https://community.f5.com/u/Nikoolayy1)\
**Post date:** [June 29, 2022, 4:04pm UTC](https://community.f5.com/t/bypass-host/70035/2 "2022-06-29T16:04:14Z")

</div>

Google the ASM::disable and SSL::disable as they can be used at specific F5 events. I still do not know what are you trying to do but for stopping something like SSL decryption based on SNI or CN in the common name it will be really complex and you may look at if it helps:

> **[d3832c38672b24b7f9849022c8776e725fcd3f32.pdf](https://cdn.studio.f5.com/files/k6fem79d/production/d3832c38672b24b7f9849022c8776e725fcd3f32.pdf)**
>
> 1930.79 KB

---

<div class="post-metadata">

**Author:** ![CA\_Valli](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@CA\_Valli](https://community.f5.com/u/CA_Valli)\
**Post date:** [July 4, 2022, 9:00am UTC](https://community.f5.com/t/bypass-host/70035/3 "2022-07-04T09:00:07Z")

</div>

Hello&nbsp; @Jair_Candia

If I’m interpreting te problem right, you have SSL issue due to SNI mismatch when you access [corp.net](http://corp.net) service.

My guess would be, your VS might be missing SSL configuration. I wanted to understand better if you have any restraints in importing [corp.net](http://corp.net) certificate on F5 because this will make configuration easier.

For multiple SNI support you can configure a second clientSSL profile with explicit “[corp.net](http://corp.net)” SNI (or wildcard equivalent) and make “[corporate.com](http://corporate.com)” clientSSL profile default for all SNI. Of course, if certificate changes every three months you should remember to upload it on F5 every time.

If you need F5 to pass-through SSL for [corp.net](http://corp.net) only, configuration is trickier. Easiest way, if possible, is to have different Virtual Servers - one with and one without SSL profiles.

If they must coexist on same VS, you need to perform the SSL disable operations ar right time in traffic flow. HTTP\_REQUEST event is too late since SSL handshake already happened.&nbsp;I believe your best bet would be CLIENT\_ACCEPTED event - this is TCP handshake, but in this case you should write matching conditions based on TCP properties. Or, (I’m not sure about this), you might be able to disable SSL on CLIENTSSL\_CLIENTHELLO event and in this case you should be able to match SNI. You should also disable serverSSL on matching serverside event.
