Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 13:54:07 -0400
From:      "Andy Harrison" <aharrison@gmail.com>
To:        "Rob Hancock" <rwh.mailbox@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SSH VPN Help
Message-ID:  <a22ff2940711011054m498d64f9y6950401791830cab@mail.gmail.com>
In-Reply-To: <8207ABE4-6C6E-4E71-B8B6-1399B273BDCF@gmail.com>
References:  <8207ABE4-6C6E-4E71-B8B6-1399B273BDCF@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 11/1/07, Rob Hancock  wrote:
> I'm hoping some of you can help me out a bit with this...I'm trying
> to setup remote access of my laptop at work via SSH tunnels between a
> FreeBSD box at the office and my FreeBSD firewall at home.
>
> XP Laptop (work)  FreeBSD (work)  FreeBSD (home)  Mac (home)
> or Mac (remote)
>


I've done similar hoop-jumping before.  It's a mish-mash of local and
remote ssh tunnels.

In this case, I would do something like this...

XP Laptop initiates a remote tunnel to FreeBSD work...

ssh -R 5900:localhost:65900 rwh@freebsd-work

This will cause traffic on freebsd-work port 65900 to be directed to
your xp laptop on port 5900.


Then a remote tunnel from FreeBSD work to FreeBSD home.

ssh -R 65900:localhost:65900 rwh@freebsd-home

This will make freebsd-home listen for traffic on port 65900 and
direct that traffic to port 65900 on freebsd-work, which you've
already set up to direct that traffic to port 5900 on your xp laptop.

Then from your mac, initiate a local tunnel to FreeBSD home...

ssh -L 5900:localhost:65900 rwh@freebsd-home

This should direct the traffic to the already-waiting port 65900 on
freebsd-home machine.

Now, from the mac, you should be able to run your vnc viewer on
localhost and have your xp laptop come up.

Clunky, but once you've got the tunnels all connected right, it works
ok.  You don't have to use 65900 of course, I just like to use a
nonstandard port for the in-between servers.

- --
Andy Harrison
public key: 0x67518262
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKhLZNTm8fWdRgmIRAtloAKD40IPMX5SF81wmxS7SUvwA1Ky9ZQCfWpTU
8BpBbk+vxjmsZsQxVFbo+FM=
=EFIV
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a22ff2940711011054m498d64f9y6950401791830cab>