Results 1 to 6 of 6

Thread: SSH tunnel between sites as part of network?

  1. #1
    Join Date
    Aug 2013
    Beans
    3

    Question SSH tunnel between sites as part of network?

    Hi,
    I wonder if it possible to use two Linux servers (I usually use Ubuntu) to setup a SSH tunnel between them and have network traffic go through them? I want the servers just to forward traffic inside the tunnel to next building and I wish to have them in same IP address space. I hope the servers can be completely transparent to other equipment.

    Some explanation:
    - We have a office in one building with clients and servers.
    - In another building we have our backup system.
    - We're not sure that nobody else can look at the traffic in the network between the buildings.

    I have looked at some VPN solutions but the cost are a little bit high to get high througput. We wish a speed of near 1Gbps.
    I have made a simple sketch of the networks. The red line are the connection between the buildings.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: SSH tunnel between sites as part of network?

    ssh tunnels are for specific ports and best for quick needs, not a corp-to-corp permanent connection. Sure, using ssh is quick and works, but tcp has overhead that most people would like to avoid and there are specific tools for this.

    If you need all traffic between 2 locations to be encrypted, then use a VPN like OpenVPN. Many routers will support this so that end-users do not need to know anything about the tunnels. It "just works." Also, real VPNs use udp, which has much lower overhead.

    If you are lazy and have money, then you can purchase small-business routers with VPNs built-in. I know that some Zyxel models have this. pfSense and dd-wrt can do it too ... using openvpn means you are device independent, which might be very important.
    Last edited by TheFu; November 7th, 2013 at 02:19 PM.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH tunnel between sites as part of network?

    You can use SSH to make your own VPN. An outline of the process is here:

    https://help.ubuntu.com/community/SSH_VPN

    You'll have to read up on it to see how it compares to OpenVPN for speed and such, but it's not complex. Just make a tunnel and adjust the routing tables. You'll need root access on both ends for that.

    Edit: better URL
    Last edited by Lars Noodén; November 7th, 2013 at 06:02 PM.

  4. #4
    Join Date
    Aug 2013
    Beans
    3

    Re: SSH tunnel between sites as part of network?

    Thanks Lars, I will check that link. I will be back with result.

    To use some cheap firewall does not work because I need high throughput and often you get 3-20Mbps VPN pass through in cheap filrewalls.
    Last edited by pelle-masendata; November 7th, 2013 at 01:59 PM.

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH tunnel between sites as part of network?

    I've found a more detailed description, oriented towards Ubuntu specifically:

    https://help.ubuntu.com/community/SSH_VPN

    YMMV

    Still in the process of trying it.

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: SSH tunnel between sites as part of network?

    Setting up a static-key OpenVPN tunnel is by far the simplest method.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •