Server types other than HTTP

@pwFoo, Are you thinking anonymous FTP or a full fledged authenticated FTP implementation? In the latter case I’m curious what authenticated FTP has to offer that can’t be done better using ssh/scp. FTP as a protocol has a long history of not only a pain (e.g. NAT traversal) but also suffers from more than its fair share of protocol based security flaws.

I think reverse proxy ssh / scp wouldn’t be possible / easy… So I’m searching or rev proxy file transfer solution for my docker environment.

Protocol wise FTP is a mess. But FTP servers historically have offered easier / more flexible user / account management.

I am still looking for an ssh/scp server that lets me auth against ldap, and give access to arbitrary paths to users.

I guess the main problem with that is that an ssh server needs either access to, or implement itself some sort of shell. not always what you want.

Maybe Caddy can facilitate something like a hybrid.

1 Like

Hi,

I would like to have a go at adding TCP as a server type but I’m just wondering what would the need/use case for extra server types be?

Pieter

What do you mean? People have asked for Caddy as a TLS proxy, for instance. The HTTP server type only does HTTP proxying.

1 Like

Use cases for other server types could be

web proxy
ftp proxy
ftp rev proxy (would be great)

1 Like

Hi @matt,
I meant using TCP itself as a server type and what the use of it would be in the Caddy ecosystem, but TLS proxy is a nice example.

Hi @matt,

I think I need to rephrase my question. What I meant was what would be the advantage of writing a TCP server type (i.e tls proxy) as part of the Caddy ecosystem instead of a standalone app?

Reasons I can think of would be:

  1. to have it all in one binary (with existing http and dns)
  2. leverage the simplicity of the Caddyfile configuration
  3. Caddy’s TLS features

Am I on the right track here?

1 Like

Yes; and see my original post at the topic start for more advantages. :wink:

Edit: I’ve moved the discussion about the new TCP/UDP server type to a new topic: Writing a TCP/UDP server type for Caddy

1 Like

17 posts were split to a new topic: Writing a TCP/UDP server type for Caddy

well since you ask, I’d want to see all server types which LYNX textmode browser supports, which are quite numerous and include

ftp gopher mailto nntp news file wais

and some more. would be helpful for server managers who have no GUI.