Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > File Transfer

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2013, 08:39 AM
jimbobmcgee jimbobmcgee is offline
Registered User
 
Join Date: Apr 2005
Posts: 21
Alternative means to handle failed authentications

I'm having some trouble preventing spurious connections to my load balanced SFTP servers, because the load balancer proxies the connection to the server, thus obscuring the source IP with its own (making the Deny Hosts feature effective useless).

I appreciate that the lack of SSH inspection is a limitation of the load balancer in question (and not VShell), so I've started looking at possible alternatives, both leveraging the Authentication Failed trigger to do either of the following:
  1. Tally the source port (as determined by the load balancer, and seen by VShell) to the source IP (as seen by the load balancer) and denying said source IP in the load balancer's access list (using the load balancer's API)
  2. Wait a number of seconds (i.e. to significantly slow down the rate of automated connection attempts)
I can't do the first, because there is no substitution variable for the client port that I can use in the trigger, so I can't pass the port number to the trigger script without strenuously mining the log file.

I can't do the second, because the trigger appears to run out-of-band, so the wait does not impose itself on the connection in question. This would probably also affect the first since, if the trigger does not wait, the connection could be gone from the load balancer before the script can tally the port to an IP.

Is there any way I can make the trigger run in-band (e.g. can a "wait for exit" option be added to the trigger definition)?

Instead, is there any way a tarpitting-style wait option could be added natively to the VShell app?

Are there any other thoughts on how I might achieve some measure of control over spurious connections (without resorting to taking the service out of load balancing)?

J.
Reply With Quote
  #2  
Old 10-16-2013, 10:45 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hello J.

What version of VShell is installed?

On what operating system?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 10-16-2013, 10:51 AM
jimbobmcgee jimbobmcgee is offline
Registered User
 
Join Date: Apr 2005
Posts: 21
This particular setup is v3.9.2b556 on Win2008R2...
Reply With Quote
  #4  
Old 10-16-2013, 02:04 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Thanks J!

What do you mean by spurious connections?

Are these connection attempts by unauthorized users?

What problems are the spurious connections causing in VShell?

Are you evaluating VShell or do you have a license?

If the latter, is it for Administrator, Workgroup or Enterprise version?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 10-17-2013, 04:28 AM
jimbobmcgee jimbobmcgee is offline
Registered User
 
Join Date: Apr 2005
Posts: 21
By "spurious connections" I mean regular attempts to break into the SFTP server by unknown parties, either by dictionary or brute force -- the kind of thing that the "Denied Hosts" feature would traditionally prevent.

However, I can't use the "Denied Hosts" feature because I have no way to pass the real source IP address to the VShell instance because the load balancer is proxying the connection (and so, the source IP as seen by VShell is that of the load balancer).

We are running under an unlimited connection license.
Reply With Quote
  #6  
Old 10-17-2013, 10:40 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hello jimbobmcgee,

Thanks for the clarification.

There is not currently a solution for this available in VShell (or a workaround we could think of that would be applicable).

I have added this thread to a feature request in our product enhancement database to add the ability to configure a tarpit-style wait option in VShell (for load balance scenarios where Deny Host will not work). Should a future release of VShell include this feature, notification will be posted here.

If you prefer direct e-mail notification, contact support@vandyke.com and include "Feature Request - Forum Thread #11235" in the subject line.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 10-22-2013, 11:35 AM
jimbobmcgee jimbobmcgee is offline
Registered User
 
Join Date: Apr 2005
Posts: 21
Thanks, Brenda; a tarpitting option would indeed satisfy option #2, provided the delay is not influenced by source IP.

Adding the source TCP port to the list of trigger substitution variables, and adding a 'wait for exit' option to the triggers function would also be welcome features.
Reply With Quote
  #8  
Old 10-22-2013, 03:33 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi jimbobmcgee,

To clarify, VShell's "Authentication failed" trigger is fired only after the user has exhausted the maximum number of authentication attempts and the connection has already been closed.

The maximum number of authentication attempts is configured in the SSH2 / Authentication category of VShell's control panel.

I have created an additional feature request to add a trigger that will fire for each authentication failure (not just when max reached).
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
authentication , triggers , vshell

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:25 AM.