mholt/caddy-l4

feature request: reverse proxy ssh via username

Open

#63 opened on Jul 13, 2022

 (5 comments) (6 reactions) (0 assignees)Go (114 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,738 stars)
PR merge metrics
 (Avg merge 14d 19h) (7 merged PRs in 30d)

Description

It would be cool if the ssh matcher allowed matching against a user, and if the handler allowed you to pass the request on to a different user. ie,

git@example.com   -> caddy-l4 -> git@git.internal
host1@example.com -> caddy-l4 -> user@host1.internal

basically exactly what tg123/sshpiper does. i think itd be cool if caddy-l4 could support reverse proxying ssh in this manner by default.

apologies in advance if this doesnt seem feasible or its outside of the scope of this plugin !

Contributor guide