Re: Port forwarding to listen on designated interface
From: Darren Tucker (dtucker_at_zip.com.au)
Date: 04/29/05
- Previous message: Josh Cole: "Port forwarding to listen on designated interface"
- In reply to: Josh Cole: "Port forwarding to listen on designated interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 29 Apr 2005 16:01:15 +1000 To: Josh Cole <joshua.cole.au@gmail.com>
Josh Cole wrote:
> I'm using the -L option to set up an ssh tunnel to a remote host.
>
> I would like to be able to specify the local network device that ssh
> listens on.
That depends on the software and version you're using. If you're using
OpenSSH, you need 4.0x or higher, and it's specified as an optional
listen address before the listen port in forward specification, eg
ssh -L 192.168.1.1:1234:192.168.2.100:5678 someserver
will listen on 192.168.1.1 port 1234 and forward to 192.168.2.100 port 5678.
Other software may have similar options.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
- Previous message: Josh Cole: "Port forwarding to listen on designated interface"
- In reply to: Josh Cole: "Port forwarding to listen on designated interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]