Giter Site home page Giter Site logo

SSH Proxy - Question about caddy-l4 HOT 4 CLOSED

mholt avatar mholt commented on September 28, 2024
SSH Proxy - Question

from caddy-l4.

Comments (4)

mholt avatar mholt commented on September 28, 2024 1

So if I understand correctly, you want to serve both HTTP(S) and SSH on the same port (either 80 or 443)?

If so, you don't need any special client. Just use the ssh matcher to proxy SSH connections to your SSH server, and everything else to your HTTP server. (Similar examples are in our README.)

Will close now as I think that should answer your question...

from caddy-l4.

francislavoie avatar francislavoie commented on September 28, 2024

However if I could cloak it in https traffic it would work.

It would still be raw TCP traffic. This plugin wouldn't "cloak" anything as HTTPS. All this does is raw TCP/UDP connections and traffic, then allows you to handle it depending on the shape of the data.

from caddy-l4.

mholt avatar mholt commented on September 28, 2024

This module can be used to "cloak" connections but clients have to be configured to work with it. For example, TLS-in-TLS. You could in theory do SSH-in-TLS too, but you'd need a wacky SSH client that can establish a TLS handshake and then send SSH over it. 🤷‍♂️ Or similarly, you could probably figure out a way to get SSH to work after an HTTP request but then your client has to support that very odd behavior.

from caddy-l4.

gt2416 avatar gt2416 commented on September 28, 2024

Thanks, I’ll test and see if it works. If your curious this is the setup I want to replicate
https://nurdletech.com/linux-notes/ssh/via-http.html

It’s just I use caddy as my front reverse proxy and am happy with it. Don’t want to switch to Apache. Anyway I think this may work or at the very least allow me to have ssh.myserver dns which listens on 443 rather than port 22 which might allow me to bypass the firewall.

from caddy-l4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.