-
Notifications
You must be signed in to change notification settings - Fork 504
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
SSH Proxy #36
Comments
hi, could you provide nginx debug log for issue. simple configure example as following:
|
Thanks for reply. The error log: And the log of xshell: Connection closed by foreign host. And btw, I found when I use the 443 port, other sites can't use the port, though they have different server names, I had to change the port, how can I handle this problem? |
Hi,
This module cannot meet your requirement. You should use tcp proxy server (raw tcp stream proxying) to proxy SSH connection from port 443 to port 22. For example, ngx_stream_module can work for this requirement. This module is for HTTP-CONNECT tunnel. For more details, referer to https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling. |
@yunge i'm trying to solve the same problem, can you ping when you've solved it! |
Hi, @neoadventist, |
hi @yunge I have not used putty/xshell before, but I try to reproduce this issue. Could you provide your putty/xshell config (maybe need screenshot) . Then I can try to reproduce it. Thanks |
I have similar problem. I can run this module just fine on CentOS with nginx 1.12 rebuild from source RPM. When I configure server to run ssl server on port other than 443, it works fine, but once I run it like other sites (that is on default ssl port), I get 400 Bad Request errors. I've tested it with a command: |
Sorry that I missed your reply. My putty/xshell config are both default configs, you can download putty and I believe it's easy to reproduce it, thanks. |
I've tested it with the command:curl https://github.com/ -v -x 127.0.0.1:3128, but I got "curl(56) Proxy CONNECT aborted". |
@adrian-007 Have you found a way to solve this? I am getting the exact same 400 error only when I'm running a named virtual host on port 443 rather than another specific port. |
You can file a new issue, I guess your case is not the same one for this issue. For chrome-https-proxy-setting or connect-tunnel under SSL protocol, you can referer this guide: #22 (comment). ( This guide is not for |
@chobits I decided to ditch this module and do it using vanilla nginx, that is I've reconfigured TLS servers to first dissect traffic, get SNI from request and depending on it's value and dispatch traffic to either squid (stream proxy) or to virtual server (running on local host now). I needed to do some trickery so that PHP sites properly get host name, but I got it working not only for squid, but also other services (i.e Matrix server).
|
I want to proxy SSH connections on my server, port 443 to port 22. The reason is that sometimes the port 22 is not available.
The nginx conf is like this:
But I always get "The proxy server rejected connection request: Connection aborted." in Xshell. Any idea?
The text was updated successfully, but these errors were encountered: