Forum Discussion
franl_104847
Nimbostratus
Jul 22, 2007drop connection on stream match
Hi,
Following the recent thread entitled "Log IMAP user name", I found the code needed to extract the user name from an imaps session terminated on the ltm. Thanks! That was really handy. ...
franl_104847
Nimbostratus
Jul 24, 2007This seems to work ok too...
when CLIENT_ACCEPTED {
STREAM::enable
STREAM::expression @LOGIN\ .*@
}
when STREAM_MATCHED {
set loguser [getfield [STREAM::match] " " 2]
STREAM::disable
if { [matchclass $loguser equals $::ok_users] } {
log local0.info "allow valid user $loguser"
} else {
log local0.info "drop illegal user $loguser"
drop
}
}Thanks,
Fran
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