Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Dos Profiles to single virtual server

mohamedhussien
Nimbostratus
Nimbostratus

dears 

i need a way to choose multi dos profiles to single virtual server according to user agent

as ex: if user agent mobile  dos profile if     

when HTTP_REQUEST {
if {[set ua [string tolower [HTTP::header User-Agent]]] contains "iphone" || $ua contains "ipad" || $ua contains "android"} {
#This client is an iPhone, iPad or an Android device

choose dos profile with specific configuration   

and if browser choose another dos profile with specific configuration  

how can i create this one

3 REPLIES 3

Hi mohamedhussien,

iRule:

when HTTP_REQUEST {
	switch -glob [string tolower [HTTP::header User-Agent]] {
		"*iphone*" -
		"*ipad* " - 
		"*android* " {
			DOSL7::enable dospolicy1
		}
		default {
			DOSL7::enable dospolicy2
		}
	}
}

https://clouddocs.f5.com/api/irules/DOSL7__enable.html

LTM Policy:

319593-1.jpg

mohamedhussien
Nimbostratus
Nimbostratus

hello thanks for your reply you mean that i can use only irule or using only ltm policy or both if available can you give me ltm policy detailed

LiefZimmerman
Community Manager
Community Manager

@mohamedhussien  - If your post was solved it would be helpful to the community to select *Accept As Solution*.
Thanks for being part of our community.