Port forwarding to listen on designated interface
From: Josh Cole (joshua.cole.au_at_gmail.com)
Date: Fri, 29 Apr 2005 10:22:44 +1000 To: firstname.lastname@example.org
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. With the -g option, ssh will listen on the designated
port on *all* local interfaces. Without the -g option, ssh will
listen only on the loopback device. I would like to be able to get it
to listen on a device that I nominate (e.g. a dummy network device, or
a second loopback device).
I know I can achive what I want by using the -g option and using
ipchains to filter out connections on the devices that I don't want to
listen on, but I was hoping there was a neater way.
Thanks in advance,