Forum Discussion
iRule to start conditionnaly oneconnect
Is it possible to create an iRule that would match some specific clients source IP address (WAF farm) and apply accordingly a oneConnect profil ?
Idea is to enable connection reuse only for WAF servers (persist on XFF) but not for other basic clients (persist on sourceIP).
a try :
when CLIENT_ACCEPTED { if {[IP::addr [IP::client_addr] equals 10.2.0.0/16]} { onconnect myOneConnect <==== this -of course- does not works :( } }
2 Replies
- The_Bhattman
Nimbostratus
Hi Gilles, Have you taken a look at the following post?
https://devcentral.f5.com/questions/oneconnect-with-irule
-=Bhattman=-
- Gilles_MOULIN_2
Nimbostratus
Thank you for the reply...
so the idea is to associate a OneConnect profil to the virtual server and disable the connection reuse when client does not match the expected source :
when CLIENT_ACCEPTED { if { not( [IP::addr [IP::client_addr] equals 10.2.0.0/16] ) } { ONECONNECT::reuse disable } }Correct ?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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