Need an easy VPN solution

Discussion in 'macOS' started by RafaelT, Nov 12, 2010.

  1. RafaelT macrumors 65816


    Jun 9, 2010
    Lakeland, FL
    I am looking for a simple VPN solution. I have a macbook at work (always on) that I would like to use as the server and another macbook that travels with me that I would like to connect from.

    I searched and couldn't find anything, if I missed it please point me in the right direction.

    I know nothing about VPN's, but I do have some other networking knowledge so if you can dumb it down for me that would be appreciated ;)

    I would really appreciate any help that you can give me.

  2. veediot macrumors newbie

    Jul 24, 2006
    SSH tunnel

    While not a true VPN solution, you can get a lot done securely with SSH tunnels, and they are very easy to setup. For example, assuming you have "Remote Login" turned on in the Sharing settings in System Preferences on the remote machine:

    ssh -NfD 1234 yourusername@yourremotehost

    Gets you a SOCKS proxy through your SSH connection on port 1234 that you can then setup in the Network portion of System Preferences for things like your web browser, or any other app that supports the global proxy settings.

    Also, you can forward ports directly, so for example, let's say you wanted to access screen sharing on the remote machine:

    ssh -L5901:localhost:5900 yourusername@yourremotehost

    That would then allow you to go to the "Go"->"Connect to Server", and type in vnc://localhost:5901 to get to the remote machine's VNC server.

    You can do similar things for other services like AFP, etc. And you aren't limited to only forwarding to the remote machine. You can forward the port to any other machines on the remote network as well. And best of all, it's all encrypted (between the client and your remote machine, anyway)

  3. Flash SWT macrumors 6502

    Flash SWT

    Mar 14, 2009
    Houston, TX
    Your issue here is likely to be the work network. Unless your work computer has a publicly routable IP, but I'd guess it is behind a firewall and has a NAT'ed address. In this case you're going to be forced to talk to the IT staff to get things setup.

  4. RafaelT thread starter macrumors 65816


    Jun 9, 2010
    Lakeland, FL
    Thanks. Unfortunately I am the IT staff, this is a one man show ;)

    I actually got a vpn server working be following the directions here..

    It was actually quite simple except for a couple little things they left out.

Share This Page