Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

Route SSH connections by username

$
0
0

I would like to identify the username in an incoming SSH connection and pass it on to a Lua script. Then from that Lua script I can decide what backend to route that connection to.

For example someone may connect using:

ssh averyniceusername@ssh-loadbalancer.mydomain.tld

HA Proxy will provide the Lua script with the username part averyniceusername and through whatever logic will decide that the backend server this connection should be directed at is 192.168.0.123. Or do I need to parse out the username from within the Lua script?

Is any of what I am suggesting possible?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>