Forwarding http for a specific host through a firewall via ssh

From: Allan Wittkopf (wittkopf@cecm.sfu.ca)
Date: 02/25/02


From: Allan Wittkopf <wittkopf@cecm.sfu.ca>
Date: Mon, 25 Feb 2002 17:48:55 GMT

I am trying to connect to my company through ssh, and access a
web-application. I have succeessfully done this with ssh for simple
web pages, but unfortunately I seem to run into problems for the web
applications.

My setup is basically this:

1) Set up a tunnel, to map localhost:1617 through the firewall port
2000, then to the specific machine webserv:80.

2) I then connect to localhost:1617 with netscape, opening up the
specific location I need.

What happens is that the process starts up, then hangs at some point
in the loading.

As near as I can figure, what is happenning is that even though I have
port 1617 on localhost set up to look at the right thing, the silly
web application queries:

http://webserv/ file>

which kills me.

So what I need is a way to tell netscape that any requests for
webserv:80 need to instead go to localhost:1617

Any suggestions?

- Allan



Relevant Pages

  • Re: ssh "proxy mode"
    ... >open a firewall port. ... >Since the SOCKS proxy and SOCKS client will both be running on C, ... you might be able to use 'ssh' as the ProxyCommand ...
    (comp.security.ssh)
  • Re: Debian equivalent of /etc/profile.d
    ... Here's how to TUNNEL SECURE X11 CONNECTIONS THROUGH SSH: ... local-client# export DISPLAY=:0.0 ... then once you're logged in at the server, ... so netscape will dialogue with the ...
    (Debian-User)
  • Re: Reality check: IPFW sees SSH traffic that sshd does not?
    ... I figure if they're fishing for weak ssh passwords, ... this list and others I now firewall port 22 to a few locations (e.g. ...
    (FreeBSD-Security)