Re: Forwarding Web server requests to local machine
- From: Manuel Lemos <mlemos@xxxxxxx>
- Date: Thu, 12 Apr 2007 02:29:32 -0300
Hello,
on 04/11/2007 10:41 PM Richard E. Silverman said the following:
You need to set "gatewayports yes" in sshd_config.
Yes, thanks Richard. I also figure I had the IP wrongly set. I should
specify the local IP like this.
ssh -R 80:127.0.0.1:80 -N -2 root@xxxxxxxxxxxx
Now I have another problem. I want the server to listen only on a
specific a spare IP, so I used this command:
ssh -R 123.45.67.89:80:127.0.0.1:80 -N -2 root@xxxxxxxxxxxx
The problem is that ssh listens on all IPs that are on the same network
card interface of 123.45.67.89. I have other IPs on the same interface
listenying to port 80, so ssh fails to listen on port 80.
Is there a way to tell ssh to listen only on port 80 of IP 123.45.67.89 ?
"ML" == Manuel Lemos <mlemos@xxxxxxx> writes:
ML> Hello, I am testing a Web application that is going to be
ML> connected by a remote server that I do not control (actually
ML> Paypal IPN sandbox).
ML> I would like the remote server to connect my Web server on a local
ML> development machine.
ML> The local machine is connected to the Internet via an ADSL
ML> connection, but the ISP blocks port 80.
ML> I have a dedicated server elsewhere with a spare IP address. So I
ML> thought of using ssh to forward port 80 connections to that remote
ML> server IP address to port 80 my local development on which I have
ML> my test Apache running.
ML> I used this command in my local machine:
ML> ssh -R 80:123.45.67.89:80 -N -2 root@xxxxxxxxxxxx
ML> 123.45.67.89 is the spare IP of my dedicated server. I have other
ML> IPs in that machine. I also have Apache servers listening in other
ML> IPS.
ML> The forwarding seems to be setup but it always refuses
ML> connections.
ML> I executed netstat -a -n -t on my dedicated server machine and I
ML> can see an entry like this after I leave the ssh command above
ML> running:
ML> tcp 0 0 ::1:80 :::* LISTEN
ML> On the local machine I have Apache running. Running netstat -a -n
ML> -t shows an entry like this:
ML> tcp 0 0 :::80 :::* LISTEN
ML> Anybody knows why http://123.45.67.89/ always refuses connections?
ML> --
ML> Regards, Manuel Lemos
ML> Metastorage - Data object relational mapping layer generator
ML> http://www.metastorage.net/
ML> PHP Classes - Free ready to use OOP components written in PHP
ML> http://www.phpclasses.org/
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.
- References:
- Forwarding Web server requests to local machine
- From: Manuel Lemos
- Re: Forwarding Web server requests to local machine
- From: Richard E. Silverman
- Forwarding Web server requests to local machine
- Prev by Date: Re: SSH and Dyndns
- Next by Date: Forwarding audio/music or generic devices?
- Previous by thread: Re: Forwarding Web server requests to local machine
- Next by thread: Re: Spammed by Fax?? !! Read inside
- Index(es):
Relevant Pages
|