-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support reverse proxying of SFTP/SCP sessions #56
Comments
Implementing this functionality, in |
Hi, do you have a roadmap for this feature ? |
@aderumier I do not, as yet, have any particular timeline planned for this feature. However, I suspect that it may require some changes in the Do you have particular need for that functionality? If so, I'd like to hear more (perhaps via email) about it! |
@Castaglia No special need, I would like to have a reverse proxy sftp, something like your current reverse ftp implementation. (I'm looking to build a reverse proxy with both ftp/sftp support). Thanks for your great work ! |
I'm trying to set up an sftp reverse proxy server in DMZ too which relays sftp requests to the internal proftpd server, any suggestions on how to get this done prior to this feature being added? |
@kevy1234 if your reverse proxy needs are simple, you should be able to use a simple TCP proxy (e.g. |
@Castaglia Would there be any security concerns? What we would like to do is terminate user connections in DMZ. |
@kevy1234 An excellent question, with several different components. Terminating connections at the DMZ is a Good Thing. And fortunately, for SFTP/SCP, it is usually enough to terminate the TCP connection at the DMZ, and have some TCP proxy relay that connection to the actual SFTP/SCP server within the LAN. With this sort of arrangement, you can do TCP connection-based load balancing. The external SFTP/SCP client does not (and cannot) know the IP address of the internal server handling the connection. (Unfortunately, because of the DMZ relay, this also means that the internal server cannot know the IP address of the remote client; there are ways of handling this, though.) Where Does that help answer some of your questions/concerns? |
@Castaglia Very well explained, thank you! |
Unfortunately, using The difference is that SFTP/SFTP is based on SSH, and SSH uses single TCP connection only. This means that FTP/FTPS, however, uses multiple independent TCP connections: one for the control connection (over which the commands/responses are sent), and other ephemeral data connections, one for each data transfer. These data connections, to make matters worse, use ports which are dynamically negotiated over the control connection (that's the purpose of FTP's So, short answer is this: |
In your future release it would be great if you can make sftp to ftp proxy work , and vise versa. |
Any progress on this feature? |
This is currently waiting on some work in |
Hello @Castaglia, making this work would be awesome, i'm currently strugling with reverse sftp/scp proxying... I will try the tcp proxy, many thanks :) |
Issue #56: Support storing SSH hostkeys in Redis.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies (PerUser/PerGroup/PerHost) now.
…olicies-issue56 Issue #56: Support proxying of SSH connections for "sticky" connect p…
I've just now merged support for the "sticky" reverse connection policies ( In terms of remaining work, I've decided that forward proxying of SSH connections will have to wait, as there is no clear path/means for implementing that in a general/interoperable manner. As for the other items, I've filed separate tickets:
Before I close this ticket, however, I will finish the necessary proxying documentation. As before, please feel free to contact me directly, if you'd like to try this out, while I work on the documentation. |
Issue #56: Provide the initial docs for the SSH reverse proxying supp…
Now implemented in master; I hopefully do a release soon. |
…d the `UseReverseProxyAuth` ProxyOption is in effect, and the connect policy is *not* PerUser/PerGroup.
…d the `UseReverseProxyAuth` ProxyOption is in effect, and the connect policy is *not* PerUser/PerGroup.
Issue #56: Fix an edge case when reverse proxying SSH connections, an…
…connect policies (PerUser/PerGroup/PerHost) now.
…tions, and the `UseReverseProxyAuth` ProxyOption is in effect, and the connect policy is *not* PerUser/PerGroup.
Just as
mod_proxy
does for FTP sessions, it would be great ifmod_proxy
could also proxy (reverse and forward) SFTP/SCP connections, e.g. formod_sftp
.Update as of 2022-05-04: Since there is no clear path to implementing forward proxying of SSH connections, I'm going to restrict the scope of this ticket to just reverse proxying of SSH connections.
The text was updated successfully, but these errors were encountered: