Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh tunnelling

Status
Not open for further replies.

jaymzter

Vendor
Jul 8, 2002
441
US
My scenario is I have a remote shell login to a Solaris 2.7 server. This server makes a PPP connection to a Linux server, which has a crossover cable running from it to another linux server. X is not installed on either Linux box. I need to access the web server on the 2nd Linux box while PPP connected to the first. I have installed Opera on the Solaris box (I don't have admin rights to the Solaris box, it's a home directory install).

My attempt was to ssh into the first Linux box and have it tunnel my browser connection to port 443 on the second Linux box, using the following command

ssh -L 44433:192.168.132.14:443 some.server.com sleep 1d

I know the tunnel is set up because if I telnet to 127.0.0.1:44433 or try to talk http to that port I get an error response from the 2nd Linux box's web server. But whenever I try Opera with I get no data whatsoever.

The Solaris server itself is running a web server, could that be messing things up? Any thoughts are appreciated
 
Hmm, i never had much luck with ssh forwarding, a bad point being it would listen on localhost only.. however, you say the server talks error http back.. afik and try, ssl enabled ones shouldnt do so. eg, try opera without https

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
If i try Opera without https, the 2nd Linux server complains someone is trying to talk http to a https port
 
As another try w/o ssh, try redir
If you still need (double) encryption, take a look at socat

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Okay:
#1: Simplify. There are a lot of details here, so break it down.
#2: a)ssh into solaris-try specifying -X for this initial connection if forwarding isn't already arranged.
b)ppp connection-check your routes on connected boxes after the ppp link is set up here. The return route may not be
configured correctly. This is a common issue.
c)Linux connected: Are the linux boxes configured to forward traffic? Are the routes correct, as above, from and too
the ppp interface?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top