Comments (4)
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.
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.
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.
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)
- Switch to `go-proxyproto` HOT 4
- "Connection refused" when proxying UDP port HOT 2
- How to match on StartTLS for proxying Postgres? HOT 9
- Can't build the docker image HOT 1
- High CPU usage HOT 11
- how to graceful restart or shutdown HOT 2
- PR#141 Broke Matchers HOT 4
- How to match TLS SNI with proxy_protocol? HOT 2
- http active health check HOT 1
- [FEATURE]: Add support for access logs HOT 4
- http/2 corruption HOT 2
- Non blocking matchers & matching timeout breaking l4 as a listener wrapper HOT 13
- Collection of interesting configs HOT 1
- Feature request: `invoke` handler HOT 2
- Regression: PROXY protocol line sent only when first data arrives from client HOT 7
- Accept connections with an without PROXY protocol on the same port HOT 1
- Is it possible to use caddy's modules inside L4 routes? HOT 12
- SIGHUP for config reload? HOT 5
- Caddyfile does not recognize `layer4` global option HOT 8
- Cannot proxy to Mariadb instance HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caddy-l4.