[TriLUG] need help in port forwarding

Magnus Hedemark chrish at trilug.org
Thu Jan 15 11:17:07 EST 2004


On 15 Jan 2004, Jon Carnes wrote:

> > ssh -l payal -L 1080:127.0.0.1:3128 <ip>
> 
> Why are you using ssh to do local port forwarding (127.0.0.1) - or was
> that just an example?

That's not local port forwarding;  that's forwaring port 3128 of "<ip>" to 
localhost port 1080.  The 127.0.0.1 in there is not from the context of 
the ssh client but from the ssh server specified at the end of the command 
line.

In other words, the machine he's ssh'ing to is the same machine that also 
listens on port 3128 that he would like to forward to his own localhost's 
port 1080.




More information about the TriLUG mailing list