-
Hello community, I set up a Teleport cluster, added nodes and applications. So far everything is going well. I am able to connect to the cluster through the reverse proxy and connect to the applications and nodes. The problem comes from the Teleport client (tsh.exe). Do you have any idea where the problem could be coming from? Error send by client tsh
Config of apache2
Config cluster teleport
Log in proxy
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
version teleport : Teleport v15.0.1 git:v15.0.1-0-gd347510 go1.21.6 |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with how to do this using Apache - it's much easier using something like nginx (guide here: #26445) or Caddy. If you insist on using Apache, try this: https://serverfault.com/a/1123715 |
Beta Was this translation helpful? Give feedback.
-
thank you for your return @webvictim ! I want to stay on Apache2 because there is a lot of configuration in place. and that switching to nginx would take a lot of time. |
Beta Was this translation helpful? Give feedback.
-
I got this working after a bit of trial and error. Here are my configs from an Ubuntu 22.04 server:
version: v3
teleport:
nodename: ip-172-31-32-65
data_dir: /var/lib/teleport
log:
output: stderr
severity: DEBUG
format:
output: text
auth_service:
enabled: "yes"
listen_addr: 0.0.0.0:3025
proxy_listener_mode: multiplex
cluster_name: teleport.example.com
authentication:
second_factor: on
webauthn:
rp_id: teleport.example.com
ssh_service:
enabled: "yes"
commands:
- name: hostname
command: [hostname]
period: 1m0s
proxy_service:
enabled: "yes"
# listen internally on port 3080
web_listen_addr: 0.0.0.0:3080
# public address is Apache port 443
public_addr: teleport.example.com:443
# trust X-Forwarded-For headers sent by reverse proxy (for correct remote IPs in Teleport logs)
trust_x_forwarded_for: true Enable modules
|
Beta Was this translation helpful? Give feedback.
-
In your tests, have you tested the connection with a tsh client ? |
Beta Was this translation helpful? Give feedback.
-
@webvictim Great solution
|
Beta Was this translation helpful? Give feedback.
I got this working after a bit of trial and error. Here are my configs from an Ubuntu 22.04 server:
/etc/apache2/sites-available/001-teleport.conf
: