Kemp Loadmaster Reverse Proxy for SSH

Hello,

i use the Loadmaster as a reverse Proxy for https. That works fine.

Now i want to use it for SSH too. So i added a virtual Service (10.0.0.6:22) and i thought i can configure it like the https Service (10.0.0.5:443).

Create a Content Rule, add a SubVs, add a real Server (Ubuntu Server), Portforwarding from my FritzBox for Port22 and then i can use the subdomain from the rule to connect to the Server with putty.

But after i created the Virtual IP Service, the Status is "down". The Virtual IP dont appears in my FritzBox.

Can someone say me what i have to do?

 

imageimage


  • Hi 413684596692.
    I've been trying to do what you are doing and I'm wondering if you wouldn't mind sharing with me how you do it. Step-by-step will be very helpful since I'm very new with this kemp load balancer. Many thanks in advance.
  • Now i got it :)
    I duplicate from 10.0.0.6:22 to 10.0.0.6:55522
    Then add the realServer 10.0.0.125:22(local Kemp) to this Service and add the rule on my fritzbox to the port 55522 too.
    Done!
    And with this way, i dont have to waste IP-Addresses for new Services rather use only the 10.0.0.6 with differnt Ports.
    Thanks again for ur help!
  • Sry i dont understand it...
    I try it with the loadmaster ssh access self. (Its activated and intern i can connect to it with putty)
    So i duplicate the Service from 10.0.0.6:22 to 10.0.0.7:62438
    Then i delete the real server that comes from the copy and add a new one (IP address from the Loadmaster) with Port 62438.
    On my FritzBox i add a rule for the 10.0.0.7:62438 but when i try to connect with putty to MyDomain:62438 the connection doesnt work.
    I think i missunderstood something, correct?
  • Thomas,
    This can be done with a non-standard port that the user will need to use to connect to the alternate server. Alternatively, another IP can be used.
    To create the second Virtual Service, you're free to stand up a new VS using the method you already underwent. Another way to go about this would be to modify your existing VS > Duplicate VIP > change either the IP, port, or both > Duplicate VIP. From here, simply swap your real servers, which can still listen on port 22.
  • Not a problem, Thomas!
    Content Rules are specific to an HTTP-based VS. For this reason, you wouldn't be able to use Content Rules on the SSH VS.
    As a workaround, I'd recommend simply creating a second VS.
  • So easy :D
    Now it works! Thank u!
    But I noticed one thing now.
    I cant link a rule to the SubVS like i do it with the https Subs.
    I want when i use the Domain
    ubuntu01.domain.com in putty that i connect to the RealServer "Ubuntu01" and when i use ubuntu02.domain.com that i connect to "Ubuntu02" for example...
    Is there a way to handle this?
  • Hi Thomas,
    It doesn't appear that the SSH Virtual Service has a real server applied to it. Can you please navigate to Virtual Services > View/Modify Services > modify your SSH Virtual Service > Real Servers > Add New > insert the IP/hostname of the real server > Add This Real Server?
    If you still see that the Virtual Service/Real Server are down after the addition of the real server, I'd recommend creating a Support ticket by navigating to
    https://support.kemptechnologies.com/hc/en-us/ > sign in using a Kemp ID > Submit a request.