Forum Discussion
Brad_King_11485
Nimbostratus
Mar 17, 2019How to reject IMAPS session if client IP is contained within a data list.
Quite simply, I want to have a data group list with IPs I want to disallow IMAPS access. I have the following code on an IMAPS VIP- port 993 SSL, which does disconnect the session; when CLIE...
Kai_Wilke
MVP
Mar 18, 2019Hi Brad,
you need to change the iRule event to CLIENTSSL_HANDSHAKE (event triggered after TLS handshake is complete) and then use SSL::respond to respond your message through the established TLS channel.
when CLIENTSSL_HANDSHAKE {
if { [class match [IP::client_addr] equals imap_blocked_ips] } {
SSL::respond "* BYE; Service Denied"
drop
}
}
Cheers, Kai
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
