Forum Discussion
jpersin_288375
Nov 17, 2017Nimbostratus
Redirect office 365 from virtual server direct to internet
Hi All,
I have one virtual server and all traffic will come to it. Then I will direct traffic to pool behind that virtual server which consist of two BlueCoat proxy devices.
All traffic except f...
Lee_Sutcliffe
Nov 20, 2017Nacreous
You are using [IP::remote_addr] in the client side context, this will return the client IP, not the IP address of the destination (O345)
Additionally your datagroup contains stings and wildcards. Your iRule will not do a DNS lookup so you will always go into the else condition and go to the pool.
If you want to use domain names (requesting host header) to identify the destination, you should build your datagroup like this:
ltm data-group internal Office_redirect_string {
records {
onedrive.com {}
}
type string
}
And use an iRule like this:
when HTTP_REQUEST {
if {[class match [string tolower [HTTP::host]] contains o365_list]} {
node default_gw
} else {
pool Pool_BC
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects