Skip to contentSkip to conversation

Channel/Tunnel bonding with wireguard

DISCUSSION Saeid Akbari 2 participants 2 messages Jan 22, 2018 – Jan 23, 2018

lore
Share & tools
lore
#0 lore raw

Hi folks,

I have been thinking about utilizing WireGuard on my VPS to act as a central hub for combining my multiple slower connections and having a faster one. I had a possible way of doing it in my mind, and finally today I did a little bit of googling found this article (also learned the real name for the technique:
bonding):

http://vrayo.com/how-to-set-up-a-bonding-vpn-connection-in-linux/

Since this approach uses a user-space daemon to relay around data, it would incur some performance penalties compared to a kernel-mode driver like WG. So it's probably not a good idea to use it on top of WG.

The pure WG scheme I have in my mind goes something like this:
- having a single swg0 interface on VPS.
- having multiple interfaces on the client (cwg0, cwg1, ...), each configured with a single peer, that is the VPS swg0 interface.
- some iptables + ip rules fu to split and re-join the stream of IP packets.

For the third part, I can think of statistic netfilter match for splitting the packets. But there are other things around which I don't know much about; like the qdiscs... so I'm not confident if I'm headed in the right direction...

Is this a good idea? What do you suggest? Is there any better way to do it?

Thanks in Advance

Saeid,

#1 lore raw

WireGuard porting to kernel 3.4

Hi,

Would it be hard to port WG to 3.4 kernel?
Was there huge changes in networking or other used in WG stuff between 3.4 and 3.10?

It is very popular on a bit older android phones.

Thanks,
JuniorJPDJ