Forum Discussion
Rise_77519
Nimbostratus
May 22, 2012reject client user based on username
Hi,
I tried to accomplish my purpose with the below irule but it did not work. I would like to deny user when he tried to login my application.Other users can login. I could not understand that what is the wrong in my irule or it is true way to accomplish my porpose?
Thanks.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if { [TCP::payload ] contains "david" } {
reject
} else {
pool my_web_pool
}
TCP::release
}
- Michael_Yates
Nimbostratus
Hi Rise, - Rise_77519
Nimbostratus
Hi Michael, - hoolio
Cirrostratus
What protocol is the application using? Is the username included at the beginning of each TCP connection, each TCP packet, etc? - Rise_77519
Nimbostratus
hi Hoolio, - hoolio
Cirrostratus
Hi Rise, - Rise_77519
Nimbostratus
ok, how I will reject it then? - hoolio
Cirrostratus
You can still reset the connection with reject or if you add an HTTP profile to the VS, you can send an HTTP response with HTTP::respond. - Rise_77519
Nimbostratus
Hi Hoolio,
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