Forwarding of ports via ssh

From: Michael Richards (michael@fastmail.ca)
Date: 03/29/01


To: freebsd-security@FreeBSD.ORG
From: "Michael Richards" <michael@fastmail.ca>
Date: Wed, 28 Mar 2001 23:53:17 -0500 (EST)


Hi;

I've got an odd situation where a development machine behind our NAT
firewall has to go into test production with a desktop client. The
client is stupid and will only connect to a certain IP on port 80.

How can I forward this port through both of our firewalls using ssh?
Here is what I tried and what I got:

The internal machine is 192.168.0.128
the remote machine IP is the one I want port 80 forwarded it is on
one of our servers and the IP has just been aliased.

bash-2.03# ssh -l root -R 80:192.168.0.128:80 remote.ip.address
root@xxx.xxx.xxx.xxx's password:
Received disconnect: bind: Address already in use

I thought this was odd. I tried stopping the web server. No luck. So
I tried rebooting. No luck.

Is this just something I've overlooked, or is it possible that this
host has something nasty going on with it? For a time it was
vulnerable to the bind problem but had no evidence of a breakin,
nothing that trapdoor found an nothing suspicious with the firewall.

-Michael
_________________________________________________________________
     http://fastmail.ca/ - Fast Free Web Email for Canadians

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message