Haproxy SSH

When you setup a proxy for SSH the configuration is slightly different than for HTTP:

global
daemon
maxconn 10000

defaults
timeout connect 500s
timeout client 5000s
timeout server 1h

frontend ssh1
bind *:2021
default_backend ssh1
timeout client 1h

frontend ssh2
bind *:2022
default_backend ssh2
timeout client 1h

backend ssh1
mode tcp
server ssh 127.0.0.1:22

backend ssh2
mode tcp
server ssh 192.168.16.8:22

2020-03-20 09:41:34

Comments

Add a Comment

Login or Register to post a Comment.

Homepage