SSH VPN Help

2007-11-01 Thread Rob Hancock
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 understand that I need to set up a reverse SSH tunnel from FBSD  
(work) to FBSD (home).  It's the tying in of the XP box and my Mac to  
either end that I'm having troubles with.  Should those connections  
also be done via SSH tunnels or should I use port redirection on the  
FSBD boxes via ipfilter or an equivalent?


Then end goal is to be able to use VNC on either my home Mac or with  
my Mac laptop remotely to control my XP laptop I'll leave at work.


Any suggestions would be helpful.  A general Idea of how everything  
should interact is basically what I'm looking for.  I'll figure it  
out by trial and error once I have a rough plan.


Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH VPN Help

2007-11-01 Thread Andy Harrison
-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 [EMAIL PROTECTED]

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 [EMAIL PROTECTED]

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 [EMAIL PROTECTED]

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-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]