LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Using Apache to relay service (https://www.linuxquestions.org/questions/linux-networking-3/using-apache-to-relay-service-390430/)

Gibsonist 12-08-2005 03:41 AM

Using Apache to relay service
 
Hi,

I need to resolve following settings, I got a client (C) at a remote site which only allows a proxied http connection on port 80 to the rest of the world.
From C I need to get a SSH tunnel to our homenetwork (K).
This would be no problem if I could run SSHd on port80, only Apache is on 80

I have tried using Apaches ProxyPass function to relay any incoming connection from
http://our.domain.net/ssh-proxy to localhost:22

I get a 200 and a debug message saying
Code:

start relaying ...
followed by a timeout on client side.

My entry in apache2.conf is
Code:

<Location /ssh-proxy>
Order deny,allow
Allow from all
</Location>

ProxyPass /ssh-proxy localhost:22

There are no entries in apaches error.log or access.log for this event.

I sniffed the traffic and it appears that Apache does not attempt to connect to the SSH at all.

I would be grateful for any suggestions.


All times are GMT -5. The time now is 11:25 AM.