Forum Discussion
Mike_Breeden_62
Nimbostratus
Apr 30, 2014Rewrite IE11 user agent
We have a situation where any IE11 users outside our company going to Microsoft Exchange OWA are forced to use the light version of OWA since it does not see IE11 as a compatible browser version. ...
nitass
Employee
May 01, 2014e.g.
config
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 9
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal testip_class
ltm data-group internal testip_class {
records {
172.28.24.0/24 { }
192.168.206.0/24 { }
}
type ip
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qu
Configuration Items:
qux qux1813 qux80
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [class match -- [IP::client_addr] eq testip_class] } {
if { !([string tolower [HTTP::header User-Agent]] contains "msie 11.0") } {
HTTP::header replace "User-Agent" [string map {")" "; MSIE 11.0)"} [HTTP::header User-Agent]]
}
}
}
}
trace
[root@ve11a:Active:In Sync] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.24.1(34504) <-> 172.28.24.10(80)
1398915199.2349 (0.0025) C>S
---------------------------------------------------------------
GET / HTTP/1.1
Host: 172.28.24.10
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
---------------------------------------------------------------
New TCP connection 2: 200.200.200.14(34504) <-> 200.200.200.101(80)
1398915199.2367 (0.0016) C>S
---------------------------------------------------------------
GET / HTTP/1.1
Host: 172.28.24.10
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0; MSIE 11.0) like Gecko
---------------------------------------------------------------
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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