It is possible to route traffic to 2 or more servers behind TCP and accessible by name?

First of all many thanks to all the people involved in this product for their time, I really appreciate it.

Use case:

With below configuration:

traefik.enable=true
traefik.tcp.routers.sshd-ssh.entrypoints=entrypoint_ssh
traefik.tcp.routers.sshd-ssh.rule=HostSNI(`sshd1.example.com`)
#traefik.tcp.routers.sshd-ssh.rule=HostSNI(`*`)
traefik.tcp.routers.sshd-ssh.service=sshd-ssh-service
traefik.tcp.services.sshd-ssh-service.loadbalancer.server.port=22

I get below error:

time="2020-05-14T10:37:07Z" level=warning msg="TCP Router ignored, cannot specify a Host rule without TLS" entryPointName=entrypoint_ssh routerName=sshd-ssh@docker

There's any way to achieve it?
Thanks.

Not with ssh. You can only do HostSNI with TLS protocol.

My suggestion: Setup a ssh server as a bastion host/ jump host and use ssh's -J option.

1 Like