EldoS | Feel safer!

Software components for data protection, secure storage and transfer

limit tunnel count

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 01/28/2011 06:48:57
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

how can I limit tunnel connections number in "local port forwarding" ?
Posted: 01/28/2011 06:51:32
by Ken Ivanov (Team)

Could you please clarify whether you are asking about client or server components?
Posted: 01/28/2011 12:06:13
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

in Client side.
Posted: 01/28/2011 12:12:09
by Ken Ivanov (Team)

You can handle the TElSSHLocalPortForwarding.OnAccept event and reject all the connection requests if the number of active tunnels exceeds some threshold value.
Posted: 01/28/2011 14:54:08
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

TunnelCount property in "local port forwarding" component don't work correctly, and always return 1.

SecureBlackbox - version 8.1.192 (VCL)
Posted: 01/28/2011 15:02:51
by Ken Ivanov (Team)

Yes, it returns 1 unless you are forwarding more than one port.
Posted: 01/29/2011 14:06:08
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

so, which property does return number of connections ?
Posted: 01/29/2011 14:32:36
by Ken Ivanov (Team)

There's no such property. Please use OnConnectionOpen and OnConnectionClose events to track connection opens and closures. This way, the number of active forwarded TCP connections will be equal to the difference between the number of opens and closures.
Posted: 02/01/2011 12:35:30
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

thanks for your answers.
and finally, does "local port forwarding" have ability to hold a "forwarding connection" and release it when we want.
if not, could you please tell another way to do this.
because I don't want to reject a connection that exceeds from threshold value , and want to keep it in queue
Posted: 02/02/2011 05:11:06
by Ken Ivanov (Team)

Sorry, this feature is not available at the moment. Actually, your goal is hardly achievable from technical point of view. Once incoming socket connection is accepted, the party can start sending data (even though the forwarding channel itself is not ready). I.e. the component will have to cache these data somewhere until the channel is created, consuming extra memory resources.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.



Topic viewed 1403 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!