Find the answer to your Linux question:
Results 1 to 5 of 5
Hello everyone. Just wondering if anyone knows of a linux to linux VPN or similar technology that allows compression of all traffic. I'd like to use two linux hosts as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896

    VPN compression or other network level compression


    Hello everyone. Just wondering if anyone knows of a linux to linux VPN or similar technology that allows compression of all traffic.

    I'd like to use two linux hosts as gateways on separate networks as gateways and compress the link between the two. Any ideas?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,558
    OpenVPN can optionally use the LZO streaming compression library to compress traffic before it is encrypted and sent across the network. Bear in mind that this imposes considerable overhead on both the sending and receiving systems, so throughput may suffer as a result, although there WILL be less of a burden on the network links due to the reduced traffic. OpenVPN is available for all current Linux distributions, usually as a standard package you can easily install.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28
    IPSec can be configured to require compression but there are cases where the resulting packet is larger and could exceed the MTU of an intervening network. Also, IPSec is easier to configure when neither Linux box goes through NAT and the IP addresses don't change.

    For the road warrior, OpenVPN is easier, but some Wi-Fi hotspots block the default 1194 port.

    You are encrypting the traffic as well, which effectively randomizes the data, so make sure the compression is before the encryption or it may not be useful.

  4. #4
    Just Joined!
    Join Date
    Jan 2014
    Posts
    7
    Quote Originally Posted by Rubberman View Post
    OpenVPN can optionally use the LZO streaming compression library to compress traffic before it is encrypted and sent across the network. Bear in mind that this imposes considerable overhead on both the sending and receiving systems, so throughput may suffer as a result, although there WILL be less of a burden on the network links due to the reduced traffic. OpenVPN is available for all current Linux distributions, usually as a standard package you can easily install.
    "Considerable" is relative. If he's on a cable modem it probably wont matter much. You can enable compression w/ openvpn, and I start seeing CPU spikes around 200 megabit throughput (I use openvpn on a lan).

  5. #5
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896
    Thank you for the replies. I think I'll take a look into OpenVPN.

Posting Permissions

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