Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [CADDY] reverse proxy integration for TCP/UDP traffic #400

Open
vbrandl opened this issue Sep 12, 2024 · 2 comments
Open

Add [CADDY] reverse proxy integration for TCP/UDP traffic #400

vbrandl opened this issue Sep 12, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed reverse-proxy Reverse proxy integration related issue

Comments

@vbrandl
Copy link

vbrandl commented Sep 12, 2024

Describe the reverse proxy you'd like
This is just a request for an additional feature for Caddy. This also relates to this issue for Traefik: https://github.com/acouvreur/sablier/issues/152

Does the reverse proxy provides middleware/module/extension support
With the caddy-l4 extension, caddy can be used to proxy TCP and UDP traffic. It would be nice to extend the sablier caddy extension to support that, too.

@vbrandl vbrandl added enhancement New feature or request reverse-proxy Reverse proxy integration related issue labels Sep 12, 2024
@acouvreur
Copy link
Member

Sablier middlewares should be suited for layer 4, as they do not use any information from the incoming request.

Do you know if Caddy supports WASM plugins ? E.g.: the proxywasm ABI ?

Having to develop a single middleware is easier to maintain than to understand how every reverse proxy works.

Otherwise, do you think you could try to contribute ?

@acouvreur acouvreur added the help wanted Extra attention is needed label Sep 12, 2024
@vbrandl
Copy link
Author

vbrandl commented Sep 12, 2024

A quick search gave me https://github.com/brendandburns/caddy-wasm. Would this work with the proxywasm API? Otherwise I don't think I can contribute much to this directly, since I'm not too good with golang.

But I just started hacking on a naive TCP proxy that could be used with sablier instead of a full blown reverse proxy. This should be kinda easy and I haven't found a way yet to use sablier with TCP based services...

Edit: I just published https://github.com/vbrandl/sablier-proxy which currently works for TCP services. I'm looking to extend it to support UDP, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed reverse-proxy Reverse proxy integration related issue
Projects
None yet
Development

No branches or pull requests

2 participants