mg2Bsecure
Dec 11, 2019Nimbostratus
Connection Limit iRule vs Pool member connection limit
Hi,
for some reason a pool member connection limit (set to 1) still lets another user connect to RDP. Only when an iRule is applied, it drops additional connections.
Can someone help?
the Rule follows:
--
when RULE_INIT {
set ::active_connections 0
set ::max_connections 1
}
when CLIENT_ACCEPTED {
if {$::active_connections > $::max_connections } {
set over_limit 1
} else {
incr ::active_connections 1
}
}
when USER_REQUEST {
if {$over_limit}{
TCP::respond "connection busy command\r\n"
TCP::close
}
}
when CLIENT_CLOSED {
incr ::active_connections -1
}