Port tunnelling over ssh
Matt Johnston
matt at ucc.asn.au
Fri Mar 10 10:53:44 WST 2006
On Thu, Mar 09, 2006 at 10:05:51AM -0500, David Cook wrote:
> I have used the following command to create a tunnel for rsync between
> the OpenWRT box running dropbear and my server.
> /usr/bin/ssh -i ${SSH_host_key} -p ${SSH_port} ${SSH_server} -l
> ${SSH_user} -L 873:${LAN_IP}:873 "keepalive ${Customer}" &
>
> (I am running a small program "keepalive" on the server to poll the
> device periodically so NAT tables don't go stale).
>
> Even though I specify the lan address (192.168.1.1) the tunnel only
> appears to work from the originating host by rsyncing to 127.0.0.1.
> I want to have other devices on the lan rsync to 192.168.1.1 so that my
> remote rsync server appears to be the gateway on the lan.
>
> What am I doing wrong or is this even possible?
Does giving the -a option to dropbear (added in 0.47) do
what you want? That'll make it listen on all interfaces, not
just localhost.
Cheers,
Matt
More information about the Dropbear
mailing list