Re: ssh tunnel
- From: Jeremiah DeWitt Weiner <jdw@xxxxxxxxx>
- Date: Wed, 29 Mar 2006 16:16:02 +0000 (UTC)
kristian <kristian@xxxxxxxxxxxxxx> wrote:
Hi all
I have a computer, let's call it FOO, with two nic's (10.0.0.254 and
192.168.0.254) and another, BAR, with one nic (192.168.0.32).
I want connections on i.e port 10001 on FOO to be forwarded to port
10000 on BAR. (Connections from both nic's)
On FOO I try:
# ssh -f -N -g -L 10001:192.168.0.254:10000 192.168.0.32
At least part of your problem is that your syntax for the -L option
is incorrect. The "host" part of the option is supposed to be the
_remote_ host, where connections will be forwarded _to_, and you're
using the IP of FOO. If you want connections to be forwarded to BAR,
use the address of BAR. I'm not sure that that's the root of the
problem here, but it is something you'll need to fix.
Where I have tried to listen to ports 10032, 1002, 20000, 12345. So
something is happening...
Your netstat output shows you already have something listening to
all of those ports, except for 10001. So what programs are those? Try
'netstat -pan' as root to see what they are.
--
Oh to have a lodge in some vast wilderness. Where rumors of oppression
and deceit, of unsuccessful and successful wars may never reach me
anymore.
-- William Cowper
.
- Follow-Ups:
- Re: ssh tunnel
- From: kristian
- Re: ssh tunnel
- References:
- ssh tunnel
- From: kristian
- ssh tunnel
- Prev by Date: Re: Design of a LAN with a Linux router?
- Next by Date: Re: Installing 80 workstations with PXE
- Previous by thread: ssh tunnel
- Next by thread: Re: ssh tunnel
- Index(es):
Relevant Pages
|