LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2017, 03:37 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
How to tunnel a single connection through two VPN tunnels for more bandwidth and redundancy


If you have two ISP's, you can use all the bandwidth by doing per-connection round robin routing with something like this:

ip route add default scope global nexthop via ...

However, a single connection will just go via one ISP and no performance is gained.

Is there a way to split the connection's packages so half of them go through one ISP and via a VPN and the other half though the other ISP and VPN, and a server on the other side joins the pieces?

Just like ethernet-level link aggregation (teaming or bonding) but at the tcp/ip level and with VPN's added?

Last edited by Ulysses_; 08-17-2017 at 03:48 AM.
 
Old 08-18-2017, 01:04 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Not easily afaik. Two possible ways are either having a bgp relationship with both sides so your ip can be sent down either channel or have a common far end that bonds the channels on that end (similar to ethernet bonding). Though the common far end will increase latency you would get the benefit of more bandwidth.
 
Old 08-18-2017, 01:36 PM   #3
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
What would the above command I gave do with UDP packets?

Maybe the connection could be opened via openvpn which uses UDP packets, but would the packets split between the two routes?
 
Old 08-18-2017, 02:11 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
That is a good thought. It should still split them round robin, the program on the far end (openvpn in this case) would need to be aware that the traffic for the tunnel is coming from multiple sources as they'd be seen from channels ip. Something like mosh would be able to handle that but I don't know if openvpn has support for it.

There is a udp based tunnel (wireguard) that supports something like this, lets both the src and dest move around, mainly designed with roaming in mind but could be adapted to support this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables - Rule Forwarding Traffic From VPN to Specifically Targeting an Interface in another VPN Tunnel endtimes Linux - Networking 4 08-16-2017 08:40 PM
New tunnel connection created each time VPN is used okok Linux - Networking 4 08-06-2016 02:13 AM
bandwidth is very low openswan ipsec tunnels Gil@LQ Linux - Networking 4 11-01-2013 04:47 PM
How to transfer data through several VPN tunnels simultaneously Ulysses_ Linux - Networking 14 05-16-2012 08:23 PM
IPSec VPN Tunnel Connection Help > ..... skate Linux - Networking 7 07-28-2011 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration